EIOS/tpl/tpl_alneo_blog_cat.html

130 lines
5.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- BEGIN PAGE HEADER-->
<div class="row-fluid">
<div class="span12">
<h3 class="page-title">Управление категориями блога</h3>
<ul class="breadcrumb">
<li><a href="/">Главная</a><span class="divider">/</span></li>
<li class="active"><a href="{$page1.url}">Блог - категории</a></li>
<li><a class="btn btn-warning" href="{$page1.url}add/"><i class="icon-plus icon-white"></i> Добавить</a></li>
</ul>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
{if $regim=='show'}
<div class="span12">
<div class="row-fluid">
<div class="widget green">
<div class="widget-title">
<h4><i class="icon-reorder"></i> Существующие категории </h4>
<span class="tools">
<a href="javascript:;" class="icon-chevron-down"></a>
</span>
</div>
<div class="widget-body">
{if count($form.err)}{foreach from=$form.err item=er}
<div class="alert alert-error">
<button data-dismiss="alert" class="close">×</button>
<strong>Ошибка!</strong> {$er}
</div>
{/foreach}{/if}
{if isset($form.msg)}
<div class="alert alert-success">
<button data-dismiss="alert" class="close">×</button>
<strong>Успешно!</strong> {$form.msg}
</div>
{/if}
{if count($itshow)}
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th><i class="icon-bullhorn"></i> Имя</th>
<th><i class="icon-question-sign"></i> англ.имя</th>
<th><i class="icon-bookmark"></i> поз.</th>
<th><i class=" icon-edit"></i> </th>
<th></th>
</tr>
</thead>
<tbody>
{foreach from=$itshow item=lc}
<tr>
<td>{$lc.name}</td>
<td>{$lc.alt_name}</td>
<td>{$lc.pos}</td>
<td nowarp>
<a class="btn btn-primary" href="{$page1.url}edit/{$lc.id}/"><i class="icon-pencil"></i></a>
<a class="btn btn-danger" href="{$page1.url}del/{$lc.id}/"><i class="icon-trash "></i></a>
</td>
<td></td>
</tr>
{/foreach}
</tbody>
</table>
{/if}
</div>
</div>
</div>
</div>
{/if}
{if $regim=='aded'}
<div class="span12">
<div class="widget red">
<div class="widget-title">
<h4><i class="icon-reorder"></i> {$form.title} </h4>
<span class="tools">
<a href="javascript:;" class="icon-chevron-down"></a>
</span>
</div>
<div class="widget-body">
{if count($form.err)}{foreach from=$form.err item=er}
<div class="alert alert-error">
<button data-dismiss="alert" class="close">×</button>
<strong>Ошибка!</strong> {$er}
</div>
{/foreach}{/if}
<form action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
<div class="control-group">
<label class="control-label">Название</label>
<div class="controls">
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="наименование категории блога (не более 255 символов)" name="name" value="{$form.p.name}" />
</div>
</div>
<div class="control-group">
<label class="control-label">Англ.имя</label>
<div class="controls">
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Английское название, допустимы только символы англ. алфавита, цифры и знак _ (не более 255 символов)" name="alt_name" value="{$form.p.alt_name}" />
</div>
</div>
<div class="control-group">
<label class="control-label">Позиция</label>
<div class="controls">
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Позиция в отображаемых списках" name="pos" value="{$form.p.pos}" />
</div>
</div>
<div class="control-group">
<label class="control-label">Редактор категории</label>
<div class="controls">
<select data-placeholder="Укажите пользователи которые смогут публиковать в разделе записи" class="chzn-select span12" multiple="multiple" tabindex="6" name="b_u[]">
<option value=""></option>
{foreach from=$form.p.users item=gr}
<option{if $gr.sel==1} selected{/if} value="{$gr.id}">{$gr.fio}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-actions">
{$form.id}
<button type="submit" name="{$form.btn_url}" class="btn btn-success">{$form.btn_name}</button>
</div>
</form>
</div>
</div>
</div>
{/if}
</div>
</div>
</div>