Example #1
0
<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' Person');
theme::header_button('cancel');
theme::header_end();
theme::hr(0, 12);
theme::start_form_section('Title', true, 5);
theme::text('title', $record->title);
theme::end_form_section();
theme::start_form_section('Position', false, 5);
theme::text('position', $record->position);
theme::end_form_section();
theme::start_form_section('Order', false, 5);
field_range::range('weight', $record->weight, ['before' => 'First', 'after' => 'Last']);
theme::end_form_section();
theme::start_form_section('Bio', true);
plugin_bootstrap_wysiwyg::input('bio', $record->bio, ['toolbar' => '/admin/content/people/toolbar/bio.php']);
theme::end_form_section();
theme::start_form_section('Picture', true, 3);
plugin_cropper::show('picture', $record->picture, 256, 256);
//plugin_attach_file::image('picture',$record->picture,150,1);
theme::end_form_section();
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
Example #2
0
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);
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('Note');
theme::textarea('note', $record->note);
theme::end_form_section();
theme::hr(0, 12);
theme::footer_start();