public static function input($name, array $options = array()) { self::$_form_id++; $config = Kohana::$config->load('tbform'); $attributes['id'] = $config['form_id_prefix'] . self::$_form_id; $attributes['class'] = isset($options['class']) ? $options['class'] . ' span' . Arr::get($options, 'size', $config['input']['size']) : 'span' . Arr::get($options, 'size', $config['input']['size']); $form_element = FORM::input($name, Arr::get(self::$_values, $name), $attributes); $label = array('text' => Arr::get($options, 'label', $name), 'for' => $config['form_id_prefix'] . self::$_form_id); $errors = self::get_errors($name); return View::factory('standart_input')->set('errors', $errors)->set('form_element', $form_element)->set('options', $options)->set('label', $label)->set('help', Arr::get($options, 'help'))->set('horizontal', Arr::get($options, 'horizontal'))->render(); }
<?php if (Core::config('general.recaptcha_active')) { ?> <?php echo Captcha::recaptcha_display(); ?> <div id="recaptcha1"></div> <?php } else { ?> <dt> <?php echo captcha::image_tag('contact'); ?> </dt> <dd><?php echo FORM::input('captcha', "", array('class' => 'form-control', 'placeholder' => __('Captcha'), 'id' => 'captcha', 'required')); ?> </dd> <?php } ?> </dl> <?php } ?> </fieldset> </div> <div class="modal-footer text-center"> <?php echo FORM::button('submit', _e('Send Message'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('default', array('controller' => 'contact', 'action' => 'userprofile_contact', 'id' => $user->id_user)))); ?>
<?php if (core::config('advertisement.captcha') != FALSE) { ?> <div class="form-group"> <div class="col-xs-10"> <?php echo __('Captcha'); ?> *:<br /> <?php echo captcha::image_tag('contact'); ?> <br /> <?php echo FORM::input('captcha', "", array('class' => 'form-control', 'id' => 'captcha', 'required')); ?> </div> </div> <?php } ?> <div class="modal-footer"> <?php echo FORM::button('submit', __('Send Message'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('default', array('controller' => 'contact', 'action' => 'user_contact', 'id' => $widget->id_ad)))); ?> </div> </fieldset> <?php echo FORM::close();
echo FORM::label($forms['smtp_user']['key'], __('Smtp user'), array('class' => 'control-label col-sm-4', 'for' => $forms['smtp_user']['key'])); ?> <div class="col-sm-8"> <?php echo FORM::input($forms['smtp_user']['key'], $forms['smtp_user']['value'], array('placeholder' => "", 'class' => 'tips form-control', 'id' => $forms['smtp_user']['key'], 'data-content' => '', 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => '')); ?> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['smtp_pass']['key'], __('Smtp password'), array('class' => 'control-label col-sm-4', 'for' => $forms['smtp_pass']['key'])); ?> <div class="col-sm-8"> <?php echo FORM::input($forms['smtp_pass']['key'], $forms['smtp_pass']['value'], array('placeholder' => "", 'type' => "password", 'class' => 'tips form-control', 'id' => $forms['smtp_pass']['key'], 'data-content' => '', 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => '')); ?> </div> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-body"> <div class="col-sm-8 col-sm-offset-4"> <?php echo FORM::button('submit', __('Save'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'settings', 'action' => 'email')))); ?> </div>
<?php echo FORM::label('email', __('Email'), array('class' => 'col-xs-4 control-label', 'for' => 'email')); ?> <div class="col-sm-8"> <?php echo FORM::input('email', $user->email, array('class' => 'form-control', 'id' => 'email', 'type' => 'email', 'required', 'placeholder' => __('Email'))); ?> </div> </div> <div class="form-group"> <?php echo FORM::label('description', __('Description'), array('class' => 'col-xs-4 control-label', 'for' => 'description')); ?> <div class="col-sm-8"> <?php echo FORM::input('description', $user->description, array('class' => 'form-control', 'id' => 'description', 'type' => 'description', 'placeholder' => __('Description'))); ?> </div> </div> <?php foreach ($custom_fields as $name => $field) { ?> <div class="form-group" id="cf_new"> <?php $cf_name = 'cf_' . $name; ?> <?php if ($field['type'] == 'select' or $field['type'] == 'radio') { $select = array('' => ''); foreach ($field['values'] as $select_name) {
<?php echo FORM::input('username', Arr::get($values, 'username')); ?> <p class="help-block" style="color: red;"><?php echo Arr::get($errors, 'username'); ?> </p> </div> </div> <div class="control-group"> <label class="control-label">Email</label> <div class="controls"> <?php echo FORM::input('email', Arr::get($values, 'email')); ?> <p class="help-block" style="color: red;"><?php echo Arr::get($errors, 'email'); ?> </p> </div> </div> <div class="control-group"> <label class="control-label">Администратор</label> <div class="controls"> <label><?php echo Form::checkbox('is_admin', null, Arr::get($values, 'is_admin', 0) == 0 ? false : true, array('id' => 'is_admin')); ?> </label>
echo FORM::close(); ?> </div> </div> </div> <div class="col-md-6"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><?php echo __('Find latitude & longitude'); ?> </h3> </div> <div class="panel-body"> <?php echo FORM::input('address', Request::current()->post('address'), array('class' => 'form-control', 'id' => 'address', 'placeholder' => __('Type address'))); ?> <div class="popin-map-container"> <div class="map-inner" id="map" data-lat="<?php echo core::config('advertisement.center_lat'); ?> " data-lon="<?php echo core::config('advertisement.center_lon'); ?> " data-zoom="<?php echo core::config('advertisement.map_zoom'); ?> "
<div class="clearfix"></div> <?php echo __('Add names for multiple categories, for each one push enter.'); ?> <div class="clearfix"></div><br> <?php echo FORM::open(Route::url('oc-panel', array('controller' => 'category', 'action' => 'multy_categories')), array('class' => 'form-inline', 'role' => 'form', 'enctype' => 'multipart/form-data')); ?> <div class="form-group"> <div class=""> <?php echo FORM::label('multy_categories', __('Name') . ':', array('class' => 'control-label', 'for' => 'multy_categories')); ?> <?php echo FORM::input('multy_categories', '', array('placeholder' => __('Hit enter to confirm'), 'class' => 'form-control', 'id' => 'multy_categories', 'type' => 'text', 'data-role' => 'tagsinput')); ?> </div> </div> <div class="clearfix"></div> <?php echo FORM::button('submit', __('Send'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'category', 'action' => 'multy_categories')))); ?> <?php echo FORM::close(); ?> </div> </div> </div> <div class="col-md-12"> <div class="panel panel-default">
?> <div class="col-sm-4"> <?php echo FORM::select($forms['to_top']['key'], array(FALSE => "FALSE", TRUE => "TRUE"), $forms['to_top']['value'], array('placeholder' => "", 'class' => 'tips form-control', 'id' => $forms['to_top']['key'], 'data-content' => __("Bring to top Ad"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("Brings your Ad to the top of the listing."))); ?> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['pay_to_go_on_top']['key'], __('To top price'), array('class' => 'control-label col-sm-3', 'for' => $forms['pay_to_go_on_top']['key'])); ?> <div class="col-sm-4"> <div class="input-group"> <?php echo FORM::input($forms['pay_to_go_on_top']['key'], $forms['pay_to_go_on_top']['value'], array('placeholder' => "", 'class' => 'tips form-control col-sm-3', 'id' => $forms['pay_to_go_on_top']['key'], 'data-content' => __("Pricing"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("How much the user needs to pay to top up an Ad"))); ?> <span class="input-group-addon"><?php echo core::config('payment.paypal_currency'); ?> </span> </div> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['paypal_seller']['key'], "<a target='_blank' href='http://open-classifieds.com/2013/09/02/pay-directly-from-ad/'>" . __('User paypal link') . "</a>", array('class' => 'control-label col-sm-3', 'for' => $forms['paypal_seller']['key'])); ?> <div class="col-sm-4"> <?php
?> </div> </div> <?php } ?> <?php if (isset($options['keys']['secret'])) { ?> <div class="form-group"> <?php echo FORM::label($api . '_secret_label', __('secret'), array('class' => 'control-label col-sm-4', 'for' => $api)); ?> <div class="col-sm-8"> <?php echo FORM::input($api . '_secret', $options['keys']['secret']); ?> </div> </div> <?php } ?> <hr> <?php } ?> <div class="form-group"> <div class="col-sm-offset-4 col-sm-8"> <?php echo FORM::button('submit', 'Update', array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'social', 'action' => 'index'))));
?> <option value="<?php echo $service->id; ?> " <?php echo $selected; ?> ><?php echo $service->name; ?> </option> <?php } ?> </select> <div id="selected_services"></div> <p>Заголовок</p> <?php echo FORM::input('title', Arr::get($values, 'title')); ?> </fieldset> <fieldset> <legend>Текст уведомления</legend> <?php echo FORM::textarea('text', Arr::get($values, 'text'), array('id' => 'text')); ?> </fieldset> <?php echo FORM::submit(NULL, 'Сохранить', array('class' => 'submit')); echo FORM::close();
echo FORM::label($forms['banned_words']['key'], __('Baned Words'), array('class' => 'control-label col-sm-3', 'for' => $forms['banned_words']['key'])); ?> <div class="col-sm-4"> <?php echo FORM::input($forms['banned_words']['key'], $forms['banned_words']['value'], array('placeholder' => "word1,word2,word3", 'class' => 'tips form-control', 'id' => $forms['banned_words']['key'], 'data-content' => __("Baned words are separated with coma (,)"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("You need to write your baned words enable the service."))); ?> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['banned_words_replacement']['key'], __('Baned Words Replacement'), array('class' => 'control-label col-sm-3', 'for' => $forms['banned_words_replacement']['key'])); ?> <div class="col-sm-4"> <?php echo FORM::input($forms['banned_words_replacement']['key'], $forms['banned_words_replacement']['value'], array('placeholder' => "xxx", 'class' => 'tips form-control', 'id' => $forms['banned_words_replacement']['key'], 'data-content' => __("Replacement of a banedword"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("Baned word replacement replaces selected array with string that you provided."))); ?> </div> </div> <?php echo FORM::button('submit', 'Update', array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'settings', 'action' => 'form')))); ?> </fieldset> <?php echo FORM::close(); ?> </div><!--end well-->
<?php defined('SYSPATH') or die('No direct script access.'); echo Message::show_errors($errors); echo FORM::open($url); ?> <fieldset> <legend>Параметры модели автомобиля</legend> <div class="clearfix"> <label for="name">Название модели</label> <div class="input"> <?php echo FORM::input('name', Arr::get($values, 'name'), array('id' => 'name', 'class' => 'span5')); ?> </div> </div> <div class="clearfix"> <label for="car_id">Марка автомобиля</label> <div class="input"> <?php echo FORM::select('car_id', $cars, Arr::get($values, 'car_id')); ?> </div> </div> </fieldset> <?php echo FORM::submit(NULL, 'Сохранить', array('class' => 'btn large success')); echo FORM::close();
<?php echo FORM::input('from_email', '', array('placeholder' => __('from_email'), 'class' => 'form-control', 'id' => 'from_email')); ?> </div> </div> <?php } ?> <div class="form-group"> <?php echo FORM::label('seotitle', __('Seotitle'), array('class' => 'control-label col-md-2', 'for' => 'seotitle')); ?> <div class="col-sm-4"> <?php echo FORM::input('seotitle', '', array('placeholder' => __('seotitle'), 'class' => 'form-control', 'id' => 'seotitle')); ?> </div> </div> <div class="form-group"> <div class="col-sm-4"> <?php echo FORM::hidden('type', $type, array('placeholder' => __('Type'), 'class' => 'form-control', 'id' => 'type')); ?> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <div class="checkbox"> <label class="status">
<div class="controls"> <?php echo FORM::input('full_name', Arr::get($values, 'full_name'), array('class' => 'span5')); ?> <span class="help-inline"><?php echo Arr::get($errors, 'full_name'); ?> </span> <p class="help-block">напр. юго западный административный округ</p> </div> </div> <div class="control-group"> <label for="name" class="control-label">Аббревиатура</label> <div class="controls"> <?php echo FORM::input('abbreviation', Arr::get($values, 'abbreviation'), array('class' => 'span5')); ?> <span class="help-inline"><?php echo Arr::get($errors, 'abbreviation'); ?> </span> <p class="help-block">напр. ЮЗАО</p> </div> </div> <div class="form-actions"> <?php echo FORM::submit(NULL, 'Сохранить', array('class' => 'btn btn-large btn-success')); ?> <?php echo FORM::submit('edit_content', 'Сохранить и перейти к редактированию страницы', array('class' => 'btn btn-large btn-primary')); ?>
<fieldset> <legend><?php echo __('s_stock_params'); ?> </legend> <p><?php echo __('s_firm'); ?> </p> <?php echo FORM::select('service_id', $services, Arr::get($values, 'service_id')); ?> </fieldset> <p>Заголовок</p> <?php echo FORM::input('title', Arr::get($values, 'title'), array('class' => 's_inp', 'style' => 'width: 350px;')); ?> <div class="form_error"><?php echo Message::show_once_error($errors, 'text'); ?> </div> <fieldset> <legend>Текст</legend> <?php echo FORM::textarea('text', Arr::get($values, 'text')); ?> </fieldset> <?php echo FORM::submit(NULL, 'Опубликовать', array('class' => 's_button')); echo FORM::close(); ?>
<div class="form-group"> <?php echo FORM::label($forms['smtp_user']['key'], __('Smtp user'), array('class' => 'control-label', 'for' => $forms['smtp_user']['key'])); ?> <?php echo FORM::input($forms['smtp_user']['key'], $forms['smtp_user']['value'], array('placeholder' => "", 'class' => 'tips form-control', 'id' => $forms['smtp_user']['key'])); ?> </div> <div class="form-group"> <?php echo FORM::label($forms['smtp_pass']['key'], __('Smtp password'), array('class' => 'control-label', 'for' => $forms['smtp_pass']['key'])); ?> <?php echo FORM::input($forms['smtp_pass']['key'], $forms['smtp_pass']['value'], array('placeholder' => "", 'type' => "password", 'class' => 'tips form-control', 'id' => $forms['smtp_pass']['key'])); ?> </div> <hr> <?php echo FORM::button('submit', __('Save'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'settings', 'action' => 'email')))); ?> </div> </div> </div> </div> </form> </div>
?> <?php echo Form::radio($forms['watermark']['key'], 0, !(bool) $forms['watermark']['value'], array('id' => $forms['watermark']['key'] . '0')); ?> <?php echo Form::label($forms['watermark']['key'] . '0', __('Disabled')); ?> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['watermark_path']['id'], __('Watermark path'), array('class' => 'control-label', 'for' => $forms['watermark_path']['id'])); ?> <?php echo FORM::input($forms['watermark_path']['key'], $forms['watermark_path']['value'], array('placeholder' => "images/watermark.png", 'class' => 'tips form-control', 'id' => $forms['watermark_path']['id'])); ?> <span class="help-block"> <?php echo __("Relative path to the image to use as watermark"); ?> </span> </div> <div class="form-group"> <?php echo FORM::label($forms['watermark_position']['id'], __('Watermark position'), array('class' => 'control-label', 'for' => $forms['watermark_position']['id'])); ?> <?php echo FORM::select($forms['watermark_position']['key'], array(0 => "Center", 1 => "Bottom", 2 => "Top"), $forms['watermark_position']['value'], array('placeholder' => $forms['watermark_position']['value'], 'class' => 'tips form-control', 'id' => $forms['watermark_position']['id']));
echo FORM::label('description', __('Description'), array('class' => 'col-md-3 control-label', 'for' => 'description')); ?> <div class="col-md-7"> <?php echo FORM::textarea('description', $topic->description, array('class' => 'form-control', 'id' => 'description')); ?> </div> </div> <div class="form-group"> <?php echo FORM::label('seotitle', __('Seotitle'), array('class' => 'col-md-3 control-label', 'for' => 'seotitle')); ?> <div class="col-md-5"> <?php echo FORM::input('seotitle', $topic->seotitle, array('placeholder' => __('Seotitle'), 'class' => '', 'id' => 'seotitle')); ?> </div> </div> <div class="form-group"> <div class="col-md-offset-3 col-sm-9"> <div class="checkbox"> <label> <input type="checkbox" name="status" <?php echo $topic->status == Model_Post::STATUS_ACTIVE ? 'checked="checked"' : ''; ?> > <?php echo __('Activate'); ?> </label>
echo FORM::label('version', __('Version'), array('class' => 'col-md-12 ', 'for' => 'version')); ?> <div class="col-md-12"> <?php echo FORM::input('version', Request::current()->post('version'), array('placeholder' => '1.0.0', 'class' => 'form-control', 'id' => 'version', 'type' => 'text')); ?> </div> </div> <div class="form-group"> <?php echo FORM::label('skins', __('Skins'), array('class' => 'col-md-12 ', 'for' => 'skins')); ?> <div class="col-md-12"> <?php echo FORM::input('skins', Request::current()->post('skins'), array('placeholder' => 'Hit enter to confirm', 'class' => 'form-control', 'id' => 'skins', 'type' => 'text', 'data-role' => 'tagsinput')); ?> </div> </div> <div class="form-group"> <?php echo FORM::label('featured', __('Feature product'), array('class' => 'col-md-12 ', 'for' => 'featured')); ?> <div class="col-md-8"> <div class="input-group"> <input type="text" size="16" id="featured" name="featured" value="" class="form-control" data-date="" data-date-format="yyyy-mm-dd"> <div class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></div> </div> </div> </div>
<?php echo FORM::hidden($form['id_post']['name'], $form['id_post']['value']); ?> <?php echo FORM::hidden($form['id_user']['name'], $form['id_user']['value']); ?> <?php echo FORM::hidden($form['seotitle']['name'], $form['seotitle']['value']); ?> <div class="form-group"> <?php echo FORM::label($form['title']['id'], __('Title'), array('class' => 'control-label col-md-2', 'for' => $form['title']['id'])); ?> <div class="col-sm-4"> <?php echo FORM::input($form['title']['name'], $form['title']['value'], array('placeholder' => __('Title'), 'class' => 'form-control', 'id' => $form['title']['id'], 'required')); ?> </div> </div> <div class="form-group"> <?php echo FORM::label($form['description']['id'], __('Description'), array('class' => 'control-label col-md-2', 'for' => $form['description']['id'])); ?> <div class="col-sm-9"> <?php echo FORM::textarea($form['description']['name'], $form['description']['value'], array('class' => 'form-control', 'id' => $form['description']['id'], 'data-editor' => 'html')); ?> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10">
</div> <div class="form-group"> <?php echo FORM::label('description', __('Description'), array('class' => 'col-md-3 control-label', 'for' => 'description')); ?> <div class="col-md-7"> <?php echo FORM::textarea('description', $forum->description, array('class' => 'form-control', 'id' => 'description')); ?> </div> </div> <div class="form-group"> <?php echo FORM::label('seoname', __('Seoname'), array('class' => 'col-md-3 control-label', 'for' => 'seoname')); ?> <div class="col-md-5"> <?php echo FORM::input('seoname', $forum->seoname, array('placeholder' => __('Seoname'), 'class' => 'form-control', 'id' => 'seoname')); ?> </div> </div> <div class="form-actions"> <?php echo FORM::button('submit', __('Update'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('oc-panel', array('controller' => 'forum', 'action' => 'update')))); ?> </div> </fieldset> <?php echo FORM::close(); ?> </div>
<?php } ?> <?php if (core::config('general.auto_locate')) { ?> <div class="modal fade" id="myLocation" tabindex="-1" role="dialog" aria-labelledby="myLocationLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-body"> <div class="input-group"> <input type="hidden" name="latitude" id="myLatitude" value="" disabled> <input type="hidden" name="longitude" id="myLongitude" value="" disabled> <?php echo FORM::input('myAddress', Request::current()->post('address'), array('class' => 'form-control', 'id' => 'myAddress', 'placeholder' => __('Where do you want to search?'))); ?> <span class="input-group-btn"> <button id="setMyLocation" class="btn btn-default" type="button"><?php echo __('Ok'); ?> </button> </span> </div> <br> <div id="mapCanvas"></div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Close'); ?>
?> </option> <?php } ?> </select> <p class="help-block">Кому адресовано уведомление (Не выбрав никого отправиться всем)</p> <div id="selected_services"></div> </div> </div> <div class="control-group"> <label class="control-label">Заголовок</label> <div class="controls"> <?php echo FORM::input('title', Arr::get($values, 'title'), array('class' => 'span7')); ?> </div> </div> <?php if (isset($mode) and $mode == 'edit') { ?> <div class="control-group"> <label class="control-label">Прочее</label> <div class="controls"> <label class="checkbox"> <?php echo FORM::checkbox('save_status', 1, (bool) Arr::get($values, 'save_status', TRUE)); ?> Сохранить статусы прочитан/непрочитан для уже отправленных
<?php defined('SYSPATH') or die('No direct script access.'); echo FORM::open('search', array('method' => 'get', 'class' => 'search-form')); ?> <?php echo FORM::input('str', Arr::get($values, 'str')); ?> <?php echo FORM::hidden('search_type', Arr::get($values, 'search_type')); ?> <button name="submit" class="submit">Искать <span class="search-preloader"><img src="/assets/img/search_button_preloader.gif" alt="Искать" /></span></button> <div class="tip">Запросы можно вводить через запятую, например Москва, Ауди, Тюнинг</div> <div class="form-errors"> <?php foreach ($errors as $error) { echo '<div class="error">' . $error . '</div>'; } ?> </div> <div class="result"> <?php echo $result; ?> </div> <?php echo FORM::close();
<?php echo FORM::label('name', _e('Name'), array('class' => 'col-xs-4 control-label', 'for' => 'name')); ?> <div class="col-sm-8"> <?php echo FORM::input('name', $user->name, array('class' => 'form-control', 'id' => 'name', 'required', 'placeholder' => __('Name'))); ?> </div> </div> <div class="form-group"> <?php echo FORM::label('email', _e('Email'), array('class' => 'col-xs-4 control-label', 'for' => 'email')); ?> <div class="col-sm-8"> <?php echo FORM::input('email', $user->email, array('class' => 'form-control', 'id' => 'email', 'type' => 'email', 'required', 'placeholder' => __('Email'))); ?> </div> </div> <div class="form-group"> <?php echo FORM::label('description', _e('Description'), array('class' => 'col-xs-4 control-label', 'for' => 'description')); ?> <div class="col-sm-8"> <?php echo FORM::textarea('description', $user->description, array('placeholder' => '', 'rows' => 3, 'cols' => 50, 'class' => 'form-control', 'id' => 'description')); ?> </div> </div>
?> <?php echo Captcha::recaptcha_display(); ?> <?php } else { ?> <?php echo FORM::label('captcha', __('Captcha'), array('for' => 'captcha')); ?> <span id="helpBlock" class="help-block"><?php echo captcha::image_tag('publish_new'); ?> </span> <?php echo FORM::input('captcha', "", array('class' => 'form-control', 'id' => 'captcha', 'required', 'data-error' => __('Captcha is not correct'))); ?> <?php } ?> </div> </div> <?php } ?> <div class="form-actions"> <?php echo FORM::button('submit_btn', __('Publish new'), array('type' => 'submit', 'id' => 'publish-new-btn', 'data-swaltitle' => __('Are you sure?'), 'data-swaltext' => __('It looks like you have been about to publish a new advertisement, if you leave before submitting your changes will be lost.'), 'class' => 'btn btn-primary', 'action' => Route::url('post_new', array('controller' => 'new', 'action' => 'index')))); ?> <?php if (!Auth::instance()->get_user()) {
</label> <?php echo FORM::textarea('about', Arr::get($values, 'about'), array('class' => 's_tarea', 'id' => 'about', 'style' => 'width: 400px;')); ?> <div class="form_error"><?php echo Message::show_once_error($errors, 'about'); ?> </div> </li> <li> <label for="work_times" class="lab"><?php echo __('f_work_time'); ?> </label> <?php echo FORM::input('work_times', Arr::get($values, 'work_times'), array('class' => 's_inp', 'id' => 'work_times')); ?> </li> <li> <label class="lab"><?php echo __('f_discount'); ?> </label> <?php echo FORM::select('discount_id', $discounts, Arr::get($values, 'discount_id'), array('id' => 'discount')); ?> </li> <?php $discount = Arr::get($values, 'discount_id', 0); $coupon_form_style = 'display: none'; if ($discount != 0) {
<?php echo FORM::label('postal_code', __('Postal Code'), array('class' => 'col-md-4 control-label', 'for' => 'postal_code')); ?> <div class="col-md-8"> <?php echo FORM::input('postal_code', $user->postal_code, array('class' => 'form-control', 'id' => 'postal_code', 'type' => 'postal_code', 'maxlength' => '20', 'placeholder' => __('Postal Code'))); ?> </div> </div> <div class="form-group"> <?php echo FORM::label('address', __('Address'), array('class' => 'col-md-4 control-label', 'for' => 'address')); ?> <div class="col-md-8"> <?php echo FORM::input('address', $user->address, array('class' => 'form-control', 'id' => 'address', 'type' => 'address', 'maxlength' => '150', 'placeholder' => __('Address'))); ?> </div> </div> <div class="form-group"> <div class="col-md-offset-4 col-md-8"> <button type="submit" class="btn btn-primary"><?php echo __('Update'); ?> </button> </div> </div> <input type="hidden" name="order_id" value="<?php echo core::request('order_id'); ?> ">
<?php } ?> <!-- END LOCATION --> <!-- START WEBSITE --> <?php if (core::config('advertisement.website') != FALSE) { ?> <div class="form-group"> <div class="col-sm-8"> <?php echo FORM::label('website', _e('Website'), array('class' => '', 'for' => 'website')); ?> <?php echo FORM::input('website', $ad->website, array('class' => 'form-control', 'id' => 'website', 'placeholder' => __('Website'))); ?> </div> </div> <?php } ?> <!-- END WEBSITE --> <div class="form-group images" data-max-image-size="<?php