Example #1
0
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);
?>

		</div>
	</div>
Example #2
0
echo TB_Form::label(__('publications.page_text_preview'));
?>
				<div class="col-sm-10">
					<?php 
echo Editor::CK('text_short', $obj->text_short, ['class' => 'form-control', 'rows' => 6], 'preview');
?>
				</div>
			</div>

			<div class="form-group">
				<?php 
echo TB_Form::label(__('publications.page_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.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>