149 lines
4.6 KiB
HTML
149 lines
4.6 KiB
HTML
<!-- BEGIN PAGE HEADER-->
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<h3 class="page-title">Опрос. {$anketa.name}</h3>
|
||
<ul class="breadcrumb">
|
||
<li><a href="/">Главная</a><span class="divider">/</span></li>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
{if ($message != "")}
|
||
<div class="alert alert-success">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>{$message}</strong>
|
||
</div>
|
||
{/if}
|
||
|
||
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
|
||
|
||
<!--ДОБАЛЕНИЕ НОВОГО ОПРОСА-->
|
||
<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-up"> Развернуть/Свернуть</a>
|
||
</span>
|
||
</div>
|
||
<div class="widget-body" style="display: none;">
|
||
|
||
<span style="color: red;">Все поля обязательны к заполнению!</span>
|
||
|
||
<form name="add_question" action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
|
||
|
||
<input type="hidden" name="id_anketa" value="{$anketa.id}" />
|
||
|
||
<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="type" class="form-control" style="width: 90%;">
|
||
<option value="text">Короткий текст</option>
|
||
<option value="textarea">Большой текст</option>
|
||
<option value="select">Выбор из списка</option>
|
||
<option value="bool">Да/Нет</option>
|
||
<option value="title">Заголовок</option>
|
||
</select>
|
||
</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%;">
|
||
<textarea name="options" rows="5" class="form-control" style="width: 90%; "></textarea>
|
||
|
||
</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="status" class="form-control" style="width: 90%;">
|
||
<option value="1">Доступен</option>
|
||
<option value="0">Не доступен</option>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<input type="submit" name="add_question" value="Добавить вопрос" class="btn btn-success" />
|
||
|
||
</form>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<!--ДОБАЛЕНИЕ НОВОГО ОПРОСА-->
|
||
<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-bordered">
|
||
<tr>
|
||
<th>№ п/п</th>
|
||
<th>Название вопроса</th>
|
||
<th>Тип вопроса</th>
|
||
<th>Дополнительно</th>
|
||
<th>Статус</th>
|
||
</tr>
|
||
|
||
{foreach from=$questions item=quest key=k}
|
||
<tr>
|
||
<td>{$k+1}</td>
|
||
<td>{$quest.name}</td>
|
||
<td>{$quest.type}</td>
|
||
<td>{$quest.options}</td>
|
||
<td>{$quest.status}</td>
|
||
|
||
|
||
</tr>
|
||
{/foreach}
|
||
|
||
</table>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
|