<?php defined('SYSPATH') or die('No direct script access.'); $company_name = Arr::get($values, 'company_name'); $checkboxes = array('active' => array('val' => 1, 'label' => 'Активен')); echo TbForm::open(NULL, array('class' => 'form-horizontal'), $values, $errors); ?> <fieldset> <legend>Параметры страницы</legend> <?php echo TbForm::input('title', array('label' => 'Заголовок')); ?> <?php echo TbForm::checkboxes($checkboxes, 'Статус страницы'); ?> <?php if ($company_name) { ?> <div class="control-group"> <label class="control-label" style="margin-top: 0;"></label> <div class="controls"><?php echo $company_name; ?> </div> </div> <?php } ?> </fieldset> <h3>Текст</h3>
</div> </div> <?php echo TbForm::textarea('text', array('label' => 'Вопрос')); ?> </fieldset> <fieldset> <legend>Контактные данные</legend> <?php echo TbForm::input('contact', array('label' => 'Контактное лицо', 'size' => 3)); ?> <?php echo TbForm::input('email', array('label' => 'Email', 'size' => 3)); ?> <?php echo TbForm::input('phone', array('label' => 'Телефон', 'size' => 2)); ?> <div class="control-group"> <label class="control-label">Город</label> <div class="controls"> <?php echo FORM::select('city_id', $cities, Arr::get($values, 'city_id')); ?> </div> </div> <?php echo TbForm::checkboxes($send_checkboxes, 'Запрос адресован сервисам'); ?> <?php echo TbForm::actions('save'); ?>
echo $work->name; ?> </option> <?php } ?> </optgroup> <?php } ?> </select> </div> <div style="margin-left: 160px;" id="selected_works"></div> </div> <?php echo TbForm::input('work_time', array('label' => __('f_work_time'), 'size' => 2)); ?> <?php echo TbForm::textarea('about', array('label' => __('f_about_service'), 'horizontal' => FALSE)); ?> <div class="control-group"> <label class="control-label"><?php echo __('f_discount'); ?> </label> <div class="controls"> <?php echo FORM::select('discount_id', array('0' => 'нет') + $discounts, Arr::get($values, 'discount_id'), array('id' => 'discount')); ?> </div> </div>
<?php defined('SYSPATH') or die('No direct script access.'); echo TbForm::open($url, array('class' => 'form-horizontal'), $values, $errors); $active_checkbox = array('active' => array('val' => 1, 'label' => 'Активен')); ?> <div class="row-fluid"> <div class="span6"> <fieldset style="margin-bottom: 0;"> <legend>Параметры страницы</legend> <?php echo TbForm::input('title', array('label' => 'Заголовок')); ?> <?php echo TbForm::input('url', array('label' => 'URL')); ?> <?php echo TbForm::checkboxes($active_checkbox, 'Статус страницы'); ?> </fieldset> </div> <div class="span6"> <fieldset style="margin-bottom: 0;"> <legend>Мета-теги</legend> <?php echo TbForm::textarea('keywords', array('label' => 'Ключевые слова (meta-keywords)')); ?> <?php echo TbForm::textarea('description', array('label' => 'Описание (meta-description)')); ?> </fieldset>