EIOS/tpl/tpl_portfolio.html

157 lines
5.6 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.

<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="/trudo/stranket/">Структура анкет</a></li>
</ul>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<div class="row-fluid"><!--инфочасть-->
<div class="span12">
<div class="row-fluid">
<div class="widget gray">
<div class="widget-title">
<h4><i class="icon-reorder"></i> Инструкция к разделу </h4>
<span class="tools"><a href="javascript:;" class="icon-chevron-up"></a></span>
</div>
<div class="widget-body" style="display:none;">
<img src="/tpl/help/learn_portfolio_1.png" border="0" />
</div>
</div>
</div>
</div>
</div>
<div class="row-fluid"><!--инфочасть-->
<div class="span12">
<div class="row-fluid">
<div class="widget gray">
<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">
{$info.descrip}
{if count($info.err)}{foreach from=$info.err item=er}
<div class="alert alert-error">
<button data-dismiss="alert" class="close">×</button>
<strong>Ошибка!</strong> {$er}
</div>
{/foreach}{/if}
{if isset($info.msg)}
<div class="alert alert-success">
<button data-dismiss="alert" class="close">×</button>
<strong>Успешно!</strong> {$info.msg}
</div>
{/if}
</div>
</div>
</div>
</div>
</div>
{if count($info.blocks)}
<form action="" method="POST" class="form-horizontal">
{foreach from=$info.blocks item=ib}
<div class="row-fluid block_row" id="{$ib.id}"><div class="span12">
<div class="row-fluid">
<div class="widget green">
<div class="widget-title">
<h4><i class="icon-reorder"></i> {$ib.name} </h4>
<span class="tools">
{if $ib.type==1}<span class="block_row_action"><a href="#" class="btn btn-warning add_block_row" id="{$ib.id}" style="margin: -4px 0px 0px 0px;"><i class="icon-plus icon-white"></i></a></span>{/if}
<a href="javascript:;" class="icon-chevron-up"></a>
</span>
</div>
<div class="widget-body" style="display:none;">
{if count($ib.items)}
<table class="table table-hover">
<thead><tr>
<th style="width:270px;"></th>
<th style="width:255px;"></th>
<th></th>
<th></th>
</tr></thead>
<tbody>
{foreach from=$ib.items item=bi name=foo}
{if $bi.type==1}
<tr class="item_row" id="{$bi.id}">
<td>{$bi.name}</td>
<td><input type="TEXT" name="bl_{$ib.id}_it_{$bi.id}[]" value="" /></td>
<td>{$bi.descrip}</td>
<td class="item_row_action">
<a href="#" class="btn btn-warning add_item_row" id="{$bi.id}" style="margin: -4px 0px 0px 0px;"><i class="icon-plus icon-white"></i></a>
</td>
</tr>
{foreach from=$info.portfo[$ib.id][$bi.id] item=sa}
<tr class="item_row_clone" id="{$bi.id}">
<td>{$sa.data}</td>
<td colspan="2">{$sa.znach}<input type="HIDDEN" name="bl_{$ib.id}_it_{$bi.id}[]" value="{$sa.znach}" /></td>
<td class="item_row_action">
<a href="#" class="btn btn-danger del_item_row" id="{$bi.id}" style="margin: -4px 0px 0px 0px;"><i class="icon-remove icon-white"></i></a>
</td>
</tr>
{/foreach}
{else}
<tr class="item_row" id="{$bi.id}">
<td>{$bi.name}</td>
<td><input type="TEXT" name="bl_{$ib.id}_it_{$bi.id}[]" value="{$info.portfo[$ib.id][$bi.id][0].znach}" /></td>
<td>{$bi.descrip}</td>
<td class="item_row_action"></td>
</tr>
{/if}
{/foreach}
</tbody></table>
{/if}
</div>
</div>
</div>
</div></div>
{if $ib.type==1}
{for $block=0 to (count($info.portfo[$ib.id][$bi.id])-1)}
<div class="row-fluid block_row_clone" id="{$ib.id}"><div class="span12">
<div class="row-fluid">
<div class="widget purple">
<div class="widget-title">
<h4><i class="icon-reorder"></i> {$ib.name} </h4>
<span class="tools">
<span class="block_row_action"><a href="#" class="btn btn-danger add_block_row" id="{$ib.id}" style="margin: -4px 0px 0px 0px;"><i class="icon-remove icon-white"></i></a></span>
<a href="javascript:;" class="icon-chevron-up"></a>
</span>
</div>
<div class="widget-body" style="display:none;">
{if count($ib.items)}
<table class="table table-hover">
<thead><tr>
<th style="width:270px;"></th>
<th style="width:255px;"></th>
<th></th>
<th></th>
</tr></thead>
<tbody>
{foreach from=$ib.items item=bi name=foo}
<tr class="item_row" id="{$bi.id}">
<td>{$bi.name}</td>
<td colspan="2">{$info.portfo[$ib.id][$bi.id][$block].znach}<input type="HIDDEN" name="bl_{$ib.id}_it_{$bi.id}[]" value="{$info.portfo[$ib.id][$bi.id][$block].znach}" /></td>
<td class="item_row_action"></td>
</tr>
{/foreach}
</tbody></table>
{/if}
</div>
</div>
</div>
</div></div>
{/for}
{/if}
{/foreach}
<div class="form-actions">
<button type="submit" class="btn btn-success" name="save_portfolio">Сохранить</button>
</div>
</form>
{/if}
</div>
</div>