EIOS/tpl/tpl_instruction_razdel.html

115 lines
3.4 KiB
HTML
Raw Permalink 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.

<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><a href="/help/">Инструкции</a><span class="divider">/</span></li>
<li class="active"><a href="/help/razdel/">Разделы</a></li>
</ul>
</div>
</div>
{if ($msg == 1)}
<div class="alert alert-success">
<button data-dismiss="alert" class="close">×</button>
<strong>Раздел успешно добавлен</strong>
</div>
{/if}
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<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">
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th></th>
<th><i class="icon-bullhorn"></i> Название</th>
<th><i class="icon-bookmark"></i> Родительская</th>
<th><i class="icon-bookmark"></i> Позиция</th>
<th>--</th>
</tr>
</thead>
<tbody>
{foreach from=$categoryAll item=cat key=k}
<tr>
<td>{$k+1}</td>
<td>{$cat.name}</td>
<td>{$cat.razdel}</td>
<td>{$cat.position}</td>
<td><!--span class="btn btn-danger del-education" data-id="{$edu.id}">Удалить</span--></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!--ДОБАЛЕНИЕ-->
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="widget red">
<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">
<form name="add_category" action="" class="form-horizontal" method="POST">
<div class="control-group">
<label class="control-label" style="min-width: 200px!important;">Название раздела</label>
<div class="controls">
<div class="input-prepend" style="width: 90%;">
<input type="text" name="name" class="form-control" style="width: 90%;" required />
</div>
</div>
</div>
<div class="control-group">
<label class="control-label" style="min-width: 200px!important;">Родитель</label>
<div class="controls">
<div class="input-prepend" style="width: 90%;">
<select name="id_main" class="form-control">
<option value="0">нет</option>
{foreach from=$categoryAll item=cat key=k}
<option value="{$cat.id}">{$cat.name}</option>
{/foreach}
</select>
</div>
</div>
</div>
<input type="submit" name="add_category" value="Добавить" class="btn btn-success" />
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>