</li> </ul> <?php echo Form::open(null, ['class' => 'form-horizontal']); ?> <div class="tab-content"> <div class="tab-pane fade in active" id="home"> <div class="form-group<?php echo Form::has_error('text', $errors); ?> "> <?php echo TB_Form::label(__('home.page_text')); ?> <div class="col-sm-10"> <?php echo Editor::CK('text', $data['text'], ['class' => 'form-control', 'rows' => 6]); echo Form::error('text', $errors); ?> </div> </div> </div> <div class="tab-pane fade" id="seo"> <?php echo View::factory('backend/v_seo', ['t' => [$data['meta_t'], __('home.meta_t_h'), true], 'd' => [$data['meta_d'], __('home.meta_d_h'), true], 'k' => [$data['meta_k'], __('home.meta_k_h'), true]])->bind('errors', $errors); ?>
<?php echo TB_Form::label(__('publications.page_date')); ?> <div class="col-sm-10"> <?php echo Form::input('date', $obj->date ? $obj->date : date('Y-m-d'), ['class' => 'form-control']); ?> </div> </div> <?php if (Module::is_on('cms_tags')) { ?> <div class="form-group"> <?php echo TB_Form::label(__('tags.tags')); ?> <div class="col-sm-10"> <?php echo Form::input('tags', $tags, ['class' => 'form-control']); ?> </div> </div> <?php } ?> <div class="form-group"> <label class="col-sm-2 control-label"></label> <div class="col-sm-10">
<?php echo Form::textarea('meta_d', $d[0], ['class' => 'form-control', 'id' => 'meta_d', 'rows' => 2]); echo Form::help((isset($d[1]) ? $d[1] : '') . '<div id="chars_meta_d"></div>'); echo Form::error('meta_d', $errors); ?> </div> </div> <?php } ?> <?php if (isset($k)) { ?> <div class="form-group<?php echo Form::has_error('meta_k', $errors); ?> "> <?php echo TB_Form::label(__('settings.seo_meta_k') . (isset($k['2']) ? Form::$required : '')); ?> <div class="col-sm-10"> <?php echo Form::textarea('meta_k', $k[0], ['class' => 'form-control', 'id' => 'meta_k', 'rows' => 2]); echo Form::help((isset($k[1]) ? $k[1] : '') . '<div id="chars_meta_k"></div>'); echo Form::error('meta_k', $errors); ?> </div> </div> <?php }
echo TB_Form::label(__('settings.pg_for_frontend') . Form::$required); ?> <div class="col-sm-10"> <?php echo Form::input('per_page_frontend', $data['per_page_frontend'], ['class' => 'form-control']); echo Form::error('per_page_frontend', $errors); ?> </div> </div> <div class="form-group<?php echo Form::has_error('per_page_backend', $errors); ?> "> <?php echo TB_Form::label(__('settings.pg_for_backend') . Form::$required); ?> <div class="col-sm-10"> <?php echo Form::input('per_page_backend', $data['per_page_backend'], ['class' => 'form-control']); echo Form::error('per_page_backend', $errors); ?> </div> </div> <?php echo TB_Form::btn_save(); ?> <?php echo Form::close();
<?php echo TB_Form::label(__('shop.category_parent')); ?> <div class="col-sm-10"> <?php echo $sel_category; ?> </div> </div> <?php } ?> <div class="form-group"> <?php echo TB_Form::label(__('shop.category_text')); ?> <div class="col-sm-10"> <?php echo Editor::CK('text', $obj->text, ['class' => 'form-control', 'rows' => 6]); ?> </div> </div> </div> <div class="tab-pane fade" id="seo"> <?php echo View::factory('backend/v_seo', ['s' => [$obj->slug, __('shop.category_slug_h')], 't' => [$obj->meta_t, __('shop.category_meta_t_h')], 'd' => [$obj->meta_d, __('shop.category_meta_d_h')], 'k' => [$obj->meta_k, __('shop.category_meta_k_h')]])->bind('errors', $errors); ?>
<?php defined('SYSPATH') or die('No direct script access.'); foreach ($actions as $key => $action) { $url[$key] = Route::url('ajax', ['module' => $module, 'controller' => $controller, 'action' => $action, 'param' => $obj['id']]); } $group = $module . '.' . $config_img; $fn = Config::get($group . '.fn'); ?> <div class="form-group"> <?php echo TB_Form::label(__('shop.images')); ?> <div class="controls col-sm-10"> <div id="fileuploads-info"></div> <div id="fileuploads-result"> <?php echo $obj['id'] ? Fileuploaders::v_image($group, $obj['id'], $obj['is_edit']) : Fileuploaders::v_image($group, $user->id); ?> </div> <div class="btn btn-default fileupload-button"> <i class="fa fa-folder-open fa-fw"></i> <?php echo __('shop.select_image'); ?> <input name="<?php echo $fn; ?> " id="fileuploads" type="file" data-url="<?php echo $url['upload'];
?> <div class="form-group"> <?php echo TB_Form::label(__('publications.category_text')); ?> <div class="col-sm-10"> <?php echo Editor::CK('text', $obj->text, ['class' => 'form-control', 'rows' => 6]); ?> </div> </div> <div class="form-group"> <?php echo TB_Form::label(__('publications.category_icon_name')); ?> <div class="col-sm-10"> <div class="input-group"> <span class="input-group-addon"> <i class="fa <?php echo $obj->icon ? $obj->icon : 'fa-info'; ?> fa-fw"></i> </span> <?php echo Form::input('icon', $obj->icon, ['class' => 'form-control', 'placeholder' => __('publications.category_icon_placeholder')]); ?> </div> <?php echo Form::help(HTML::anchor('http://fortawesome.github.io/Font-Awesome/icons', __('publications.category_icon_h') . ' <i class="fa fa-external-link fa-fw"></i>', ['target' => '_blank']));
</div> <div class="form-group"> <?php echo TB_Form::label(__('shop.product_status')); ?> <div class="col-sm-10"> <?php echo Form::select('status', Model_Shop_Product::get_statuses_key_title(), $obj->status ? $obj->status : Model_Shop_Product::STATUS_FINISHED, ['class' => 'form-control']); ?> </div> </div> <div class="form-group"> <?php echo TB_Form::label(__('shop.product_text')); ?> <div class="col-sm-10"> <?php echo Editor::CK('text', $obj->text, ['class' => 'form-control', 'rows' => 6]); ?> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label"></label> <div class="col-sm-10"> <div class="checkbox"> <label> <?php