1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00
ifhub.club/application/frontend/components/blog/modals/modal.blog-delete.tpl
Denis Shakhov 192b82c9cf Мелкие доработки и исправления компонентов
* Обновлены модальные окна
2015-02-13 14:36:00 +07:00

43 lines
1.2 KiB
Smarty

{**
* Удаление блога
*
* @param object $blog
* @param array $blogs
*}
{capture 'modal_content'}
{$blog = $smarty.local.blog}
<form action="{router page='blog'}delete/{$blog->getId()}/" method="POST" id="js-blog-remove-form">
{* Скрытые поля *}
{component 'field' template='hidden.security-key'}
{* Переместить топики в блог *}
{$selectBlogs = [
[ 'value' => -1, 'text' => "-- {$aLang.blog.remove.remove_topics} --" ]
]}
{foreach $smarty.local.blogs as $blog}
{$selectBlogs[] = [
'value' => $blog->getId(),
'text' => $blog->getTitle()|escape
]}
{/foreach}
{component 'field' template='select'
name = 'topic_move_to'
label = $aLang.blog.remove.move_to
items = $selectBlogs}
</form>
{/capture}
{component 'modal'
title = {lang 'blog.remove.title'}
content = $smarty.capture.modal_content
classes = 'js-modal-default'
mods = 'blog-delete'
id = 'modal-blog-delete'
primaryButton = [
'text' => {lang 'common.remove'},
'form' => 'js-blog-remove-form'
]}