<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' Email Template');
theme::header_button('cancel');
theme::header_end();
//kd($record);
theme::hr(0, 12);
theme::start_form_section('Key', true);
Plugin_locked_field::show('key', $record->key, ['has_access' => 'email template::change key']);
theme::end_form_section();
echo '<ul class="nav nav-tabs js-tabs">
    <li class="active"><a href="#general_tab" data-toggle="tab">General</a></li>
    <li><a href="#plain-tab" data-toggle="tab">Plain</a></li>
    <li><a href="#html-plain" data-toggle="tab">HTML</a></li>
    <li><a href="#variables-plain" data-toggle="tab">Snippets & Paths</a></li>
  </ul><br>';
?>
<div class="tab-content">
	<div class="tab-pane active" id="general_tab">
		<?php 
theme::start_form_section('Subject Line', true);
theme::text('subject', $record->subject);
theme::end_form_section();
theme::start_form_section('Description');
theme::text('description', $record->description);
theme::end_form_section();
theme::start_form_section('Active From');
Plugin_datetimepicker::dt('active_from', $record->active_from);
theme::end_form_section();
theme::start_form_section('Active To');
Example #2
0
<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' ' . $controller_title);
theme::header_button('cancel');
theme::header_end();
theme::hr(0, 12);
theme::start_form_section('Name', true);
theme::text('name', $record->name);
theme::end_form_section();
theme::start_form_section('Internal', true);
Plugin_locked_field::show('internal', $record->internal, ['has_access' => 'dropdowns::change internal']);
theme::end_form_section();
?>
<div class="row">
	<div class="col-md-6">
		For database integrative once you add a entry and save the record you cannot remove it.
	</div>
	<div class="col-md-6 text-right">
		<button type="button" class="js-add btn btn-default btn-sm"><i class="fa fa-magic"></i> Add Row</button>
	</div>
</div>

<?php 
theme::hr(4, 12);
?>

<div class="dd" id="nestable">
<ol class="dd-list">
<?php 
foreach ($record->childern as $child) {
Example #3
0
<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' ' . $controller_title);
theme::header_button('cancel');
theme::header_end();
theme::hr(0, 12);
theme::hidden('sort', $record->sort);
theme::hidden('parent_id', $record->parent_id);
theme::start_form_section('Title', true, 6);
theme::text('title', $record->title, ['class' => 'js-human-input']);
theme::end_form_section();
theme::start_form_section('Segment', true, 5);
Plugin_locked_field::show('segment', $record->segment, ['has_access' => 'page::change internal', 'class' => 'js-computer-input']);
theme::end_form_section();
theme::start_form_section('URL');
theme::static_text($record->url);
theme::end_form_section('The URL is dynamically generated when the record is saved.');
theme::start_form_section('Show in menu');
theme::checkbox('in_menu', 1, $record->in_menu);
theme::end_form_section();
theme::start_form_section('Is Visible');
theme::checkbox('is_visible', 1, $record->is_visible);
theme::end_form_section();
theme::start_form_section('Wildcard');
theme::checkbox('wildcard', 1, $record->wildcard);
theme::end_form_section();
theme::start_form_section('Show After', false, 3);
plugin_datetimepicker::date_time('start_on', $record->start_on);
theme::end_form_section();
theme::start_form_section('Hide After', false, 3);
Example #4
0
<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' Page');
theme::header_button('cancel');
theme::header_end();
theme::hr(0, 12);
//kd($record);
theme::start_form_section('Title', true);
theme::text('title', $record->title, ['class' => 'js-human-input']);
theme::end_form_section();
theme::start_form_section('Internal', true);
Plugin_locked_field::show('internal', $record->internal, ['data-lock' => 'internal', 'has_access' => 'content::change internal', 'class' => 'js-computer-input']);
theme::end_form_section();
theme::start_form_section('Categories');
Plugin_chosen::show('categories', $record->categories, $category_options);
theme::end_form_section();
theme::start_form_section('Picture');
plugin_attach_file::image('picture', $record->picture, 150, 1);
theme::end_form_section();
theme::start_form_section('Link');
theme::text('link', $record->link);
theme::end_form_section();
theme::start_form_section('Content');
plugin_bootstrap_wysiwyg::input('content', $record->content, ['toolbar' => $controller_path . '/toolbar.php']);
theme::end_form_section();
theme::start_form_section('Show After', 3);
plugin_datetimepicker::date_time('start_on', $record->start_on);
theme::end_form_section();
theme::start_form_section('Hide After', 3);
plugin_datetimepicker::date_time('end_on', $record->end_on);
Example #5
0
<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' ' . $controller_title);
theme::header_button('back');
theme::header_end();
theme::hr(0, 12);
theme::start_form_section('Name', true);
Plugin_locked_field::show('name', $record->name, ['has_access' => 'snippet::change name']);
theme::end_form_section();
theme::start_form_section('Internal Name', true);
theme::text('variable', $record->variable, ['readonly' => true, 'id' => 'variable_text']);
theme::end_form_section();
theme::start_form_section('Value');
theme::textarea('value', $record->value);
theme::end_form_section();
theme::start_form_section('Note');
theme::textarea('note', $record->note);
theme::end_form_section();
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();