SproutCMS

This is the code documentation for the SproutCMS project

class Form

Helper functions for outputting form elements.

Wraps form fields (e.g. from Fb) with additional HTML.

Most wrapping will done using the __callStatic method which actually just calls Form::fieldAuto.
That method uses reflection to look for a custom docblock tag, @wrap-in-fieldset.
If that docblock tag is found, the field is wrapped in Form::fieldFieldset
If that docblock tag is not found (the most common case), the field is wrapped in Form::fieldPlain

If the field being wrapped isn't in the Fb helper, the methods fieldAuto, fieldPlain, and fieldFieldset
can be invoked directly.

The outermost wrapper DIV around the field has a class of "field-element".
Additional classes are also added:
 - The method and class name, in the format 'field-element--id-<name>'
 - If an "id" attribute is set, in the format 'field-element--id-<id>'
 - If the field is required, 'field-element--required'
 - If the field is disabled, 'field-element--disabled'
 - If the field has an error, 'field-element--error'
 - One or more custom classes can be specified using the attribute "-wrapper-class".
   Each (array or space separated) class is prefixed with 'field-element--'

Example

Form::setData($data);
Form::setErrors($errors);
 
Form::nextFieldDetails('First name', true);
echo Form::text('first_name');
 
Form::nextFieldDetails('Email', true, 'Please enter your email address');
echo Form::email('email', [], ['-wrapper-class' => 'small']);
 
Form::nextFieldDetails('Phone', false, 'Enter a phone number using the unique UI');
echo Form::fieldPlain('SproutModules\Someone\CustomModule\Helpers\FbHack::phone', 'phone', [], []);

Source code (270 results)

/config/tinymce4.php   Highlighted file source

Line 14: 'bold italic strikethrough subscript superscript link unlink anchor | removeformat | code fullscreen',
Line 54: * Formats dropdown for the Standard group
Line 56: $config['Standard']['style_formats'] = array(
Line 58: array('title' => 'Heading 2', 'format' => 'h2'),
Line 59: array('title' => 'Heading 3', 'format' => 'h3'),
Line 60: array('title' => 'Heading 4', 'format' => 'h4'),
Line 63: array('title' => 'Paragraph', 'format' => 'p'),
Line 64: array('title' => 'Blockquote', 'format' => 'blockquote'),
Line 69: array('title' => 'Bold', 'format' => 'bold'),
Line 70: array('title' => 'Italic', 'format' => 'italic'),

/config/tinymce4.php   Highlighted file source

Line 14: 'bold italic strikethrough subscript superscript link unlink anchor | removeformat | code fullscreen',
Line 54: * Formats dropdown for the Standard group
Line 56: $config['Standard']['style_formats'] = array(
Line 58: array('title' => 'Heading 2', 'format' => 'h2'),
Line 59: array('title' => 'Heading 3', 'format' => 'h3'),
Line 60: array('title' => 'Heading 4', 'format' => 'h4'),
Line 63: array('title' => 'Paragraph', 'format' => 'p'),
Line 64: array('title' => 'Blockquote', 'format' => 'blockquote'),
Line 69: array('title' => 'Bold', 'format' => 'bold'),
Line 70: array('title' => 'Italic', 'format' => 'italic'),

/modules/Demo/Controllers/MultiStepDemoController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 21: * A basic demonstration of how {@see MultiStepFormController} works
Line 23: class MultiStepDemoController extends \Sprout\Controllers\MultiStepFormController
Line 51: public function form($step = -1) {
Line 56: $view = parent::form($step);

/modules/Demo/views/steps/details.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 21: Form::setData($data);
Line 22: Form::setErrors($errors);
Line 25: <form method="post" action="<?= Enc::html($submit_url); ?>">
Line 28: Form::nextFieldDetails('How did you hear about us?', false);
Line 29: echo Form::dropdown('how_heard', [], Pdb::extractEnumArr('multistep_demo_submissions', 'how_heard'));
Line 33: Form::nextFieldDetails('Tell us why you love us', true);
Line 34: echo Form::richtext('why_love');
Line 39: </form>

/modules/Demo/views/steps/email.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 20: Form::setData($data);
Line 21: Form::setErrors($errors);
Line 24: <form method="post" action="<?= Enc::html($submit_url); ?>">
Line 27: Form::nextFieldDetails('Email', true);
Line 28: echo Form::email('email');
Line 33: </form>

/modules/Demo/views/steps/phone.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 20: Form::setData($data);
Line 21: Form::setErrors($errors);
Line 24: <form method="post" action="<?= Enc::html($submit_url); ?>">
Line 27: Form::nextFieldDetails('Home phone', true);
Line 28: echo Form::phone('phone');
Line 32: Form::nextFieldDetails('Mobile phone', true);
Line 33: echo Form::phone('mobile');
Line 38: </form>

/modules/HarborAndSprout/Controllers/HarborController.php   Highlighted file source

Line 18: * Render Shopify API test form
Line 23: public function shopifyApiForm()
Line 25: $view = new View('modules/HarborAndSprout/admin/shopify_api_form');
Line 39: * Render Google Drive API test form
Line 44: public function driveApiForm()
Line 46: $view = new View('modules/HarborAndSprout/admin/drive_api_form');
Line 71: * Render Google OAuth form

/modules/HarborAndSprout/sprout_load.php   Highlighted file source

Line 8: 'method' => 'shopifyApiForm',
Line 15: 'method' => 'driveApiForm',

/modules/HarborAndSprout/views/admin/drive_api_form.php   Highlighted file source

Line 2: use Sprout\Helpers\Form;
Line 4: Form::setData($_POST);
Line 7: <form action="" method="post" class="clear-group">
Line 11: Form::nextFieldDetails('Method', true);
Line 12: echo Form::dropdown('method', [], ['GET' => 'GET', 'POST' => 'POST']);
Line 18: Form::nextFieldDetails('Endpoint', true);
Line 19: echo Form::text('endpoint');
Line 25: Form::nextFieldDetails('Params', false, 'JSON');
Line 26: echo Form::multiline('extra', ['placeholder' => '{"pageSize": 10, "fields": "nextPageToken, files(id, name)"}'])
Line 37: </form>

/modules/HarborAndSprout/views/admin/shopify_api_form.php   Highlighted file source

Line 2: use Sprout\Helpers\Form;
Line 4: Form::setData($_POST);
Line 7: <form action="" method="post" class="clear-group">
Line 11: Form::nextFieldDetails('Method', true);
Line 12: echo Form::dropdown('method', [], $methods);
Line 18: Form::nextFieldDetails('Endpoint', true);
Line 19: echo Form::text('endpoint', ['placeholder' => '/orders.json']);
Line 25: Form::nextFieldDetails('Params', false, 'JSON');
Line 26: echo Form::multiline('extra', ['placeholder' => '{"limit": 1}'])
Line 34: </form>

/modules/HomePage/Controllers/Admin/HomePageAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 79: public function _getAddForm() { return null; }

/modules/Welcome/config/routes.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 28: $config['welcome/db_conf_form'] = $ns . 'WelcomeController/dbConfForm';
Line 35: $config['welcome/super_op_form'] = $ns . 'WelcomeController/superOperatorForm';

/modules/Welcome/Controllers/WelcomeController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 30: use Sprout\Helpers\Form;
Line 43: * Forms used for setting up SproutCMS for the first time
Line 64: * Show a phpinfo() view along with some extra information
Line 85: $skin->browser_title = 'PHP information';
Line 86: $skin->main_title = 'PHP information';
Line 231: public function dbConfForm()
Line 235: $data = Form::loadFromSession('db_conf');
Line 237: Form::setData([
Line 242: $view = new View('modules/Welcome/db_conf_form');
Line 287: Url::redirect('welcome/db_conf_form');
Line 480: public function superOperatorForm()
Line 482: Form::loadFromSession('super_op');
Line 484: $view = new View('modules/Welcome/super_op_form');
Line 562: Url::redirect('welcome/super_op_form');
Line 585: Url::redirect('welcome/super_op_form');

/modules/Welcome/views/db_conf_form.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 54: <form action="welcome/db_conf_result" method="post">
Line 56: Form::nextFieldDetails('Environment', true);
Line 57: echo Form::multiradio('production', [], ['test' => 'Test server', 'live' => 'Live/production server']);
Line 61: Form::nextFieldDetails('Hostname', true, 'This can be a hostname or an ip address (e.g. localhost or db-master.example.com)');
Line 62: echo Form::text('host');
Line 66: Form::nextFieldDetails('Username', true, 'The database username (e.g. example_web)');
Line 67: echo Form::text('user');
Line 71: Form::nextFieldDetails('Password', true, 'Note: This field is shown in plaintext');
Line 72: echo Form::text('pass');
Line 76: Form::nextFieldDetails('Database name', true, 'The name of the actual database (e.g. example_v1)');
Line 77: echo Form::text('database');
Line 85: </form>

/modules/Welcome/views/super_op_form.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 30: <form action="welcome/super_op_action" method="post">
Line 33: Form::nextFieldDetails('Username', true, 'Must be a single word, only letters and numbers allowed');
Line 34: echo Form::text('username');
Line 48: Form::nextFieldDetails('Enter new password', true);
Line 49: echo Form::password('password1', ['autocomplete' => 'off']);
Line 54: Form::nextFieldDetails('Enter it again', true);
Line 55: echo Form::password('password2', ['autocomplete' => 'off']);
Line 65: </form>

/skin/default/config/sprout.php   Highlighted file source

Line 49: * Example format:
Line 64: * The format string which builds the browser title.
Line 113: * Format:

/skin/default/config/sprout.php   Highlighted file source

Line 49: * Example format:
Line 64: * The format string which builds the browser title.
Line 113: * Format:

/skin/harbor/config/sprout.php   Highlighted file source

Line 49: * Example format:
Line 64: * The format string which builds the browser title.
Line 113: * Format:

/skin/harbor/config/sprout.php   Highlighted file source

Line 49: * Example format:
Line 64: * The format string which builds the browser title.
Line 113: * Format:

/sprout/config/routes.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 147: $config['file_upload/upload_form'] = 'Sprout\\Controllers\\FileUploadController/uploadForm';

/sprout/config/routes.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 147: $config['file_upload/upload_form'] = 'Sprout\\Controllers\\FileUploadController/uploadForm';

/sprout/Controllers/Admin/ActionLogAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 77: public function _getAddForm() { return false; }
Line 201: $date = $date->format('Y-m-d H:i:s');

/sprout/Controllers/Admin/ActionLogAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 77: public function _getAddForm() { return false; }
Line 201: $date = $date->format('Y-m-d H:i:s');

/sprout/Controllers/Admin/CategoryAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 121: * Returns the add form for adding a record
Line 123: * @return string The HTML code which represents the add form
Line 125: public function _getAddForm()
Line 192: * Return HTML which represents the form for editing a record
Line 194: * @param int $id The id of the record to get the edit form of
Line 196: public function _getEditForm($id)
Line 285: * Shows delete form for deleting this category
Line 289: public function _getDeleteForm($id)

/sprout/Controllers/Admin/CategoryAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 121: * Returns the add form for adding a record
Line 123: * @return string The HTML code which represents the add form
Line 125: public function _getAddForm()
Line 192: * Return HTML which represents the form for editing a record
Line 194: * @param int $id The id of the record to get the edit form of
Line 196: public function _getEditForm($id)
Line 285: * Shows delete form for deleting this category
Line 289: public function _getDeleteForm($id)

/sprout/Controllers/Admin/ContentSubscriptionAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 57: * Formats a resultset of items into an Itemlist

/sprout/Controllers/Admin/ContentSubscriptionAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 57: * Formats a resultset of items into an Itemlist

/sprout/Controllers/Admin/CronJobAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 94: public function _getAddForm() { return "<p><i>You can't add these!</i></p>"; }

/sprout/Controllers/Admin/CronJobAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 94: public function _getAddForm() { return "<p><i>You can't add these!</i></p>"; }

/sprout/Controllers/Admin/EmailTextAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 49: public function _getAddForm()
Line 95: // Validate form fields

/sprout/Controllers/Admin/EmailTextAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 49: public function _getAddForm()
Line 95: // Validate form fields

/sprout/Controllers/Admin/FileAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 36: use Sprout\Helpers\Form;
Line 140: * Hook called by _getAddForm() just before the view is rendered
Line 149: $opts['form_url'] = 'admin/call/file/ajaxDragdropForm';
Line 151: $opts['form_params'] = [];
Line 152: $opts['form_el'] = '.drag-drop__form';
Line 199: * Other keys provided are passed to the ajaxDragdropForm method.
Line 289: * Returns the form for updating a file which has been uploaded
Line 293: * @get array form Details of the form shown above the drag-n-drop field
Line 296: public function ajaxDragdropForm()
Line 325: $view = new View('sprout/admin/file_add_dragdrop_form');
Line 359: } else if (!empty($_GET['form']['category_id'])) {
Line 360: $view->data['category_id'] = $_GET['form']['category_id'];
Line 373: * Handles the drag-and-drop upload form
Line 952: $variants = array_merge($variants, array_keys(Kohana::config('file.image_transformations')));
Line 1199: Notification::error('Database error performing cleanup');
Line 1300: public function previewTransform($transform, $filename)
Line 1308: switch ($transform) {
Line 1481: $sizes = Kohana::config('file.image_transformations');
Line 1483: foreach ($sizes as $size_name => $transform) {
Line 1487: $out = '<form action="admin/call/file/redoSizesAction" method="post">';
Line 1490: Form::nextFieldDetails('Size', true);
Line 1491: $out .= Form::dropdown('size', [], $sz);
Line 1494: $out .= '</form>';

/sprout/Controllers/Admin/FileAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 36: use Sprout\Helpers\Form;
Line 140: * Hook called by _getAddForm() just before the view is rendered
Line 149: $opts['form_url'] = 'admin/call/file/ajaxDragdropForm';
Line 151: $opts['form_params'] = [];
Line 152: $opts['form_el'] = '.drag-drop__form';
Line 199: * Other keys provided are passed to the ajaxDragdropForm method.
Line 289: * Returns the form for updating a file which has been uploaded
Line 293: * @get array form Details of the form shown above the drag-n-drop field
Line 296: public function ajaxDragdropForm()
Line 325: $view = new View('sprout/admin/file_add_dragdrop_form');
Line 359: } else if (!empty($_GET['form']['category_id'])) {
Line 360: $view->data['category_id'] = $_GET['form']['category_id'];
Line 373: * Handles the drag-and-drop upload form
Line 952: $variants = array_merge($variants, array_keys(Kohana::config('file.image_transformations')));
Line 1199: Notification::error('Database error performing cleanup');
Line 1300: public function previewTransform($transform, $filename)
Line 1308: switch ($transform) {
Line 1481: $sizes = Kohana::config('file.image_transformations');
Line 1483: foreach ($sizes as $size_name => $transform) {
Line 1487: $out = '<form action="admin/call/file/redoSizesAction" method="post">';
Line 1490: Form::nextFieldDetails('Size', true);
Line 1491: $out .= Form::dropdown('size', [], $sz);
Line 1494: $out .= '</form>';

/sprout/Controllers/Admin/HasCategoriesAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 29: use Sprout\Helpers\JsonForm;
Line 398: * Formats a resultset of items into an Itemlist
Line 452: * Called when the import form is being built.
Line 497: * Returns a page title and HTML for a form to add a record
Line 500: public function _getAddForm()
Line 533: // Auto-generate form from JSON where possible
Line 562: * Returns the edit form for adding a record
Line 564: * @param int $id The id of the record to get the edit form of
Line 566: public function _getEditForm($id)
Line 600: // Auto-generate form from JSON where possible
Line 608: $data = array_merge($data, JsonForm::loadMultiEditData($conf, $default_link, $id, []));
Line 609: $data = array_merge($data, JsonForm::loadAutofillListData($conf, $this->table_name, $id, []));
Line 645: * Returns the edit form for duplicating a record
Line 649: public function _getDuplicateForm($id)
Line 696: // Auto-generate form from JSON where possible
Line 704: $data = array_merge($data, JsonForm::loadMultiEditData($conf, $default_link, $id, []));
Line 705: $data = array_merge($data, JsonForm::loadAutofillListData($conf, $this->table_name, $id, []));
Line 826: * Form to change the categories for a number of records

/sprout/Controllers/Admin/HasCategoriesAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 29: use Sprout\Helpers\JsonForm;
Line 398: * Formats a resultset of items into an Itemlist
Line 452: * Called when the import form is being built.
Line 497: * Returns a page title and HTML for a form to add a record
Line 500: public function _getAddForm()
Line 533: // Auto-generate form from JSON where possible
Line 562: * Returns the edit form for adding a record
Line 564: * @param int $id The id of the record to get the edit form of
Line 566: public function _getEditForm($id)
Line 600: // Auto-generate form from JSON where possible
Line 608: $data = array_merge($data, JsonForm::loadMultiEditData($conf, $default_link, $id, []));
Line 609: $data = array_merge($data, JsonForm::loadAutofillListData($conf, $this->table_name, $id, []));
Line 645: * Returns the edit form for duplicating a record
Line 649: public function _getDuplicateForm($id)
Line 696: // Auto-generate form from JSON where possible
Line 704: $data = array_merge($data, JsonForm::loadMultiEditData($conf, $default_link, $id, []));
Line 705: $data = array_merge($data, JsonForm::loadAutofillListData($conf, $this->table_name, $id, []));
Line 826: * Form to change the categories for a number of records

/sprout/Controllers/Admin/ManagedAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 33: use Sprout\Helpers\JsonForm;
Line 64: * This is the friendly name of the controller. In 99% of cases, should be the plural form of the controller name
Line 373: * Returns form for doing exports
Line 466: switch ($_POST['format']) {
Line 489: * Returns a form which contains options for doing an export
Line 751: * Called when the import form is being built.
Line 879: * Return HTML for a search form
Line 881: public function _getSearchForm()
Line 1056: * Formats a resultset of items into an Itemlist
Line 1186: * Returns a page title and HTML for a form to add a record
Line 1189: public function _getAddForm()
Line 1208: // Auto-generate form from JSON where possible
Line 1315: * Hook called by _getAddForm() just before the view is rendered
Line 1340: // Auto-process form using JSON config
Line 1360: * Returns a page title and HTML for a form to edit a record
Line 1362: * @param int $id The id of the record to get the edit form of
Line 1365: public function _getEditForm($id)
Line 1379: // Auto-generate form from JSON where possible
Line 1387: $data = array_merge($data, JsonForm::loadMultiEditData($conf, $default_link, $id, []));
Line 1388: $data = array_merge($data, JsonForm::loadAutofillListData($conf, $this->table_name, $id, []));
Line 1486: * Hook called by _getEditForm() just before the view is rendered
Line 1505: // Auto-process form using JSON config
Line 1537: * Return HTML which represents the form for duplicating a record
Line 1541: public function _getDuplicateForm($id)
Line 1567: // Auto-generate form from JSON where possible
Line 1575: $data = array_merge($data, JsonForm::loadMultiEditData($conf, $default_link, $id, []));
Line 1576: $data = array_merge($data, JsonForm::loadAutofillListData($conf, $this->table_name, $id, []));
Line 1599: * Hook called by _getDuplicateForm() just before the view is rendered
Line 1623: * Return HTML which represents the form for deleting a record
Line 1625: * @param int $id The record to show the delete form for
Line 1626: * @return string The HTML code which represents the edit form
Line 1628: public function _getDeleteForm($id)
Line 1787: * Form to delete multiple records

/sprout/Controllers/Admin/ManagedAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 33: use Sprout\Helpers\JsonForm;
Line 64: * This is the friendly name of the controller. In 99% of cases, should be the plural form of the controller name
Line 373: * Returns form for doing exports
Line 466: switch ($_POST['format']) {
Line 489: * Returns a form which contains options for doing an export
Line 751: * Called when the import form is being built.
Line 879: * Return HTML for a search form
Line 881: public function _getSearchForm()
Line 1056: * Formats a resultset of items into an Itemlist
Line 1186: * Returns a page title and HTML for a form to add a record
Line 1189: public function _getAddForm()
Line 1208: // Auto-generate form from JSON where possible
Line 1315: * Hook called by _getAddForm() just before the view is rendered
Line 1340: // Auto-process form using JSON config
Line 1360: * Returns a page title and HTML for a form to edit a record
Line 1362: * @param int $id The id of the record to get the edit form of
Line 1365: public function _getEditForm($id)
Line 1379: // Auto-generate form from JSON where possible
Line 1387: $data = array_merge($data, JsonForm::loadMultiEditData($conf, $default_link, $id, []));
Line 1388: $data = array_merge($data, JsonForm::loadAutofillListData($conf, $this->table_name, $id, []));
Line 1486: * Hook called by _getEditForm() just before the view is rendered
Line 1505: // Auto-process form using JSON config
Line 1537: * Return HTML which represents the form for duplicating a record
Line 1541: public function _getDuplicateForm($id)
Line 1567: // Auto-generate form from JSON where possible
Line 1575: $data = array_merge($data, JsonForm::loadMultiEditData($conf, $default_link, $id, []));
Line 1576: $data = array_merge($data, JsonForm::loadAutofillListData($conf, $this->table_name, $id, []));
Line 1599: * Hook called by _getDuplicateForm() just before the view is rendered
Line 1623: * Return HTML which represents the form for deleting a record
Line 1625: * @param int $id The record to show the delete form for
Line 1626: * @return string The HTML code which represents the edit form
Line 1628: public function _getDeleteForm($id)
Line 1787: * Form to delete multiple records

/sprout/Controllers/Admin/MySettingsAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 65: $data = Form::loadFromSession('admin_my_settings');
Line 67: Form::setData(AdminAuth::getDetails());

/sprout/Controllers/Admin/MySettingsAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 65: $data = Form::loadFromSession('admin_my_settings');
Line 67: Form::setData(AdminAuth::getDetails());

/sprout/Controllers/Admin/NoRecordsAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 30: public function _getAddForm() { return ''; }
Line 31: public function _getEditForm($item_id) { return ''; }
Line 32: public function _getDeleteForm($item_id) { return ''; }

/sprout/Controllers/Admin/NoRecordsAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 30: public function _getAddForm() { return ''; }
Line 31: public function _getEditForm($item_id) { return ''; }
Line 32: public function _getDeleteForm($item_id) { return ''; }

/sprout/Controllers/Admin/OperatorAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 103: * Get add form - but only for partial access ops
Line 105: public function _getAddForm()
Line 111: return parent::_getAddForm();
Line 128: * Get edit form - but only for partial access ops or for editing your own record
Line 130: public function _getEditForm($item_id)
Line 136: return parent::_getEditForm($item_id);
Line 141: * Get delete form - but only for partial access ops
Line 143: public function _getDeleteForm($item_id)
Line 153: return parent::_getDeleteForm($item_id);

/sprout/Controllers/Admin/OperatorAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 103: * Get add form - but only for partial access ops
Line 105: public function _getAddForm()
Line 111: return parent::_getAddForm();
Line 128: * Get edit form - but only for partial access ops or for editing your own record
Line 130: public function _getEditForm($item_id)
Line 136: return parent::_getEditForm($item_id);
Line 141: * Get delete form - but only for partial access ops
Line 143: public function _getDeleteForm($item_id)
Line 153: return parent::_getDeleteForm($item_id);

/sprout/Controllers/Admin/OperatorCategoryAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 40: public function _getAddForm()
Line 43: return parent::_getAddForm();
Line 46: public function _getEditForm($item_id)
Line 49: return parent::_getEditForm($item_id);
Line 52: public function _getDeleteForm($item_id)
Line 55: return parent::_getDeleteForm($item_id);

/sprout/Controllers/Admin/OperatorCategoryAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 40: public function _getAddForm()
Line 43: return parent::_getAddForm();
Line 46: public function _getEditForm($item_id)
Line 49: return parent::_getEditForm($item_id);
Line 52: public function _getDeleteForm($item_id)
Line 55: return parent::_getDeleteForm($item_id);

/sprout/Controllers/Admin/PageAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 42: use Sprout\Helpers\Form;
Line 208: * Returns the add form for adding a page
Line 210: * @return string The HTML code which represents the add form
Line 212: public function _getAddForm()
Line 390: // Normal pages have more data to add on the edit form, but tool pages go live straight away
Line 449: * Return HTML for the import upload form
Line 451: public function _importUploadForm()
Line 631: * Returns a form which contains options for doing an import
Line 849: // N.B. this is called after the edit form has been rendered
Line 887: * Returns the edit form for editing the specified page
Line 889: * @param int $id The record to show the edit form for
Line 890: * @return string The HTML code which represents the edit form
Line 892: public function _getEditForm($id)
Line 922: $q = "SELECT page_revisions.*, DATE_FORMAT(date_modified, '%d/%m/%Y %h:%i %p') AS date_modified
Line 966: // If there's no live revision, inform the user
Line 1066: DATE_FORMAT(date_added, '%d/%m/%Y %h:%i %p') AS date_added
Line 1257: * Makes the provided html text be in a standard format to ensure the integrity of the change check
Line 1912: * Returns the edit form for editing the specified page
Line 1914: * @param int $id The record to show the edit form for
Line 1915: * @return string The HTML code which represents the edit form
Line 1917: public function _getDeleteForm($id)
Line 2075: $q = "SELECT pages.id, pages.name, DATE_FORMAT(pages.date_modified, '%d/%m/%Y') AS date_modified,
Line 2094: $q = "SELECT pages.id, pages.name, DATE_FORMAT(page_revisions.date_modified, '%d/%m/%Y') AS date_modified,
Line 2215: * Returns the children pages for a specific page, in a format required by jqueryFileTree.
Line 2780: Form::setData(['template' => @$_GET['template']]);
Line 2783: Form::nextFieldDetails('Template', false);
Line 2784: $out .= Form::dropdown('template', [], $templates);

/sprout/Controllers/Admin/PageAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 42: use Sprout\Helpers\Form;
Line 208: * Returns the add form for adding a page
Line 210: * @return string The HTML code which represents the add form
Line 212: public function _getAddForm()
Line 390: // Normal pages have more data to add on the edit form, but tool pages go live straight away
Line 449: * Return HTML for the import upload form
Line 451: public function _importUploadForm()
Line 631: * Returns a form which contains options for doing an import
Line 849: // N.B. this is called after the edit form has been rendered
Line 887: * Returns the edit form for editing the specified page
Line 889: * @param int $id The record to show the edit form for
Line 890: * @return string The HTML code which represents the edit form
Line 892: public function _getEditForm($id)
Line 922: $q = "SELECT page_revisions.*, DATE_FORMAT(date_modified, '%d/%m/%Y %h:%i %p') AS date_modified
Line 966: // If there's no live revision, inform the user
Line 1066: DATE_FORMAT(date_added, '%d/%m/%Y %h:%i %p') AS date_added
Line 1257: * Makes the provided html text be in a standard format to ensure the integrity of the change check
Line 1912: * Returns the edit form for editing the specified page
Line 1914: * @param int $id The record to show the edit form for
Line 1915: * @return string The HTML code which represents the edit form
Line 1917: public function _getDeleteForm($id)
Line 2075: $q = "SELECT pages.id, pages.name, DATE_FORMAT(pages.date_modified, '%d/%m/%Y') AS date_modified,
Line 2094: $q = "SELECT pages.id, pages.name, DATE_FORMAT(page_revisions.date_modified, '%d/%m/%Y') AS date_modified,
Line 2215: * Returns the children pages for a specific page, in a format required by jqueryFileTree.
Line 2780: Form::setData(['template' => @$_GET['template']]);
Line 2783: Form::nextFieldDetails('Template', false);
Line 2784: $out .= Form::dropdown('template', [], $templates);

/sprout/Controllers/Admin/PerRecordPermissionAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 24: use Sprout\Helpers\Form;
Line 56: // These are tied to forms and are saved in a separate table for each form.
Line 57: // In any case, the permissions really apply to the forms themselves; there's no obvious
Line 58: // case for restricting access to individual form submissions
Line 59: unset($controllers['form_submission']);
Line 102: * Generate a form where operators can specify which controllers should have per-record permissions enabled
Line 200: $out = '<form method="post" action="admin/call/' . $this->controller_name . '/resetSave">';
Line 203: Form::nextFieldDetails('Tab to reset all per-record permissions on', true);
Line 204: $out .= Form::dropdown('controller', [], $controllers);
Line 206: $checked_cats = Form::getData('_prm_categories');
Line 211: Form::nextFieldDetails('Allow changes by', false);
Line 212: $allow_cats = Form::checkboxSet('_prm_categories', [], $all_cats);
Line 225: $out .= '</form>';

/sprout/Controllers/Admin/PerRecordPermissionAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 24: use Sprout\Helpers\Form;
Line 56: // These are tied to forms and are saved in a separate table for each form.
Line 57: // In any case, the permissions really apply to the forms themselves; there's no obvious
Line 58: // case for restricting access to individual form submissions
Line 59: unset($controllers['form_submission']);
Line 102: * Generate a form where operators can specify which controllers should have per-record permissions enabled
Line 200: $out = '<form method="post" action="admin/call/' . $this->controller_name . '/resetSave">';
Line 203: Form::nextFieldDetails('Tab to reset all per-record permissions on', true);
Line 204: $out .= Form::dropdown('controller', [], $controllers);
Line 206: $checked_cats = Form::getData('_prm_categories');
Line 211: Form::nextFieldDetails('Allow changes by', false);
Line 212: $allow_cats = Form::checkboxSet('_prm_categories', [], $all_cats);
Line 225: $out .= '</form>';

/sprout/Controllers/Admin/SubsiteAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 203: * Return HTML which represents the form for deleting a record
Line 205: * @param int $id The record to show the delete form for
Line 206: * @return string The HTML code which represents the edit form
Line 208: public function _getDeleteForm($id)
Line 217: return parent::_getDeleteForm($id);

/sprout/Controllers/Admin/SubsiteAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 203: * Return HTML which represents the form for deleting a record
Line 205: * @param int $id The record to show the delete form for
Line 206: * @return string The HTML code which represents the edit form
Line 208: public function _getDeleteForm($id)
Line 217: return parent::_getDeleteForm($id);

/sprout/Controllers/Admin/TreeAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 114: * Return HTML which represents the form for deleting a record
Line 116: * @param int $item_id The record to show the delete form for
Line 119: public function _getDeleteForm($item_id)
Line 371: * Save tree organise form submission, see {@see self::_extraOrganise}
Line 429: * Returns the children for a specific item, in a format required by jqueryFileTree.

/sprout/Controllers/Admin/TreeAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 114: * Return HTML which represents the form for deleting a record
Line 116: * @param int $item_id The record to show the delete form for
Line 119: public function _getDeleteForm($item_id)
Line 371: * Save tree organise form submission, see {@see self::_extraOrganise}
Line 429: * Returns the children for a specific item, in a format required by jqueryFileTree.

/sprout/Controllers/Admin/WorkerJobAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 97: public function _getAddForm() { return "<p><i>You can't add these!</i></p>"; }

/sprout/Controllers/Admin/WorkerJobAdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 97: public function _getAddForm() { return "<p><i>You can't add these!</i></p>"; }

/sprout/Controllers/AdminAjaxController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 27: use Sprout\Helpers\Form;
Line 105: Form::setData([$prefix => $widget->getSettings()]);
Line 106: Form::setFieldIdPrefix($prefix);
Line 107: Form::setFieldNameFormat($prefix . '[%s]');
Line 110: Form::setErrors([]);
Line 112: // Need to call settings form first (to load Needs) but then render needs first
Line 113: $form = $widget->getSettingsForm();
Line 114: $form = Needs::dynamicNeedsLoader() . $form;
Line 117: 'settings' => $form,
Line 137: Form::setData($_POST);
Line 156: * HTML strings containing {@see Form} fields for the operator
Line 165: Form::setData($_GET);
Line 173: $op = Form::dropdown('op', ['-dropdown-top' => ' '], $inst->getOperators());
Line 178: $val = Form::text('val');
Line 181: $val = Form::dropdown('val', ['-dropdown-top' => ' '], $inst->getParamValues());
Line 370: // Ensures fields using the 'Form' class will have usable id attributes
Line 371: Form::setFieldIdPrefix('lnkspec-' . time() . rand(0, 999) . '-');
Line 387: $html = $inst->getEditForm($_POST['field'], $_POST['val']);
Line 470: * HTML strings containing {@see Form} fields for the operator
Line 479: Form::setData($_GET);
Line 483: $op = Form::dropdown('op', ['-dropdown-top' => ' '], [
Line 489: $val = Form::text('val');
Line 493: $op = Form::dropdown('op', ['-dropdown-top' => ' '], [
Line 501: $val = Form::text('val');
Line 505: $op = Form::dropdown('op', ['-dropdown-top' => ' '], [
Line 509: $val = Form::dropdown('val', ['-dropdown-top' => ' '], [

/sprout/Controllers/AdminAjaxController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 27: use Sprout\Helpers\Form;
Line 105: Form::setData([$prefix => $widget->getSettings()]);
Line 106: Form::setFieldIdPrefix($prefix);
Line 107: Form::setFieldNameFormat($prefix . '[%s]');
Line 110: Form::setErrors([]);
Line 112: // Need to call settings form first (to load Needs) but then render needs first
Line 113: $form = $widget->getSettingsForm();
Line 114: $form = Needs::dynamicNeedsLoader() . $form;
Line 117: 'settings' => $form,
Line 137: Form::setData($_POST);
Line 156: * HTML strings containing {@see Form} fields for the operator
Line 165: Form::setData($_GET);
Line 173: $op = Form::dropdown('op', ['-dropdown-top' => ' '], $inst->getOperators());
Line 178: $val = Form::text('val');
Line 181: $val = Form::dropdown('val', ['-dropdown-top' => ' '], $inst->getParamValues());
Line 370: // Ensures fields using the 'Form' class will have usable id attributes
Line 371: Form::setFieldIdPrefix('lnkspec-' . time() . rand(0, 999) . '-');
Line 387: $html = $inst->getEditForm($_POST['field'], $_POST['val']);
Line 470: * HTML strings containing {@see Form} fields for the operator
Line 479: Form::setData($_GET);
Line 483: $op = Form::dropdown('op', ['-dropdown-top' => ' '], [
Line 489: $val = Form::text('val');
Line 493: $op = Form::dropdown('op', ['-dropdown-top' => ' '], [
Line 501: $val = Form::text('val');
Line 505: $op = Form::dropdown('op', ['-dropdown-top' => ' '], [
Line 509: $val = Form::dropdown('val', ['-dropdown-top' => ' '], [

/sprout/Controllers/AdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 42: use Sprout\Helpers\Form;
Line 143: * Shows a login form
Line 165: $view->main_content = new View('sprout/admin/login_form');
Line 467: * Shows a search form for the specified item
Line 469: * @param string $type The type of item to show the search form for
Line 486: $main = $ctlr->_getSearchForm();
Line 503: * Shows an edit form for the specified item
Line 505: * @param string $type The type of item to show the edit form of
Line 540: * Shows an edit form for the specified item
Line 542: * @param string $type The type of item to show the edit form of
Line 591: Notification::error('There was an error performing the export');
Line 611: * @param string $type The type of item to show the import form of
Line 628: $main = $ctlr->_importUploadForm();
Line 652: $formats = array('csv');
Line 654: $formats[] = 'xls';
Line 663: } else if (! Upload::type($_FILES['import'], $formats)) {
Line 664: $error = 'Incorrect file type, accepted types are: ' . implode(', ', $formats);
Line 704: * Shows the import form for the specified item
Line 706: * @param string $type The type of item to show the import form of
Line 775: Notification::error('There was an error performing the import');
Line 822: * @param bool $action True if it's an action method, false if it's a form method.
Line 914: // differently from a form submission with no categories selected
Line 985: if (Form::getData('_prm_categories') === null) {
Line 987: Form::setFieldValue('_prm_categories', $cat_ids);
Line 1018: $checked_cats = Form::getData('_prm_categories');
Line 1020: // Pre-tick all categories if on add form
Line 1026: Form::setFieldValue('_prm_categories', $checked_cats);
Line 1032: Form::nextFieldDetails('Allow changes by', false);
Line 1033: $allow_cats = Form::checkboxSet('_prm_categories', [], $cat_list);
Line 1039: if ($checked_cats == ['*'] or ($item_id == 0 and Form::getData('_prm_all_cats'))) {
Line 1054: * Shows an add form for the specified item
Line 1056: * @param string $type The type of item to show the add form of
Line 1071: $main = $ctlr->_getAddForm();
Line 1077: throw new InvalidArgumentException('Return value from _getAddForm must be an array');
Line 1080: if ($ctlr->_isAddSaved() and Text::containsFormTag($main['content'])) {
Line 1081: throw new Exception("Add view must not include the form tag");
Line 1088: echo '<form action="admin/add_save/' . Enc::html($ctlr->getControllerName()) . '" method="post">';
Line 1092: echo '</form>';
Line 1097: // Create tags area, and inject it into content after the <form> tag
Line 1108: $content = '<form action="admin/add_save/' . Enc::html($ctlr->getControllerName()) . '" method="post" id="edit-form" class="-clearfix">';
Line 1129: Form::nextFieldDetails('Visibility', false);
Line 1130: $content .= Form::checkboxBoolList(null, [], $visibility);
Line 1137: Form::nextFieldDetails('Subsite', false);
Line 1138: Form::setFieldValue('subsite_id', $_SESSION['admin']['active_subsite']);
Line 1139: $content .= Form::dropdown('subsite_id', ['-dropdown-top' => 'Show on all sites'], $subsites);
Line 1155: $content .= '</form>';
Line 1236: * Shows an edit form for the specified item
Line 1238: * @param string $type The type of item to show the edit form of
Line 1257: $main = $ctlr->_getEditForm($id);
Line 1263: throw new InvalidArgumentException('Return value from _getEditForm must be an array');
Line 1266: // Disallow view if it contains a <FORM> tag or output will contain nested-forms and that doesn't work
Line 1267: if ($ctlr->_isEditSaved($id) and Text::containsFormTag($main['content'])) {
Line 1268: throw new Exception("Edit view must not include the form tag");
Line 1271: // Create tags area, and inject it into content after the <form> tag
Line 1286: $content = '<form action="admin/edit_save/' . Enc::html($ctlr->getControllerName()) . '/' . $id;
Line 1287: $content .= '" method="post" id="edit-form" class="-clearfix" enctype="multipart/form-data">';
Line 1308: Form::nextFieldDetails('Visibility', false);
Line 1309: $content .= Form::checkboxBoolList(null, [], $visibility);
Line 1316: Form::nextFieldDetails('Subsite', false);
Line 1317: $content .= Form::dropdown('subsite_id', ['-dropdown-top' => 'Show on all sites'], $subsites);
Line 1332: $content .= '</form>';
Line 1418: * Shows a delete form for the specified item
Line 1432: $main = $ctlr->_getDeleteForm($id);
Line 1439: throw new InvalidArgumentException('Return value from _getDeleteForm must be an array');
Line 1442: if ($ctlr->_isDeleteSaved($id) and Text::containsFormTag($main['content'])) {
Line 1443: throw new Exception("Delete view must not include the form tag");
Line 1451: $content = '<form action="admin/delete_save/' . Enc::html($ctlr->getControllerName()) . '/' . $id . '" method="post" id="edit-form">';
Line 1473: $content .= '</form>';
Line 1543: * Shows a duplication form for the specified item
Line 1544: * This uses the edit form with some string replacements
Line 1546: * @param string $type The type of item to show the duplication form of
Line 1570: $main = $ctlr->_getDuplicateForm($id);
Line 1578: if (Text::containsFormTag($main['content'])) {
Line 1579: throw new Exception("Duplicate view must not include the form tag");
Line 1582: // Create tags area, and inject it into content after the <form> tag
Line 1594: // Rejig the edit form to be about duplication instead of editing
Line 1602: $content = '<form action="admin/duplicate_save/' . Enc::html($ctlr->getControllerName()) . '/' . $id . '" method="post" id="edit-form">';
Line 1623: Form::nextFieldDetails('Visibility', false);
Line 1624: $content .= Form::checkboxBoolList(null, [], $visibility);
Line 1638: $content .= '</form>';
Line 1766: $out = '<form action="SITE/admin/moderate_action" method="post">';
Line 1805: $out .= '</form>';
Line 1816: * Processes the moderation form
Line 2199: * Browser information

/sprout/Controllers/AdminController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 42: use Sprout\Helpers\Form;
Line 143: * Shows a login form
Line 165: $view->main_content = new View('sprout/admin/login_form');
Line 467: * Shows a search form for the specified item
Line 469: * @param string $type The type of item to show the search form for
Line 486: $main = $ctlr->_getSearchForm();
Line 503: * Shows an edit form for the specified item
Line 505: * @param string $type The type of item to show the edit form of
Line 540: * Shows an edit form for the specified item
Line 542: * @param string $type The type of item to show the edit form of
Line 591: Notification::error('There was an error performing the export');
Line 611: * @param string $type The type of item to show the import form of
Line 628: $main = $ctlr->_importUploadForm();
Line 652: $formats = array('csv');
Line 654: $formats[] = 'xls';
Line 663: } else if (! Upload::type($_FILES['import'], $formats)) {
Line 664: $error = 'Incorrect file type, accepted types are: ' . implode(', ', $formats);
Line 704: * Shows the import form for the specified item
Line 706: * @param string $type The type of item to show the import form of
Line 775: Notification::error('There was an error performing the import');
Line 822: * @param bool $action True if it's an action method, false if it's a form method.
Line 914: // differently from a form submission with no categories selected
Line 985: if (Form::getData('_prm_categories') === null) {
Line 987: Form::setFieldValue('_prm_categories', $cat_ids);
Line 1018: $checked_cats = Form::getData('_prm_categories');
Line 1020: // Pre-tick all categories if on add form
Line 1026: Form::setFieldValue('_prm_categories', $checked_cats);
Line 1032: Form::nextFieldDetails('Allow changes by', false);
Line 1033: $allow_cats = Form::checkboxSet('_prm_categories', [], $cat_list);
Line 1039: if ($checked_cats == ['*'] or ($item_id == 0 and Form::getData('_prm_all_cats'))) {
Line 1054: * Shows an add form for the specified item
Line 1056: * @param string $type The type of item to show the add form of
Line 1071: $main = $ctlr->_getAddForm();
Line 1077: throw new InvalidArgumentException('Return value from _getAddForm must be an array');
Line 1080: if ($ctlr->_isAddSaved() and Text::containsFormTag($main['content'])) {
Line 1081: throw new Exception("Add view must not include the form tag");
Line 1088: echo '<form action="admin/add_save/' . Enc::html($ctlr->getControllerName()) . '" method="post">';
Line 1092: echo '</form>';
Line 1097: // Create tags area, and inject it into content after the <form> tag
Line 1108: $content = '<form action="admin/add_save/' . Enc::html($ctlr->getControllerName()) . '" method="post" id="edit-form" class="-clearfix">';
Line 1129: Form::nextFieldDetails('Visibility', false);
Line 1130: $content .= Form::checkboxBoolList(null, [], $visibility);
Line 1137: Form::nextFieldDetails('Subsite', false);
Line 1138: Form::setFieldValue('subsite_id', $_SESSION['admin']['active_subsite']);
Line 1139: $content .= Form::dropdown('subsite_id', ['-dropdown-top' => 'Show on all sites'], $subsites);
Line 1155: $content .= '</form>';
Line 1236: * Shows an edit form for the specified item
Line 1238: * @param string $type The type of item to show the edit form of
Line 1257: $main = $ctlr->_getEditForm($id);
Line 1263: throw new InvalidArgumentException('Return value from _getEditForm must be an array');
Line 1266: // Disallow view if it contains a <FORM> tag or output will contain nested-forms and that doesn't work
Line 1267: if ($ctlr->_isEditSaved($id) and Text::containsFormTag($main['content'])) {
Line 1268: throw new Exception("Edit view must not include the form tag");
Line 1271: // Create tags area, and inject it into content after the <form> tag
Line 1286: $content = '<form action="admin/edit_save/' . Enc::html($ctlr->getControllerName()) . '/' . $id;
Line 1287: $content .= '" method="post" id="edit-form" class="-clearfix" enctype="multipart/form-data">';
Line 1308: Form::nextFieldDetails('Visibility', false);
Line 1309: $content .= Form::checkboxBoolList(null, [], $visibility);
Line 1316: Form::nextFieldDetails('Subsite', false);
Line 1317: $content .= Form::dropdown('subsite_id', ['-dropdown-top' => 'Show on all sites'], $subsites);
Line 1332: $content .= '</form>';
Line 1418: * Shows a delete form for the specified item
Line 1432: $main = $ctlr->_getDeleteForm($id);
Line 1439: throw new InvalidArgumentException('Return value from _getDeleteForm must be an array');
Line 1442: if ($ctlr->_isDeleteSaved($id) and Text::containsFormTag($main['content'])) {
Line 1443: throw new Exception("Delete view must not include the form tag");
Line 1451: $content = '<form action="admin/delete_save/' . Enc::html($ctlr->getControllerName()) . '/' . $id . '" method="post" id="edit-form">';
Line 1473: $content .= '</form>';
Line 1543: * Shows a duplication form for the specified item
Line 1544: * This uses the edit form with some string replacements
Line 1546: * @param string $type The type of item to show the duplication form of
Line 1570: $main = $ctlr->_getDuplicateForm($id);
Line 1578: if (Text::containsFormTag($main['content'])) {
Line 1579: throw new Exception("Duplicate view must not include the form tag");
Line 1582: // Create tags area, and inject it into content after the <form> tag
Line 1594: // Rejig the edit form to be about duplication instead of editing
Line 1602: $content = '<form action="admin/duplicate_save/' . Enc::html($ctlr->getControllerName()) . '/' . $id . '" method="post" id="edit-form">';
Line 1623: Form::nextFieldDetails('Visibility', false);
Line 1624: $content .= Form::checkboxBoolList(null, [], $visibility);
Line 1638: $content .= '</form>';
Line 1766: $out = '<form action="SITE/admin/moderate_action" method="post">';
Line 1805: $out .= '</form>';
Line 1816: * Processes the moderation form
Line 2199: * Browser information

/sprout/Controllers/Controller.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 26: use Sprout\Helpers\JsonForm;
Line 361: * Loads a config file for a JsonForm associated with this controller
Line 367: protected function loadFormJson($file_name)
Line 387: * Loads a JSON config file for an automated edit-type form for this controller
Line 398: return $this->loadFormJson("{$class}_edit.json");
Line 403: * Generates a form view from a JSON config file
Line 407: protected function generateFormView($file_name)
Line 409: $conf = $this->loadFormJson($file_name);
Line 435: * @param array $conf Json form configuration
Line 452: JsonForm::setParameterForColumns($items, $fk_cols, 'empty', null);
Line 471: JsonForm::setParameterForColumns($multi['items'], $fk_cols, 'empty', null);
Line 478: * Automatically saves the data associated with a submission on a JSON-generated form
Line 500: list($data, $errs) = JsonForm::collateData($conf, $mode, $validator, $item_id);
Line 558: $field_defns = JsonForm::flattenGroups($multed['items']);
Line 597: $auto = JsonForm::autofillOptionDefaults($auto, $this->table_name);

/sprout/Controllers/Controller.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 26: use Sprout\Helpers\JsonForm;
Line 361: * Loads a config file for a JsonForm associated with this controller
Line 367: protected function loadFormJson($file_name)
Line 387: * Loads a JSON config file for an automated edit-type form for this controller
Line 398: return $this->loadFormJson("{$class}_edit.json");
Line 403: * Generates a form view from a JSON config file
Line 407: protected function generateFormView($file_name)
Line 409: $conf = $this->loadFormJson($file_name);
Line 435: * @param array $conf Json form configuration
Line 452: JsonForm::setParameterForColumns($items, $fk_cols, 'empty', null);
Line 471: JsonForm::setParameterForColumns($multi['items'], $fk_cols, 'empty', null);
Line 478: * Automatically saves the data associated with a submission on a JSON-generated form
Line 500: list($data, $errs) = JsonForm::collateData($conf, $mode, $validator, $item_id);
Line 558: $field_defns = JsonForm::flattenGroups($multed['items']);
Line 597: $auto = JsonForm::autofillOptionDefaults($auto, $this->table_name);

/sprout/Controllers/DbToolsController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 46: use Sprout\Helpers\Form;
Line 97: [ 'url' => 'admin/style_guide', 'name' => 'Admin style guide', 'desc' => 'View styles of various admin features - form fields, etc' ],
Line 106: [ 'url' => 'dbtools/info', 'name' => 'Env and PHP info', 'desc' => 'Sprout information + phpinfo()' ],
Line 108: [ 'url' => 'dbtools/email', 'name' => 'Test email', 'desc' => 'Renders form to send emails' ],
Line 110: [ 'url' => 'admin/user-agent', 'name' => 'User agent tool', 'desc' => 'Show browser information<br><span>(this link doesn\'t require auth)</span>' ],
Line 172: 'desc' => !empty($api['desc']) ? $api['desc'] : 'API test form',
Line 226: * Output some sprout and platform info
Line 291: echo 'Cost ', $cost, ' took ', number_format($time_secs * 1000, 2), ' ms', PHP_EOL;
Line 394: echo '<form action="dbtools/sync" method="post">';
Line 397: echo '</form>';
Line 403: echo '<form action="dbtools/sync" method="post">';
Line 406: echo '</form>';
Line 456: $ignore_cols = ['Row_format', 'Max_data_length', 'Auto_increment', 'Comment', 'Version', 'Create_time',
Line 777: echo '<form action="SITE/dbtools/importSave" method="post" enctype="multipart/form-data">';
Line 779: Form::nextFieldDetails('File', true);
Line 780: echo Form::upload('filename');
Line 782: echo '</form>';
Line 843: echo '<form action="SITE/dbtools/importAction" method="post" target="process" onsubmit="$(\'iframe\').show(); $(this).find(\'.action-bar\').remove();">';
Line 847: echo '</form>';
Line 1006: $out .= '<thead><tr><th>Format</th><th>Supported?</th></thead>';
Line 1073: echo '<form action="SITE/dbtools/exportAction" method="post">';
Line 1125: echo '</form>';
Line 1133: * Render table data size in human readable form
Line 1239: echo '<form action="SITE/dbtools/importFileAction" method="post" enctype="multipart/form-data">';
Line 1241: Form::nextFieldDetails('File', true);
Line 1242: echo Form::upload('filename');
Line 1244: echo '</form>';
Line 1385: echo '<form action="dbtools/exportFilesAction" method="post">';
Line 1388: echo '</form>';
Line 1448: echo 'div.val form { margin: 0; padding: 0; }';
Line 1486: echo '<form action="SITE/dbtools/sessionEditorAction" method="post">';
Line 1491: echo '</form>';
Line 1668: // Prep array for form data
Line 1838: $new_name = self::mtTransform($relative_name);
Line 1844: $text = self::mtTransform($text);
Line 1846: $new_name = "{$temp}/{$module_name}" . self::mtTransform($relative_name);
Line 1948: Url::redirect('dbtools/moduleBuilderExistingForm/' . $filename);
Line 1954: public function moduleBuilderExistingForm($input_xml)
Line 1981: $view = new View('sprout/dbtools/module_builder_existing_form');
Line 2025: Url::redirect('/dbtools/moduleBuilderExistingForm/' . $input_xml);
Line 2195: $new_name = self::mtTransform($relative_name);
Line 2200: $text = self::mtTransform($text);
Line 2202: $new_name = "{$temp}/{$module_name}" . self::mtTransform($relative_name);
Line 2233: public static function mtTransform($text)
Line 2346: echo '<form method="post">';
Line 2349: Form::nextFieldDetails('Username', true, 'Letters and numbers only');
Line 2350: echo Form::text('username', ['-wrapper-class' => 'white']);
Line 2354: Form::nextFieldDetails('Password', true, 'Will be displayed on screen');
Line 2355: echo Form::text('pass', ['-wrapper-class' => 'white']);
Line 2360: echo '</form>';
Line 2525: echo '<form method="POST">';
Line 2526: Form::nextFieldDetails('Select module', true);
Line 2527: echo Form::dropdown('module', ['-wrapper-class' => 'white'], $opts);
Line 2569: echo '<form method="POST">';
Line 2570: Form::nextFieldDetails('Select table which will store the data', true, 'i.e. the sub-table');
Line 2571: echo Form::dropdown('table', ['-wrapper-class' => 'white'], $opts);
Line 2573: echo '</form>';
Line 2606: echo '<form method="POST">';
Line 2608: Form::nextFieldDetails('Group name', true, 'e.g. people');
Line 2609: echo Form::text('group', ['-wrapper-class' => 'white']);
Line 2613: Form::nextFieldDetails('Column which links to base table', true, 'e.g. user_id');
Line 2614: echo Form::dropdown('linker', ['-wrapper-class' => 'white'], $opts);
Line 2619: echo '</form>';
Line 2660: // Generate form fields for view
Line 2750: * Renders form to send emails
Line 2761: Form::setData($data);
Line 2763: $out = '<form action="SITE/dbtools/emailSend" method="post">';
Line 2766: Form::nextFieldDetails('Who to send to', false, 'one address per line');
Line 2767: $out .= Form::multiline('emails', []);
Line 2769: Form::nextFieldDetails('Different FROM address', false);
Line 2770: $out .= Form::email('from');
Line 2772: Form::nextFieldDetails('Message to send', false);
Line 2773: $out .= Form::multiradio('msg', [], ['long' => 'Long test email - tables, headings, unicode, etc.', 'short' => 'Short simple test email']);
Line 2775: Form::nextFieldDetails('Information', false);
Line 2776: $out .= Form::checkboxBoolList('', [], ['debug' => 'Show debugging information']);
Line 2779: $out .= '</form>';
Line 2787: * Process form submission
Line 2864: * Renders form to imoprt Sprout2 Export XML
Line 2945: Form::nextFieldDetails('Parent page', false, 'Import as child pages of selected parent page');
Line 2946: echo Form::pageDropdown('page_id', [], ['subsite' => $subsite_id]);
Line 2951: * Render API test form within DB tools
Line 2988: * Render form to set QR Code string
Line 2991: public function qrCodeForm()
Line 2993: $view = new View('sprout/dbtools/qr_form');

/sprout/Controllers/DbToolsController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 46: use Sprout\Helpers\Form;
Line 97: [ 'url' => 'admin/style_guide', 'name' => 'Admin style guide', 'desc' => 'View styles of various admin features - form fields, etc' ],
Line 106: [ 'url' => 'dbtools/info', 'name' => 'Env and PHP info', 'desc' => 'Sprout information + phpinfo()' ],
Line 108: [ 'url' => 'dbtools/email', 'name' => 'Test email', 'desc' => 'Renders form to send emails' ],
Line 110: [ 'url' => 'admin/user-agent', 'name' => 'User agent tool', 'desc' => 'Show browser information<br><span>(this link doesn\'t require auth)</span>' ],
Line 172: 'desc' => !empty($api['desc']) ? $api['desc'] : 'API test form',
Line 226: * Output some sprout and platform info
Line 291: echo 'Cost ', $cost, ' took ', number_format($time_secs * 1000, 2), ' ms', PHP_EOL;
Line 394: echo '<form action="dbtools/sync" method="post">';
Line 397: echo '</form>';
Line 403: echo '<form action="dbtools/sync" method="post">';
Line 406: echo '</form>';
Line 456: $ignore_cols = ['Row_format', 'Max_data_length', 'Auto_increment', 'Comment', 'Version', 'Create_time',
Line 777: echo '<form action="SITE/dbtools/importSave" method="post" enctype="multipart/form-data">';
Line 779: Form::nextFieldDetails('File', true);
Line 780: echo Form::upload('filename');
Line 782: echo '</form>';
Line 843: echo '<form action="SITE/dbtools/importAction" method="post" target="process" onsubmit="$(\'iframe\').show(); $(this).find(\'.action-bar\').remove();">';
Line 847: echo '</form>';
Line 1006: $out .= '<thead><tr><th>Format</th><th>Supported?</th></thead>';
Line 1073: echo '<form action="SITE/dbtools/exportAction" method="post">';
Line 1125: echo '</form>';
Line 1133: * Render table data size in human readable form
Line 1239: echo '<form action="SITE/dbtools/importFileAction" method="post" enctype="multipart/form-data">';
Line 1241: Form::nextFieldDetails('File', true);
Line 1242: echo Form::upload('filename');
Line 1244: echo '</form>';
Line 1385: echo '<form action="dbtools/exportFilesAction" method="post">';
Line 1388: echo '</form>';
Line 1448: echo 'div.val form { margin: 0; padding: 0; }';
Line 1486: echo '<form action="SITE/dbtools/sessionEditorAction" method="post">';
Line 1491: echo '</form>';
Line 1668: // Prep array for form data
Line 1838: $new_name = self::mtTransform($relative_name);
Line 1844: $text = self::mtTransform($text);
Line 1846: $new_name = "{$temp}/{$module_name}" . self::mtTransform($relative_name);
Line 1948: Url::redirect('dbtools/moduleBuilderExistingForm/' . $filename);
Line 1954: public function moduleBuilderExistingForm($input_xml)
Line 1981: $view = new View('sprout/dbtools/module_builder_existing_form');
Line 2025: Url::redirect('/dbtools/moduleBuilderExistingForm/' . $input_xml);
Line 2195: $new_name = self::mtTransform($relative_name);
Line 2200: $text = self::mtTransform($text);
Line 2202: $new_name = "{$temp}/{$module_name}" . self::mtTransform($relative_name);
Line 2233: public static function mtTransform($text)
Line 2346: echo '<form method="post">';
Line 2349: Form::nextFieldDetails('Username', true, 'Letters and numbers only');
Line 2350: echo Form::text('username', ['-wrapper-class' => 'white']);
Line 2354: Form::nextFieldDetails('Password', true, 'Will be displayed on screen');
Line 2355: echo Form::text('pass', ['-wrapper-class' => 'white']);
Line 2360: echo '</form>';
Line 2525: echo '<form method="POST">';
Line 2526: Form::nextFieldDetails('Select module', true);
Line 2527: echo Form::dropdown('module', ['-wrapper-class' => 'white'], $opts);
Line 2569: echo '<form method="POST">';
Line 2570: Form::nextFieldDetails('Select table which will store the data', true, 'i.e. the sub-table');
Line 2571: echo Form::dropdown('table', ['-wrapper-class' => 'white'], $opts);
Line 2573: echo '</form>';
Line 2606: echo '<form method="POST">';
Line 2608: Form::nextFieldDetails('Group name', true, 'e.g. people');
Line 2609: echo Form::text('group', ['-wrapper-class' => 'white']);
Line 2613: Form::nextFieldDetails('Column which links to base table', true, 'e.g. user_id');
Line 2614: echo Form::dropdown('linker', ['-wrapper-class' => 'white'], $opts);
Line 2619: echo '</form>';
Line 2660: // Generate form fields for view
Line 2750: * Renders form to send emails
Line 2761: Form::setData($data);
Line 2763: $out = '<form action="SITE/dbtools/emailSend" method="post">';
Line 2766: Form::nextFieldDetails('Who to send to', false, 'one address per line');
Line 2767: $out .= Form::multiline('emails', []);
Line 2769: Form::nextFieldDetails('Different FROM address', false);
Line 2770: $out .= Form::email('from');
Line 2772: Form::nextFieldDetails('Message to send', false);
Line 2773: $out .= Form::multiradio('msg', [], ['long' => 'Long test email - tables, headings, unicode, etc.', 'short' => 'Short simple test email']);
Line 2775: Form::nextFieldDetails('Information', false);
Line 2776: $out .= Form::checkboxBoolList('', [], ['debug' => 'Show debugging information']);
Line 2779: $out .= '</form>';
Line 2787: * Process form submission
Line 2864: * Renders form to imoprt Sprout2 Export XML
Line 2945: Form::nextFieldDetails('Parent page', false, 'Import as child pages of selected parent page');
Line 2946: echo Form::pageDropdown('page_id', [], ['subsite' => $subsite_id]);
Line 2951: * Render API test form within DB tools
Line 2988: * Render form to set QR Code string
Line 2991: public function qrCodeForm()
Line 2993: $view = new View('sprout/dbtools/qr_form');

/sprout/Controllers/EmailShareController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 79: * Form to share
Line 107: $form = new View('sprout/email_share_form');
Line 108: $form->data = $data;
Line 110: $form->errors = $_SESSION['email_share']['field_errors'];
Line 112: $form->errors = [];
Line 115: $form->use_captcha = true;
Line 120: $page_view->main_content = $form;
Line 210: $form = new View('sprout/email_share_thanks');
Line 211: $form->url = $_GET['url'];
Line 216: $page_view->main_content = $form;

/sprout/Controllers/EmailShareController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 79: * Form to share
Line 107: $form = new View('sprout/email_share_form');
Line 108: $form->data = $data;
Line 110: $form->errors = $_SESSION['email_share']['field_errors'];
Line 112: $form->errors = [];
Line 115: $form->use_captcha = true;
Line 120: $page_view->main_content = $form;
Line 210: $form = new View('sprout/email_share_thanks');
Line 211: $form->url = $_GET['url'];
Line 216: $page_view->main_content = $form;

/sprout/Controllers/FileUploadController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 40: * Checks POSTed code matched the expected format
Line 63: if (empty($_POST['form_id']) or !is_string($_POST['form_id'])) {
Line 73: $uri = $_POST['form_id'];
Line 101: if (empty($_POST['form_id']) or !is_string($_POST['form_id'])) {
Line 110: $uri = $_POST['form_id'];
Line 139: * Perform basic sanity checks and establish (or reset) their session state
Line 141: * @post string uri URI of the form processor, e.g. /user/process_register
Line 153: * Perform additional checks (beyond the checks already in {@see FileUploadController::uploadChunk}) on an uploaded chunk.
Line 163: * Perform a size check on a set of uploaded chunks.
Line 173: * Perform a size check on a completed upload (after chunks have been stitched).
Line 184: * Perform a file extension check.
Line 277: * Other keys provided are passed to the ajaxDragdropForm method.
Line 315: * Returns the form for updating a file which has been uploaded
Line 319: * @get array form Details of the form shown above the drag-n-drop field
Line 322: public function uploadForm()

/sprout/Controllers/FileUploadController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 40: * Checks POSTed code matched the expected format
Line 63: if (empty($_POST['form_id']) or !is_string($_POST['form_id'])) {
Line 73: $uri = $_POST['form_id'];
Line 101: if (empty($_POST['form_id']) or !is_string($_POST['form_id'])) {
Line 110: $uri = $_POST['form_id'];
Line 139: * Perform basic sanity checks and establish (or reset) their session state
Line 141: * @post string uri URI of the form processor, e.g. /user/process_register
Line 153: * Perform additional checks (beyond the checks already in {@see FileUploadController::uploadChunk}) on an uploaded chunk.
Line 163: * Perform a size check on a set of uploaded chunks.
Line 173: * Perform a size check on a completed upload (after chunks have been stitched).
Line 184: * Perform a file extension check.
Line 277: * Other keys provided are passed to the ajaxDragdropForm method.
Line 315: * Returns the form for updating a file which has been uploaded
Line 319: * @get array form Details of the form shown above the drag-n-drop field
Line 322: public function uploadForm()

/sprout/Controllers/MultiStepFormController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 31: * Supports multistep forms
Line 33: abstract class MultiStepFormController extends Controller {
Line 41: /** Key for partitioning session data associated with this form, i.e. $_SESSION[$this->session_key] */
Line 44: /** Route to form, relative to site root */
Line 47: /** Page title to be displayed on form steps */
Line 48: protected $page_title = 'Form';
Line 61: * The method used to drive the forms at each step
Line 64: * @return View The view containing the form for that step
Line 66: protected function form($step = -1)
Line 123: * The method used to drive the form submissions at each step
Line 127: * steps, the user is redirected to the form for the next step.
Line 173: * @return void A redirect is performed if the user isn't ready for the step
Line 235: * Builds a URL to the form at a particular step
Line 266: // Return to last step of the form
Line 284: * performing the inserts. The keys are the table names, and each

/sprout/Controllers/MultiStepFormController.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 31: * Supports multistep forms
Line 33: abstract class MultiStepFormController extends Controller {
Line 41: /** Key for partitioning session data associated with this form, i.e. $_SESSION[$this->session_key] */
Line 44: /** Route to form, relative to site root */
Line 47: /** Page title to be displayed on form steps */
Line 48: protected $page_title = 'Form';
Line 61: * The method used to drive the forms at each step
Line 64: * @return View The view containing the form for that step
Line 66: protected function form($step = -1)
Line 123: * The method used to drive the form submissions at each step
Line 127: * steps, the user is redirected to the form for the next step.
Line 173: * @return void A redirect is performed if the user isn't ready for the step
Line 235: * Builds a URL to the form at a particular step
Line 266: // Return to last step of the form
Line 284: * performing the inserts. The keys are the table names, and each

/sprout/Helpers/AdminError.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 18: * These should be returned in the _getAddForm(), _getEditForm() and _getDeleteForm() functions.

/sprout/Helpers/AdminError.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 18: * These should be returned in the _getAddForm(), _getEditForm() and _getDeleteForm() functions.

/sprout/Helpers/ColModifierDate.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 19: * The default output format is d/m/Y, but can be changed in the constructor.
Line 20: * Format strings are anything supported by the PHP function date().
Line 24: private $format;
Line 27: * @param string $format The format (see PHP's date function, {@link http://php.net/manual/en/function.date.php})
Line 29: public function __construct($format = 'd/m/Y')
Line 31: $this->format = $format;
Line 47: if (preg_match('/^[0-9]+$/', $val)) return date($this->format, $val);
Line 50: return date($this->format, strtotime($val));

/sprout/Helpers/ColModifierLnk.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 17: * Formats a Lnk field into something appealing

/sprout/Helpers/ContentReplace.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 64: * Replace links to internal pages in the format page/view_by_id/... with the page's friendly url
Line 88: * @param array $widgets Format to match $_POST['widgets'] on
Line 90: * @param array $settings Format to match $_POST['widget_settings']
Line 117: * Embed code is in the format ((WIDGET code))
Line 230: * Embed code is in the format ((WIDGET code))
Line 245: * Embed code is in the format ((WIDGET code))
Line 287: * Replacement code is in the format ((REPLACE field_name))
Line 337: $dom->formatOutput = false;
Line 371: $html .= "<p><a href=\"{$url}\">More information</a></p>";

/sprout/Helpers/ContentReplace.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 64: * Replace links to internal pages in the format page/view_by_id/... with the page's friendly url
Line 88: * @param array $widgets Format to match $_POST['widgets'] on
Line 90: * @param array $settings Format to match $_POST['widget_settings']
Line 117: * Embed code is in the format ((WIDGET code))
Line 230: * Embed code is in the format ((WIDGET code))
Line 245: * Embed code is in the format ((WIDGET code))
Line 287: * Replacement code is in the format ((REPLACE field_name))
Line 337: $dom->formatOutput = false;
Line 371: $html .= "<p><a href=\"{$url}\">More information</a></p>";

/sprout/Helpers/DocImport/DocImportDOCX.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 27: private $number_formats;
Line 42: $this->number_formats = [];
Line 51: $this->number_formats = $this->loadFormats();
Line 142: if ($style['number_format'] != $list_fmt or $style['number_level'] != $list_lvl) {
Line 147: $list_fmt = $style['number_format'];
Line 161: if ($style['number_format'] and $nextSibling) {
Line 163: if ($nextstyle['number_format'] != $style['number_format'] and $nextstyle['number_level'] == $style['number_level']) {
Line 165: if ($nextstyle['number_format'] == '') $lvldrop = true;
Line 216: $list_fmt = $nextstyle['number_format'];
Line 466: * Load the number formats from numbering.xml
Line 470: private function loadFormats()
Line 593: * Sometimes a numbering format refers to a style, the style itself contains the actual number format
Line 594: * This function dereferences the number formats back again
Line 600: foreach ($this->number_formats as $idx => &$num) {
Line 608: $upstreamFormat = $this->number_formats[$numId];
Line 609: if (! $upstreamFormat) continue;
Line 611: $num['numFmt'] = $upstreamFormat['numFmt'];
Line 651: $out['number_format'] = null;
Line 667: $out['number_format'] = $this->number_formats[$style['numid']]['numFmt'];
Line 677: if (isset($this->number_formats[$numberId]['numFmt'])) {
Line 678: $out['number_format'] = $this->number_formats[$numberId]['numFmt'];
Line 691: $out['number_format'] = null;
Line 695: // If this uses the numberfing format "none", kill the numbering
Line 696: if ($out['number_format'] == 'none') {
Line 697: $out['number_format'] = null;
Line 748: if ($style['number_format'] == 'bullet') return 'ul';

/sprout/Helpers/DocImport/DocImportDOCX.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 27: private $number_formats;
Line 42: $this->number_formats = [];
Line 51: $this->number_formats = $this->loadFormats();
Line 142: if ($style['number_format'] != $list_fmt or $style['number_level'] != $list_lvl) {
Line 147: $list_fmt = $style['number_format'];
Line 161: if ($style['number_format'] and $nextSibling) {
Line 163: if ($nextstyle['number_format'] != $style['number_format'] and $nextstyle['number_level'] == $style['number_level']) {
Line 165: if ($nextstyle['number_format'] == '') $lvldrop = true;
Line 216: $list_fmt = $nextstyle['number_format'];
Line 466: * Load the number formats from numbering.xml
Line 470: private function loadFormats()
Line 593: * Sometimes a numbering format refers to a style, the style itself contains the actual number format
Line 594: * This function dereferences the number formats back again
Line 600: foreach ($this->number_formats as $idx => &$num) {
Line 608: $upstreamFormat = $this->number_formats[$numId];
Line 609: if (! $upstreamFormat) continue;
Line 611: $num['numFmt'] = $upstreamFormat['numFmt'];
Line 651: $out['number_format'] = null;
Line 667: $out['number_format'] = $this->number_formats[$style['numid']]['numFmt'];
Line 677: if (isset($this->number_formats[$numberId]['numFmt'])) {
Line 678: $out['number_format'] = $this->number_formats[$numberId]['numFmt'];
Line 691: $out['number_format'] = null;
Line 695: // If this uses the numberfing format "none", kill the numbering
Line 696: if ($out['number_format'] == 'none') {
Line 697: $out['number_format'] = null;
Line 748: if ($style['number_format'] == 'bullet') return 'ul';

/sprout/Helpers/Fb.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 24: * Quick and easy form builder
Line 46: * Sets the data that is used for form-building
Line 288: * Shows a HTML5 number field, formatted for dollar prices
Line 391: * To easily save the uploaded files in the form action function, see {@see File::replaceSet}
Line 401: * - 'form_url' (string)
Line 404: * - 'form_params' (array):
Line 405: * - form_id (string)
Line 423: 'form_url' => 'file_upload/upload_form',
Line 427: 'form_params' => [
Line 428: 'form_id' => $params['sess_key'],
Line 464: // Otherwise it just gets thrown away if there's a form error
Line 592: return Lnk::editform($name, $value, !empty($options['required']));
Line 793: * Expects to be provided AJAX data in a format defined by jQuery UI (see 'url' option below).
Line 856: * @param string $name Form field name
Line 972: * Form::nextFieldDetails('Colours to include', false);
Line 973: * echo Form::checkboxSet('colours', [], [
Line 1001: * @note This typically isn't used directly; instead use @see Form::checkboxList,
Line 1145: * 'min' => the earliest selectable date, format YYYY-MM-DD
Line 1146: * 'max' => the latest selectable date, format YYYY-MM-DD
Line 1186: * Renders a date range picker. Output is in the form of two fields (given in name as a comma separated list) e.g.
Line 1210: throw new InvalidArgumentException("daterangepicker expects name ({$name}) to be in the form of two comma-separated identifiers; e.g. 'date_start,date_end'");
Line 1238: * Output is in the form of two fields (given in name as a comma separated list) e.g.
Line 1244: * Useage: myCallBack(date_from, date_to) { date_from = date_from.format('YYYY-M-D'); date_to = date_to.format('YYYY-M-D'); }
Line 1260: throw new InvalidArgumentException("simpledaterangepicker expects name ({$name}) to be in the form of two comma-separated identifiers; e.g. 'date_start,date_end'");
Line 1292: * Output is in the form of two fields (given in name as a comma separated list) e.g.
Line 1299: * 'min' Minimum datetime in YYYY-MM-DD HH:MM:SS format
Line 1300: * 'max' Maximum datetime in YYYY-MM-DD HH:MM:SS format
Line 1314: throw new InvalidArgumentException("datetimerangepicker expects name ({$name}) to be in the form of
Line 1347: * 'min' Minimum allowed time in 24-hour format with a colon, e.g. '07:00' for 7am
Line 1348: * 'max' Maximum allowed time in 24-hour format with a colon, e.g. '20:30' for 8:30pm
Line 1392: * 'min' Minimum datetime in YYYY-MM-DD HH:MM:SS format
Line 1393: * 'max' Maximum datetime in YYYY-MM-DD HH:MM:SS format
Line 1622: $view->form_field = self::input('text', $name, $attrs);
Line 1658: $view->form_field = self::input('text', $name, $attrs);
Line 1689: $view->form_id = $attrs['id'];
Line 1690: $view->form_field = self::input('text', $name, $attrs);
Line 1701: * As JsonForm will auto-convert arrays into comma-separated strings, this field can easily be used with a MySQL
Line 1740: $opts['form_url'] = 'admin/call/file/ajaxDragdropForm';
Line 1742: $opts['form_params'] = [];
Line 1760: * Please use {@see Form::nextFieldDetails} instead.

/sprout/Helpers/Fb.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 24: * Quick and easy form builder
Line 46: * Sets the data that is used for form-building
Line 288: * Shows a HTML5 number field, formatted for dollar prices
Line 391: * To easily save the uploaded files in the form action function, see {@see File::replaceSet}
Line 401: * - 'form_url' (string)
Line 404: * - 'form_params' (array):
Line 405: * - form_id (string)
Line 423: 'form_url' => 'file_upload/upload_form',
Line 427: 'form_params' => [
Line 428: 'form_id' => $params['sess_key'],
Line 464: // Otherwise it just gets thrown away if there's a form error
Line 592: return Lnk::editform($name, $value, !empty($options['required']));
Line 793: * Expects to be provided AJAX data in a format defined by jQuery UI (see 'url' option below).
Line 856: * @param string $name Form field name
Line 972: * Form::nextFieldDetails('Colours to include', false);
Line 973: * echo Form::checkboxSet('colours', [], [
Line 1001: * @note This typically isn't used directly; instead use @see Form::checkboxList,
Line 1145: * 'min' => the earliest selectable date, format YYYY-MM-DD
Line 1146: * 'max' => the latest selectable date, format YYYY-MM-DD
Line 1186: * Renders a date range picker. Output is in the form of two fields (given in name as a comma separated list) e.g.
Line 1210: throw new InvalidArgumentException("daterangepicker expects name ({$name}) to be in the form of two comma-separated identifiers; e.g. 'date_start,date_end'");
Line 1238: * Output is in the form of two fields (given in name as a comma separated list) e.g.
Line 1244: * Useage: myCallBack(date_from, date_to) { date_from = date_from.format('YYYY-M-D'); date_to = date_to.format('YYYY-M-D'); }
Line 1260: throw new InvalidArgumentException("simpledaterangepicker expects name ({$name}) to be in the form of two comma-separated identifiers; e.g. 'date_start,date_end'");
Line 1292: * Output is in the form of two fields (given in name as a comma separated list) e.g.
Line 1299: * 'min' Minimum datetime in YYYY-MM-DD HH:MM:SS format
Line 1300: * 'max' Maximum datetime in YYYY-MM-DD HH:MM:SS format
Line 1314: throw new InvalidArgumentException("datetimerangepicker expects name ({$name}) to be in the form of
Line 1347: * 'min' Minimum allowed time in 24-hour format with a colon, e.g. '07:00' for 7am
Line 1348: * 'max' Maximum allowed time in 24-hour format with a colon, e.g. '20:30' for 8:30pm
Line 1392: * 'min' Minimum datetime in YYYY-MM-DD HH:MM:SS format
Line 1393: * 'max' Maximum datetime in YYYY-MM-DD HH:MM:SS format
Line 1622: $view->form_field = self::input('text', $name, $attrs);
Line 1658: $view->form_field = self::input('text', $name, $attrs);
Line 1689: $view->form_id = $attrs['id'];
Line 1690: $view->form_field = self::input('text', $name, $attrs);
Line 1701: * As JsonForm will auto-convert arrays into comma-separated strings, this field can easily be used with a MySQL
Line 1740: $opts['form_url'] = 'admin/call/file/ajaxDragdropForm';
Line 1742: $opts['form_params'] = [];
Line 1760: * Please use {@see Form::nextFieldDetails} instead.

/sprout/Helpers/FileUpload.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 33: * This is to be used during form processing upon a POST submission.
Line 41: * @param string $sess_key Session key related to the form, e.g. 'user-register';
Line 126: * This allows reuse of existing uploaded files on Form::chunkedUpload fields which support multiple files
Line 132: * @return string The filename of the newly generated symlink, which matches the naming format of files

/sprout/Helpers/FileUpload.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 33: * This is to be used during form processing upon a POST submission.
Line 41: * @param string $sess_key Session key related to the form, e.g. 'user-register';
Line 126: * This allows reuse of existing uploaded files on Form::chunkedUpload fields which support multiple files
Line 132: * @return string The filename of the newly generated symlink, which matches the naming format of files

/sprout/Helpers/Form.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 22: * Helper functions for outputting form elements.
Line 24: * Wraps form fields (e.g. from {@see Fb}) with additional HTML.
Line 26: * Most wrapping will done using the __callStatic method which actually just calls {@see Form::fieldAuto}.
Line 28: * If that docblock tag is found, the field is wrapped in {@see Form::fieldFieldset}
Line 29: * If that docblock tag is not found (the most common case), the field is wrapped in {@see Form::fieldPlain}
Line 36: * - The method and class name, in the format 'field-element--id-<name>'
Line 37: * - If an "id" attribute is set, in the format 'field-element--id-<id>'
Line 45: * Form::setData($data);
Line 46: * Form::setErrors($errors);
Line 48: * Form::nextFieldDetails('First name', true);
Line 49: * echo Form::text('first_name');
Line 51: * Form::nextFieldDetails('Email', true, 'Please enter your email address');
Line 52: * echo Form::email('email', [], ['-wrapper-class' => 'small']);
Line 54: * Form::nextFieldDetails('Phone', false, 'Enter a phone number using the unique UI');
Line 55: * echo Form::fieldPlain('SproutModules\Someone\CustomModule\Helpers\FbHack::phone', 'phone', [], []);
Line 57: class Form
Line 63: static $name_format = "%s";
Line 68: * Gets the form per-field value for a single field
Line 70: * As form field datas are stored using the {@see Fb} class, this method just gets the data from there
Line 81: * Set form per-field values for the fields
Line 83: * As form fields are rendered using the {@see Fb} class, this method just sets the data there
Line 85: * @param array $data In the format
Line 98: * As form fields are rendered using the {@see Fb} class, this method just sets the data there
Line 116: * @param array $errors In the format
Line 131: * field_values Field data, loaded using {@see Form::setData}
Line 132: * field_errors Field errors, loaded using {@see Form::setErrors}
Line 135: * $data = Form::loadFromSession('register');
Line 138: * Form::setData($data);
Line 171: * Set a format string which will alter the field name prior to being passed to the underlying render method
Line 173: * Formatting is done using {@see sprintf}
Line 175: * The default format does no transformation, i.e. the string '%s'
Line 176: * This parameter persists across multiple form fields
Line 179: * Form::setFieldNameFormat('pages[%s]')
Line 180: * Form::text('name') // field name will be 'pages[text]'
Line 182: * @param string $format Format string
Line 184: public static function setFieldNameFormat($format)
Line 186: self::$name_format = $format;
Line 248: * The classes {@see Fb} and {@see Form} aren't emitted, but all other class names are
Line 250: * @param string $method Full original method name, in namespace\class::method format
Line 256: $method = str_replace('Sprout\Helpers\Form::', '', $method);
Line 264: * Format a field name as per the specification defined by {@see Form::setFieldNameFormat}
Line 266: * @param string $name Unformatted field name
Line 267: * @return string Formatted field name
Line 272: return sprintf(self::$name_format, $name);
Line 278: $f = sprintf(self::$name_format, $f);
Line 336: * echo Form::fieldPlain('Sprout\Helpers\Fb::text', 'first_name', [], []);
Line 340: * echo Form::fieldPlain('Sprout\Helpers\Fb::text', 'first_name', ['id' => 'first-name'], []);
Line 344: * echo Form::fieldPlain('Sprout\Helpers\Fb::text', 'first_name', ['-wrapper-class' => 'small'], []);
Line 565: * Will wrap the Fb method with the same name as the called method, e.g. Form::datepicker wraps Fb::datepicker
Line 566: * Wrapping is done using {@see Form::fieldAuto}
Line 594: * Return HTML which has been wrapped in the form field DIVs
Line 601: return static::fieldPlain('Sprout\Helpers\Form::passString', $html);
Line 606: * Return content which has been HTML-encoded and wrapped in the form field DIVs
Line 613: return static::fieldPlain('Sprout\Helpers\Form::passString', Enc::html($plain));
Line 708: * The form data for this field should be an array of arrays with at least the following keys:

/sprout/Helpers/I18n.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 22: * Formats data according to local conventions.
Line 74: * Return a formatted number
Line 76: * @param float $number The number to format
Line 81: return self::$locale->numberFormat($number, $precision);
Line 86: * Return a formatted currency value
Line 88: * @param float $number The number to format
Line 92: return self::$locale->moneyFormat($number, $precision);
Line 97: * Return a formatted date in a short format (e.g. 3/1/2003)
Line 109: * Return a formatted date in a short format (e.g. Mon 3rd Jan 2003)
Line 121: * Return a formatted dtime (e.g. 5:30pm)

/sprout/Helpers/I18n.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 22: * Formats data according to local conventions.
Line 74: * Return a formatted number
Line 76: * @param float $number The number to format
Line 81: return self::$locale->numberFormat($number, $precision);
Line 86: * Return a formatted currency value
Line 88: * @param float $number The number to format
Line 92: return self::$locale->moneyFormat($number, $precision);
Line 97: * Return a formatted date in a short format (e.g. 3/1/2003)
Line 109: * Return a formatted date in a short format (e.g. Mon 3rd Jan 2003)
Line 121: * Return a formatted dtime (e.g. 5:30pm)

/sprout/Helpers/JsonForm.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 21: * Processes forms using configuration stored in a JSON file which specifies database columns, their HTML input fields,
Line 23: * A generic implementation which should work for most cases is found in {@see ManagedAdminController::_getEditForm}
Line 24: * (generates the form) and {@see Controller::saveJsonData} (saves the POST submission)
Line 26: class JsonForm extends Form
Line 31: * @param array $conf The form config, pulled from JSON
Line 84: * @param array $auto Auto link opts, from a JSON form defintion
Line 108: * @param array $conf The form config, pulled from JSON
Line 289: return JsonForm::renderField($field, $name_prepend, $metadata);
Line 351: // Backup form data, then clobber it, to render using the multiedit's defaults
Line 373: // Restore original form data which was clobbered to render defaults
Line 390: return Form::autofillList($auto['name'], [], $auto);
Line 422: Form::nextFieldDetails($field['label'], $field['required'], $field['helptext']);
Line 423: return Form::fieldAuto($func, $name_prepend . $field['name'], $field['attrs'], $field['items']);
Line 475: * @param array $conf Config, typically loaded by Controller::loadFormJson()
Line 476: * @param string $mode Form mode, e.g. 'add', 'edit' or a custom value
Line 478: * validation before and/or after collating the JsonForm data
Line 598: * Collates a single field's $_POST data for INSERT/UPDATE queries, and performs validation
Line 667: * @param array $args Arguments in the JsonForm definition
Line 684: * Modify a JSON form config to make a particular field optional
Line 685: * @param array $conf The JSON form config
Line 695: * Modify a JSON form config to make a particular field required
Line 696: * @param array $conf The JSON form config
Line 706: * Modify a JSON form config to change the 'required' status of a particular field
Line 707: * This implements {@see JsonForm::makeOptional} and {@see JsonForm::makeRequired}
Line 708: * @param array $conf The JSON form config

/sprout/Helpers/LightweightForm.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 21: * A variation of the {@see Form} helper which doesn't output errors, labels or helptext
Line 22: * Wraps form fields (e.g. from {@see Fb}) with additional HTML.
Line 24: class LightweightForm extends Form

/sprout/Helpers/LinkSpec.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 36: * If there are any {@see Needs} calls that the edit form requires, they should be loaded here
Line 48: abstract public function getEditForm($field_name, $curr_specdata);

/sprout/Helpers/LinkSpec.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 36: * If there are any {@see Needs} calls that the edit form requires, they should be loaded here
Line 48: abstract public function getEditForm($field_name, $curr_specdata);

/sprout/Helpers/LinkSpecDocument.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 44: * If there are any {@see Needs} calls that the edit form requires, they should be loaded here
Line 58: public function getEditForm($field_name, $curr_specdata)
Line 60: Form::setData([$field_name => $curr_specdata]);
Line 61: Form::nextFieldDetails('Document', true);
Line 62: return Form::fileselector($field_name, ['filter' => FileConstants::TYPE_DOCUMENT]);

/sprout/Helpers/LinkSpecExternal.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 47: public function getEditForm($field_name, $curr_specdata)
Line 49: Form::setData([$field_name => $curr_specdata]);
Line 50: Form::nextFieldDetails('External URL', true);
Line 51: return Form::text($field_name, ['placeholder' => 'e.g. http://www.example.com']);

/sprout/Helpers/LinkSpecExternal.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 47: public function getEditForm($field_name, $curr_specdata)
Line 49: Form::setData([$field_name => $curr_specdata]);
Line 50: Form::nextFieldDetails('External URL', true);
Line 51: return Form::text($field_name, ['placeholder' => 'e.g. http://www.example.com']);

/sprout/Helpers/LinkSpecInternal.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 49: public function getEditForm($field_name, $curr_specdata)
Line 51: Form::setData([$field_name => $curr_specdata]);
Line 52: Form::nextFieldDetails('Internal URL', true);
Line 53: return Form::text($field_name, ['placeholder' => 'e.g. /contact']);

/sprout/Helpers/LinkSpecInternal.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 49: public function getEditForm($field_name, $curr_specdata)
Line 51: Form::setData([$field_name => $curr_specdata]);
Line 52: Form::nextFieldDetails('Internal URL', true);
Line 53: return Form::text($field_name, ['placeholder' => 'e.g. /contact']);

/sprout/Helpers/LinkSpecPage.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 55: public function getEditForm($field_name, $curr_specdata)
Line 57: Form::setData([$field_name => $curr_specdata]);
Line 58: Form::nextFieldDetails('Page', true);
Line 59: return Form::pageDropdown($field_name);

/sprout/Helpers/LinkSpecPage.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 55: public function getEditForm($field_name, $curr_specdata)
Line 57: Form::setData([$field_name => $curr_specdata]);
Line 58: Form::nextFieldDetails('Page', true);
Line 59: return Form::pageDropdown($field_name);

/sprout/Helpers/Locales/LocaleInfo.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 22: use Sprout\Helpers\Form;
Line 110: * The state names become the form field values if state list is a numeric array.
Line 212: Form::nextFieldDetails($this->line1, $required);
Line 213: return Form::text($prefix . 'street', ['-wrapper-class' => 'address-street1']);
Line 216: Form::nextFieldDetails($this->line2, false);
Line 217: return Form::text($prefix . 'street2', ['-wrapper-class' => 'address-street2']);
Line 220: Form::nextFieldDetails($this->town_name, $required);
Line 221: return Form::text($prefix . 'town', ['-wrapper-class' => 'address-town']);
Line 225: Form::nextFieldDetails($this->state_name, $required);
Line 228: return Form::dropdown($prefix . 'state', ['-wrapper-class' => 'address-state'], $states);
Line 230: return Form::text($prefix . 'state', ['-wrapper-class' => 'address-state']);
Line 233: Form::nextFieldDetails('State/Province (please ignore)', false);
Line 234: $field = Form::text($prefix . 'state', ['-wrapper-class' => 'address-state']);
Line 240: Form::nextFieldDetails($this->postcode_name, $required);
Line 241: return Form::text($prefix . 'postcode', ['-wrapper-class' => 'address-postcode']);
Line 243: Form::nextFieldDetails('Postcode (please ignore)', false);
Line 244: $field = Form::text($prefix . 'postcode', ['-wrapper-class' => 'address-postcode']);
Line 255: * Returns a string which is a formatted version of the address specified using the provided data.
Line 289: * @param Validator $valid Validator for the form being processed
Line 331: * Formats numbers, like the interal {@see number_format} function
Line 333: * @param int|float The number to format
Line 337: public function numberFormat($number, $precision = 0)
Line 339: return number_format($number, $precision, $this->decimal_seperator, $this->group_seperator);
Line 344: * Formats currency values, similar to the interal {@see number_format} function
Line 346: * @param int|float The number to format
Line 350: public function moneyFormat($number, $precision = null)
Line 354: return '-' . $this->currency_symbol . $this->numberFormat(abs($number), $precision);
Line 356: return $this->currency_symbol . $this->numberFormat($number, $precision);
Line 362: * Formats dates in a long format
Line 374: * Formats dates in a short format
Line 386: * Formats times

/sprout/Helpers/Locales/LocaleInfo.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 22: use Sprout\Helpers\Form;
Line 110: * The state names become the form field values if state list is a numeric array.
Line 212: Form::nextFieldDetails($this->line1, $required);
Line 213: return Form::text($prefix . 'street', ['-wrapper-class' => 'address-street1']);
Line 216: Form::nextFieldDetails($this->line2, false);
Line 217: return Form::text($prefix . 'street2', ['-wrapper-class' => 'address-street2']);
Line 220: Form::nextFieldDetails($this->town_name, $required);
Line 221: return Form::text($prefix . 'town', ['-wrapper-class' => 'address-town']);
Line 225: Form::nextFieldDetails($this->state_name, $required);
Line 228: return Form::dropdown($prefix . 'state', ['-wrapper-class' => 'address-state'], $states);
Line 230: return Form::text($prefix . 'state', ['-wrapper-class' => 'address-state']);
Line 233: Form::nextFieldDetails('State/Province (please ignore)', false);
Line 234: $field = Form::text($prefix . 'state', ['-wrapper-class' => 'address-state']);
Line 240: Form::nextFieldDetails($this->postcode_name, $required);
Line 241: return Form::text($prefix . 'postcode', ['-wrapper-class' => 'address-postcode']);
Line 243: Form::nextFieldDetails('Postcode (please ignore)', false);
Line 244: $field = Form::text($prefix . 'postcode', ['-wrapper-class' => 'address-postcode']);
Line 255: * Returns a string which is a formatted version of the address specified using the provided data.
Line 289: * @param Validator $valid Validator for the form being processed
Line 331: * Formats numbers, like the interal {@see number_format} function
Line 333: * @param int|float The number to format
Line 337: public function numberFormat($number, $precision = 0)
Line 339: return number_format($number, $precision, $this->decimal_seperator, $this->group_seperator);
Line 344: * Formats currency values, similar to the interal {@see number_format} function
Line 346: * @param int|float The number to format
Line 350: public function moneyFormat($number, $precision = null)
Line 354: return '-' . $this->currency_symbol . $this->numberFormat(abs($number), $precision);
Line 356: return $this->currency_symbol . $this->numberFormat($number, $precision);
Line 362: * Formats dates in a long format
Line 374: * Formats dates in a short format
Line 386: * Formats times

/sprout/Helpers/Locales/LocaleInfoARG.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 36: 'Formosa',

/sprout/Helpers/Locales/LocaleInfoARG.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 36: 'Formosa',

/sprout/Helpers/Locales/LocaleInfoIND.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 71: * India uses a number formatting system where the first group is three digits,
Line 73: * @param int|float The number to format
Line 77: public function numberFormat($number, $places = 0)

/sprout/Helpers/Locales/LocaleInfoIND.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 71: * India uses a number formatting system where the first group is three digits,
Line 73: * @param int|float The number to format
Line 77: public function numberFormat($number, $places = 0)

/sprout/Helpers/Needs.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 117: * @param string $name The name of the file group, e.g. 'Forms/admin_fields'

/sprout/Helpers/Needs.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 117: * @param string $name The name of the file group, e.g. 'Forms/admin_fields'

/sprout/Helpers/phpqrcode/qrmask.php   Highlighted file source

Line 44: public function writeFormatInformation($width, &$frame, $mask, $level)
Line 47: $format = QRspec::getFormatInfo($mask, $level);
Line 50: if($format & 1) {
Line 63: $format = $format >> 1;
Line 67: if($format & 1) {
Line 81: $format = $format >> 1;
Line 183: $this->writeFormatInformation($width, $masked, $maskNo, $level);
Line 312: $blacks += $this->writeFormatInformation($width, $mask, $i, $level);

/sprout/Helpers/phpqrcode/qrrscode.php   Highlighted file source

Line 39: public $fcr; // First consecutive root, index form
Line 40: public $prim; // Primitive element, index form
Line 41: public $iprim; // prim-th root of 1, index form
Line 105: /* Form RS code generator polynomial from its roots */
Line 135: // convert rs->genpoly[] to index form for quicker encoding

/sprout/Helpers/phpqrcode/qrspec.php   Highlighted file source

Line 336: // Version information pattern -----------------------------------------
Line 338: // Version information pattern (BCH coded).
Line 360: // Format information --------------------------------------------------
Line 361: // See calcFormatInfo in tests/test_qrspec.c (orginal qrencode c lib)
Line 363: public static $formatInfo = array(
Line 370: public static function getFormatInfo($mask, $level)
Line 378: return self::$formatInfo[$level][$mask];
Line 437: // Format info
Line 459: // Version information
Line 513: $frameLine = join('<span class="s">&#9671;</span>', explode("\x84", $frameLine)); //format 0
Line 514: $frameLine = join('<span class="s">&#9670;</span>', explode("\x85", $frameLine)); //format 1

/sprout/Helpers/RefineWidgetAutocomplete.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 26: * @param string $label The label to display on the form, e.g. 'Name'
Line 43: Form::setFieldValue($this->name, $this->getValue());
Line 45: Form::nextFieldDetails($this->label, false);
Line 46: return Form::autocomplete($this->name, ['-wrapper-class' => 'white small'], $this->options);

/sprout/Helpers/RefineWidgetAutocomplete.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 26: * @param string $label The label to display on the form, e.g. 'Name'
Line 43: Form::setFieldValue($this->name, $this->getValue());
Line 45: Form::nextFieldDetails($this->label, false);
Line 46: return Form::autocomplete($this->name, ['-wrapper-class' => 'white small'], $this->options);

/sprout/Helpers/RefineWidgetDatepicker.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 26: * @param string $label The label to display on the form, e.g. 'Name'
Line 43: Form::setFieldValue($this->name, $this->getValue());
Line 45: Form::nextFieldDetails($this->label, false);
Line 46: return Form::datepicker($this->name, ['-wrapper-class' => 'white small'], $this->options);

/sprout/Helpers/RefineWidgetDatepicker.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 26: * @param string $label The label to display on the form, e.g. 'Name'
Line 43: Form::setFieldValue($this->name, $this->getValue());
Line 45: Form::nextFieldDetails($this->label, false);
Line 46: return Form::datepicker($this->name, ['-wrapper-class' => 'white small'], $this->options);

/sprout/Helpers/Text.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 143: * Determines whether given HTML contains a FORM tag, which can cause nested-forms issues
Line 145: * Not tested with malformed input - should not be used as an XSS filter
Line 148: * @return bool True if the string contains a FORM tag, false if it doesn't
Line 150: public static function containsFormTag($html)
Line 153: if (stripos($html, '<form') === false) {
Line 161: return (stripos($html, '<form') !== false);
Line 347: $no_p = '(?:p|div|h[1-6r]|ul|ol|li|blockquote|d[dlt]|pre|t[dhr]|t(?:able|body|foot|head)|c(?:aption|olgroup)|form|s(?:elect|tyle)|a(?:ddress|rea)|ma(?:p|th))';
Line 376: * @see Quentin Zervaas: http://www.phpriot.com/d/code/strings/filesize-format/
Line 380: * @param string the return string format
Line 384: public static function bytes($bytes, $force_unit = NULL, $format = NULL, $si = TRUE)
Line 386: // Format string
Line 387: $format = ($format === NULL) ? '%01.2f %s' : (string) $format;
Line 408: return sprintf($format, $bytes / pow($mod, $power), $units[$power]);
Line 591: * as a defence against XSS attacks; it should only be used on trusted input such as Form helptext.

/sprout/Helpers/TinyMCE4RichText.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 83: $options['element_format'] = 'html';
Line 88: $options['formats'] = array(
Line 101: 'bold italic strikethrough subscript superscript link unlink anchor | removeformat | code fullscreen',
Line 121: // Formats dropdown menu
Line 122: if (empty($options['style_formats'])) {
Line 123: $options['style_formats'] = array(
Line 125: array('title' => 'Heading 2', 'format' => 'h2'),
Line 126: array('title' => 'Heading 3', 'format' => 'h3'),
Line 127: array('title' => 'Heading 4', 'format' => 'h4'),
Line 130: array('title' => 'Paragraph', 'format' => 'p'),
Line 131: array('title' => 'Blockquote', 'format' => 'blockquote'),
Line 134: array('title' => 'Bold', 'format' => 'bold'),
Line 135: array('title' => 'Italic', 'format' => 'italic'),

/sprout/sprout_load.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 63: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Platform\\DeviceCategory', 'Platform', 'Device category');
Line 64: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Platform\\BrowserName', 'Platform', 'Browser name');
Line 65: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Platform\\BrowserVersion', 'Platform', 'Browser version');
Line 79: 'Formatted page content',
Line 90: 'Formatted page content',
Line 147: 'Formatted page content',
Line 171: Pdb::setFormatter('DateTime', function($dt) {
Line 172: return $dt->format('Y-m-d H:i:s');
Line 175: Pdb::setFormatter('DateInterval', function($interval) {
Line 178: return $dt->format('Y-m-d H:i:s');
Line 185: 'method' => 'qrCodeForm',

/sprout/sprout_load.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 63: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Platform\\DeviceCategory', 'Platform', 'Device category');
Line 64: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Platform\\BrowserName', 'Platform', 'Browser name');
Line 65: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Platform\\BrowserVersion', 'Platform', 'Browser version');
Line 79: 'Formatted page content',
Line 90: 'Formatted page content',
Line 147: 'Formatted page content',
Line 171: Pdb::setFormatter('DateTime', function($dt) {
Line 172: return $dt->format('Y-m-d H:i:s');
Line 175: Pdb::setFormatter('DateInterval', function($interval) {
Line 178: return $dt->format('Y-m-d H:i:s');
Line 185: 'method' => 'qrCodeForm',

/sprout/tests/formTest.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 14: use Sprout\Helpers\Form;
Line 17: class formTest extends PHPUnit_Framework_TestCase
Line 22: Form::nextFieldDetails('Bob', true);
Line 23: $html = Form::text('bob');
Line 44: Form::nextFieldDetails('Bob', true);
Line 45: $field = Form::text('bob', ['-wrapper-class' => 'small']);
Line 51: Form::nextFieldDetails('Bob', true);
Line 52: $field = Form::text('bob', ['id' => 'first-name']);
Line 58: Form::setData(['aaa' => '**value**']);
Line 59: $field = Form::text('aaa');
Line 63: public function testDataShallowNameFormat()
Line 65: Form::setData(['--aaa' => '**value**']);
Line 66: Form::setFieldNameFormat('--%s');
Line 67: $field = Form::text('aaa');
Line 69: Form::setFieldNameFormat('%s');
Line 74: Form::setData(['aaa' => ['bbb' => '**value**']]);
Line 75: $field = Form::text('aaa[bbb]');
Line 79: public function testDataDeepNameFormat()
Line 81: Form::setData(['aaa' => ['bbb' => '**value**']]);
Line 82: Form::setFieldNameFormat('aaa[%s]');
Line 83: $field = Form::text('bbb');
Line 85: Form::setFieldNameFormat('%s');
Line 90: Form::setErrors(['aaa' => '**error**']);
Line 91: $field = Form::text('aaa');
Line 95: public function testErrorShallowNameFormat()
Line 97: Form::setErrors(['--aaa' => '**error**']);
Line 98: Form::setFieldNameFormat('--%s');
Line 99: $field = Form::text('aaa');
Line 101: Form::setFieldNameFormat('%s');
Line 106: Form::setErrors(['aaa' => ['bbb' => '**error**']]);
Line 107: $field = Form::text('aaa[bbb]');
Line 113: Form::setErrors(['aaa' => [5 => ['bbb' => '**error**']]]);
Line 114: $field = Form::text('aaa[5][bbb]');
Line 118: public function testErrorDeepNameFormat()
Line 120: Form::setErrors(['aaa' => ['bbb' => '**error**']]);
Line 121: Form::setFieldNameFormat('aaa[%s]');
Line 122: $field = Form::text('bbb');
Line 124: Form::setFieldNameFormat('%s');

/sprout/tests/formTest.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 14: use Sprout\Helpers\Form;
Line 17: class formTest extends PHPUnit_Framework_TestCase
Line 22: Form::nextFieldDetails('Bob', true);
Line 23: $html = Form::text('bob');
Line 44: Form::nextFieldDetails('Bob', true);
Line 45: $field = Form::text('bob', ['-wrapper-class' => 'small']);
Line 51: Form::nextFieldDetails('Bob', true);
Line 52: $field = Form::text('bob', ['id' => 'first-name']);
Line 58: Form::setData(['aaa' => '**value**']);
Line 59: $field = Form::text('aaa');
Line 63: public function testDataShallowNameFormat()
Line 65: Form::setData(['--aaa' => '**value**']);
Line 66: Form::setFieldNameFormat('--%s');
Line 67: $field = Form::text('aaa');
Line 69: Form::setFieldNameFormat('%s');
Line 74: Form::setData(['aaa' => ['bbb' => '**value**']]);
Line 75: $field = Form::text('aaa[bbb]');
Line 79: public function testDataDeepNameFormat()
Line 81: Form::setData(['aaa' => ['bbb' => '**value**']]);
Line 82: Form::setFieldNameFormat('aaa[%s]');
Line 83: $field = Form::text('bbb');
Line 85: Form::setFieldNameFormat('%s');
Line 90: Form::setErrors(['aaa' => '**error**']);
Line 91: $field = Form::text('aaa');
Line 95: public function testErrorShallowNameFormat()
Line 97: Form::setErrors(['--aaa' => '**error**']);
Line 98: Form::setFieldNameFormat('--%s');
Line 99: $field = Form::text('aaa');
Line 101: Form::setFieldNameFormat('%s');
Line 106: Form::setErrors(['aaa' => ['bbb' => '**error**']]);
Line 107: $field = Form::text('aaa[bbb]');
Line 113: Form::setErrors(['aaa' => [5 => ['bbb' => '**error**']]]);
Line 114: $field = Form::text('aaa[5][bbb]');
Line 118: public function testErrorDeepNameFormat()
Line 120: Form::setErrors(['aaa' => ['bbb' => '**error**']]);
Line 121: Form::setFieldNameFormat('aaa[%s]');
Line 122: $field = Form::text('bbb');
Line 124: Form::setFieldNameFormat('%s');

/sprout/tests/textTest.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 369: public function dataContainsFormTag()
Line 373: ['<p>form</p>', false],
Line 374: ['<form action="xx">', true],
Line 375: ['<form<form yep>', true],
Line 376: ['<FORM action="xx">', true],
Line 377: ['<script>console.log("<form>");</script>', false],
Line 378: ['<script type="text/javascript">console.log("<form>");</script>', false],
Line 379: ['<script>*:after { content: "<form>" }</script>', false],
Line 380: ['<style type="text/javascript">*:after { content: "<form>" }</style>', false],
Line 385: * @dataProvider dataContainsFormTag
Line 387: public function testContainsFormTag($in, $expect)
Line 389: $this->assertEquals($expect, Text::containsFormTag($in));

/sprout/tests/textTest.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 369: public function dataContainsFormTag()
Line 373: ['<p>form</p>', false],
Line 374: ['<form action="xx">', true],
Line 375: ['<form<form yep>', true],
Line 376: ['<FORM action="xx">', true],
Line 377: ['<script>console.log("<form>");</script>', false],
Line 378: ['<script type="text/javascript">console.log("<form>");</script>', false],
Line 379: ['<script>*:after { content: "<form>" }</script>', false],
Line 380: ['<style type="text/javascript">*:after { content: "<form>" }</style>', false],
Line 385: * @dataProvider dataContainsFormTag
Line 387: public function testContainsFormTag($in, $expect)
Line 389: $this->assertEquals($expect, Text::containsFormTag($in));

/sprout/views/admin/categories_add.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 20: Form::setData($data);
Line 21: Form::setErrors($errors);
Line 25: <?php Form::nextFieldDetails('Name', true); ?>
Line 26: <?= Form::text('name', ['spellcheck' => 'true']); ?>

/sprout/views/admin/categories_add.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 20: Form::setData($data);
Line 21: Form::setErrors($errors);
Line 25: <?php Form::nextFieldDetails('Name', true); ?>
Line 26: <?= Form::text('name', ['spellcheck' => 'true']); ?>

/sprout/views/admin/categories_delete.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 20: Form::setData(['mode' => 'cat']);
Line 30: Form::nextFieldDetails('Deletion mode', true);
Line 31: echo Form::multiradio('mode', [], [

/sprout/views/admin/categories_delete.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 20: Form::setData(['mode' => 'cat']);
Line 30: Form::nextFieldDetails('Deletion mode', true);
Line 31: echo Form::multiradio('mode', [], [

/sprout/views/admin/categories_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 21: Form::setData($data);
Line 22: Form::setErrors($errors);
Line 26: <?php Form::nextFieldDetails('Name', true); ?>
Line 27: <?= Form::text('name', ['spellcheck' => 'true']); ?>
Line 31: <?php Form::nextFieldDetails('Admin Visibility', false); ?>
Line 32: <?= Form::dropdown('show_admin', [], [1 => 'Current', 0 => 'Archived']); ?>

/sprout/views/admin/categories_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 21: Form::setData($data);
Line 22: Form::setErrors($errors);
Line 26: <?php Form::nextFieldDetails('Name', true); ?>
Line 27: <?= Form::text('name', ['spellcheck' => 'true']); ?>
Line 31: <?php Form::nextFieldDetails('Admin Visibility', false); ?>
Line 32: <?= Form::dropdown('show_admin', [], [1 => 'Current', 0 => 'Archived']); ?>

/sprout/views/admin/categories_multi_categorise.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 26: Form::setData($data);
Line 30: <form action="SITE/admin/call/<?php echo $controller_name; ?>/postMultiCategorise" method="post" id="main-form">
Line 48: Form::nextFieldDetails('Recategorisation mode', true);
Line 49: echo Form::multiradio('mode', [], [
Line 59: </form>

/sprout/views/admin/categories_multi_categorise.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 26: Form::setData($data);
Line 30: <form action="SITE/admin/call/<?php echo $controller_name; ?>/postMultiCategorise" method="post" id="main-form">
Line 48: Form::nextFieldDetails('Recategorisation mode', true);
Line 49: echo Form::multiradio('mode', [], [
Line 59: </form>

/sprout/views/admin/categories_navigation.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 93: <form class="sidebar-form category-archive-selection" method="get">
Line 95: <?php Form::nextFieldDetails('Showing Categories', false); ?>
Line 96: <?php echo Form::dropdown('category_type', ['-wrapper-class' => 'small white', 'placeholder' => 'Archive', 'title' => 'Select whether to show live categories, archived or everything.'], Constants::$category_admin_options); ?>
Line 97: </form>
Line 101: $(this).closest('form').submit();

/sprout/views/admin/categories_navigation.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 93: <form class="sidebar-form category-archive-selection" method="get">
Line 95: <?php Form::nextFieldDetails('Showing Categories', false); ?>
Line 96: <?php echo Form::dropdown('category_type', ['-wrapper-class' => 'small white', 'placeholder' => 'Archive', 'title' => 'Select whether to show live categories, archived or everything.'], Constants::$category_admin_options); ?>
Line 97: </form>
Line 101: $(this).closest('form').submit();

/sprout/views/admin/cron_job_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 21: Form::setData($data);
Line 25: <?= Form::heading('Details'); ?>
Line 27: <?php Form::nextFieldDetails('Job Name', false); ?>
Line 28: <?= Form::output('name'); ?>
Line 30: <?php Form::nextFieldDetails('Status', false); ?>
Line 31: <?= Form::output('status'); ?>
Line 33: <?php Form::nextFieldDetails('Date', false); ?>
Line 34: <?= Form::output('date_added'); ?>
Line 37: <?= Form::heading('Log'); ?>

/sprout/views/admin/cron_job_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 21: Form::setData($data);
Line 25: <?= Form::heading('Details'); ?>
Line 27: <?php Form::nextFieldDetails('Job Name', false); ?>
Line 28: <?= Form::output('name'); ?>
Line 30: <?php Form::nextFieldDetails('Status', false); ?>
Line 31: <?= Form::output('status'); ?>
Line 33: <?php Form::nextFieldDetails('Date', false); ?>
Line 34: <?= Form::output('date_added'); ?>
Line 37: <?= Form::heading('Log'); ?>

/sprout/views/admin/cron_job_manual_run.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 13: <form action="admin/call/cron_job/manualRunAction" method="post">
Line 17: Form::nextFieldDetails('Job', true);
Line 18: echo Form::dropdown('job', [], $jobs);
Line 25: </form>

/sprout/views/admin/cron_job_manual_run.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 13: <form action="admin/call/cron_job/manualRunAction" method="post">
Line 17: Form::nextFieldDetails('Job', true);
Line 18: echo Form::dropdown('job', [], $jobs);
Line 25: </form>

/sprout/views/admin/email_text_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 43: <?php Form::nextFieldDetails('Text', true); ?>
Line 44: <?= Form::fieldAuto('Sprout\Helpers\Fb::richtext', 'text'); ?>

/sprout/views/admin/email_text_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 43: <?php Form::nextFieldDetails('Text', true); ?>
Line 44: <?= Form::fieldAuto('Sprout\Helpers\Fb::richtext', 'text'); ?>

/sprout/views/admin/extra_page_add.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 20: Form::setData($data);
Line 21: Form::setErrors($errors);
Line 34: <?= Form::dropdown('type', [], $types); ?>
Line 37: <?= Form::richtext('text'); ?>

/sprout/views/admin/extra_page_add.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 20: Form::setData($data);
Line 21: Form::setErrors($errors);
Line 34: <?= Form::dropdown('type', [], $types); ?>
Line 37: <?= Form::richtext('text'); ?>

/sprout/views/admin/extra_page_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 24: Form::setData($data);
Line 25: Form::setErrors($errors);
Line 31: <?= Form::dropdown('type', [], Register::getExtraPages()); ?>
Line 39: <?= Form::richtext('text'); ?>

/sprout/views/admin/extra_page_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 24: Form::setData($data);
Line 25: Form::setErrors($errors);
Line 31: <?= Form::dropdown('type', [], Register::getExtraPages()); ?>
Line 39: <?= Form::richtext('text'); ?>

/sprout/views/admin/file_add.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 53: <div class="drag-drop__form">
Line 56: Form::nextFieldDetails('Category', false);
Line 57: echo Form::dropdown('category_id', ['-dropdown-top' => 'Choose per file'], Pdb::lookup('files_cat_list'));
Line 63: <div class="field-element field-element--chunkedupload field-element--chunkedupload--form">

/sprout/views/admin/file_add.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 53: <div class="drag-drop__form">
Line 56: Form::nextFieldDetails('Category', false);
Line 57: echo Form::dropdown('category_id', ['-dropdown-top' => 'Choose per file'], Pdb::lookup('files_cat_list'));
Line 63: <div class="field-element field-element--chunkedupload field-element--chunkedupload--form">

/sprout/views/admin/file_add_dragdrop_form.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 23: Form::setData($data);
Line 24: Form::setErrors($errors);
Line 46: <form action="admin/call/file/ajaxDragdropSave" method="post">
Line 53: <!-- Form fields column -->
Line 58: Form::nextFieldDetails('Name', true);
Line 59: echo Form::text('name');
Line 65: Form::nextFieldDetails('Category', true);
Line 66: echo Form::dropdown('category_id', [], $categories);
Line 75: Form::nextFieldDetails('Date published', false);
Line 76: echo Form::datepicker('date_published');
Line 83: Form::nextFieldDetails('Author', false);
Line 84: echo Form::autocomplete('author', [], ['url' => 'admin/call/file/ajaxAuthorLookup', 'save_id' => false]);
Line 91: Form::nextFieldDetails('Document type', false);
Line 92: echo Form::dropdown('document_type', [], $document_types);
Line 100: Form::nextFieldDetails('Embed author credit in image', false);
Line 101: echo Form::dropdown('embed_author', [], [1 => 'Yes', 0 => 'No']);
Line 109: Form::nextFieldDetails('This image is very large. Is it a specifically cropped banner?', false);
Line 110: echo Form::dropdown('shrink_original', [], [
Line 122: <!-- END form fields column -->
Line 165: </form>

/sprout/views/admin/file_add_dragdrop_form.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 23: Form::setData($data);
Line 24: Form::setErrors($errors);
Line 46: <form action="admin/call/file/ajaxDragdropSave" method="post">
Line 53: <!-- Form fields column -->
Line 58: Form::nextFieldDetails('Name', true);
Line 59: echo Form::text('name');
Line 65: Form::nextFieldDetails('Category', true);
Line 66: echo Form::dropdown('category_id', [], $categories);
Line 75: Form::nextFieldDetails('Date published', false);
Line 76: echo Form::datepicker('date_published');
Line 83: Form::nextFieldDetails('Author', false);
Line 84: echo Form::autocomplete('author', [], ['url' => 'admin/call/file/ajaxAuthorLookup', 'save_id' => false]);
Line 91: Form::nextFieldDetails('Document type', false);
Line 92: echo Form::dropdown('document_type', [], $document_types);
Line 100: Form::nextFieldDetails('Embed author credit in image', false);
Line 101: echo Form::dropdown('embed_author', [], [1 => 'Yes', 0 => 'No']);
Line 109: Form::nextFieldDetails('This image is very large. Is it a specifically cropped banner?', false);
Line 110: echo Form::dropdown('shrink_original', [], [
Line 122: <!-- END form fields column -->
Line 165: </form>

/sprout/views/admin/file_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 22: use Sprout\Helpers\Form;
Line 27: Form::setData($data);
Line 28: Form::setErrors($errors);
Line 52: <?php Form::nextFieldDetails('Name', true); ?>
Line 53: <?= Form::text('name'); ?>
Line 57: <?php Form::nextFieldDetails('Author', false); ?>
Line 58: <?= Form::autocomplete('author', [], ['url' => 'admin/call/file/ajaxAuthorLookup', 'save_id' => false]); ?>
Line 62: <?php Form::nextFieldDetails('Description', false); ?>
Line 63: <?= Form::multiline('description', ['rows' => 5, 'cols' => 40]); ?>
Line 69: Form::nextFieldDetails('Document type', false);
Line 70: echo Form::dropdown('document_type', [], $document_types);
Line 76: Form::nextFieldDetails('Date published', false);
Line 77: echo Form::datepicker('date_published');
Line 177: <img src="SITE/admin/call/file/previewTransform/none/<?php echo Enc::html($data['filename']); ?>" alt="" id="manipulate-preview">
Line 221: <?= Form::upload('replace'); ?>

/sprout/views/admin/file_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 22: use Sprout\Helpers\Form;
Line 27: Form::setData($data);
Line 28: Form::setErrors($errors);
Line 52: <?php Form::nextFieldDetails('Name', true); ?>
Line 53: <?= Form::text('name'); ?>
Line 57: <?php Form::nextFieldDetails('Author', false); ?>
Line 58: <?= Form::autocomplete('author', [], ['url' => 'admin/call/file/ajaxAuthorLookup', 'save_id' => false]); ?>
Line 62: <?php Form::nextFieldDetails('Description', false); ?>
Line 63: <?= Form::multiline('description', ['rows' => 5, 'cols' => 40]); ?>
Line 69: Form::nextFieldDetails('Document type', false);
Line 70: echo Form::dropdown('document_type', [], $document_types);
Line 76: Form::nextFieldDetails('Date published', false);
Line 77: echo Form::datepicker('date_published');
Line 177: <img src="SITE/admin/call/file/previewTransform/none/<?php echo Enc::html($data['filename']); ?>" alt="" id="manipulate-preview">
Line 221: <?= Form::upload('replace'); ?>

/sprout/views/admin/file_selector_popup.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 44: <form action="SITE/admin/call/file/selectorPopupSearch" method="get" id="file-selector-search">
Line 52: Form::nextFieldDetails('Category', false);
Line 53: echo Form::dropdown('category_id', ['-dropdown-top' => 'All', '-wrapper-class' => 'white'], $cats);
Line 57: Form::nextFieldDetails('Name', false);
Line 58: echo Form::text('name', ['-wrapper-class' => 'white', 'placeholder' => 'Enter a name']);
Line 66: </form>
Line 86: <form action="SITE/admin/call/file/quickUpload" method="post" target="quick-upload" id="file-selector-upload" data-type="<?php echo $f_type; ?>">
Line 91: Form::nextFieldDetails('File', true);
Line 92: echo Form::chunkedUpload('file', [], ['sess_key' => 'admin_quick_upload']);
Line 101: Form::nextFieldDetails('Category', (bool) $req_category);
Line 102: echo Form::dropdown('category_id', ['-dropdown-top' => 'Select a file category', '-wrapper-class' => 'white select-category'], $cats);
Line 106: Form::nextFieldDetails('New file category', true);
Line 107: echo Form::text('category_new', ['-wrapper-class' => 'white new-category', 'placeholder' => 'Enter a category name']);
Line 111: Form::nextFieldDetails('Name', true);
Line 112: echo Form::text('name', ['-wrapper-class' => 'white', 'placeholder' => 'Enter a name']);
Line 120: </form>

/sprout/views/admin/file_selector_popup.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 44: <form action="SITE/admin/call/file/selectorPopupSearch" method="get" id="file-selector-search">
Line 52: Form::nextFieldDetails('Category', false);
Line 53: echo Form::dropdown('category_id', ['-dropdown-top' => 'All', '-wrapper-class' => 'white'], $cats);
Line 57: Form::nextFieldDetails('Name', false);
Line 58: echo Form::text('name', ['-wrapper-class' => 'white', 'placeholder' => 'Enter a name']);
Line 66: </form>
Line 86: <form action="SITE/admin/call/file/quickUpload" method="post" target="quick-upload" id="file-selector-upload" data-type="<?php echo $f_type; ?>">
Line 91: Form::nextFieldDetails('File', true);
Line 92: echo Form::chunkedUpload('file', [], ['sess_key' => 'admin_quick_upload']);
Line 101: Form::nextFieldDetails('Category', (bool) $req_category);
Line 102: echo Form::dropdown('category_id', ['-dropdown-top' => 'Select a file category', '-wrapper-class' => 'white select-category'], $cats);
Line 106: Form::nextFieldDetails('New file category', true);
Line 107: echo Form::text('category_new', ['-wrapper-class' => 'white new-category', 'placeholder' => 'Enter a category name']);
Line 111: Form::nextFieldDetails('Name', true);
Line 112: echo Form::text('name', ['-wrapper-class' => 'white', 'placeholder' => 'Enter a name']);
Line 120: </form>

/sprout/views/admin/generic_export.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 21: Form::setData([
Line 22: 'format' => 'csv',
Line 31: <form action="SITE/admin/export_action/<?php echo $controller_name; ?>" method="post">
Line 37: Form::nextFieldDetails('Format', true);
Line 38: echo Form::multiradio('format', [], ['csv' => 'CSV spreadsheet', 'xml' => 'XML']);
Line 44: </form>

/sprout/views/admin/generic_export.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 21: Form::setData([
Line 22: 'format' => 'csv',
Line 31: <form action="SITE/admin/export_action/<?php echo $controller_name; ?>" method="post">
Line 37: Form::nextFieldDetails('Format', true);
Line 38: echo Form::multiradio('format', [], ['csv' => 'CSV spreadsheet', 'xml' => 'XML']);
Line 44: </form>

/sprout/views/admin/generic_import.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 23: Form::setData($data);
Line 27: <form action="SITE/admin/import_action/<?php echo $controller_name; ?>" method="post">
Line 57: Form::nextFieldDetails('Duplicates', true);
Line 58: echo Form::multiradio('duplicates', [], [
Line 67: Form::nextFieldDetails('Match duplicates on', true);
Line 68: echo Form::dropdown('match_field', [], $import_columns);
Line 79: </form>

/sprout/views/admin/generic_import.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 23: Form::setData($data);
Line 27: <form action="SITE/admin/import_action/<?php echo $controller_name; ?>" method="post">
Line 57: Form::nextFieldDetails('Duplicates', true);
Line 58: echo Form::multiradio('duplicates', [], [
Line 67: Form::nextFieldDetails('Match duplicates on', true);
Line 68: echo Form::dropdown('match_field', [], $import_columns);
Line 79: </form>

/sprout/views/admin/import_upload.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 21: ? 'The selected file must be in the CSV or Microsoft Excel (XLS) file formats'
Line 22: : 'The selected file must be in the CSV file format'
Line 27: <form action="SITE/admin/import_upload_action/<?php echo $type; ?>" method="post" enctype="multipart/form-data">
Line 31: Form::nextFieldDetails('File', true, $helptext);
Line 32: echo Form::upload('import');
Line 39: </form>

/sprout/views/admin/import_upload.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 21: ? 'The selected file must be in the CSV or Microsoft Excel (XLS) file formats'
Line 22: : 'The selected file must be in the CSV file format'
Line 27: <form action="SITE/admin/import_upload_action/<?php echo $type; ?>" method="post" enctype="multipart/form-data">
Line 31: Form::nextFieldDetails('File', true, $helptext);
Line 32: echo Form::upload('import');
Line 39: </form>

/sprout/views/admin/link_checker.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 21: Form::setData(['send_to' => 'admins', 'email' => $email]);
Line 27: $('#main-form input[name=send_to]').change(function() {
Line 28: $('#main-form .group').hide();
Line 29: $('#main-form .group-' + $(this).val()).show();
Line 35: <form action="SITE/admin/call/page/linkCheckerAction" method="post" id="main-form">
Line 39: Form::nextFieldDetails('Send to', true);
Line 40: echo Form::multiradio('send_to', [], [
Line 64: <?php Form::nextFieldDetails('Email address', true); ?>
Line 65: <?= Form::text('email'); ?>
Line 72: </form>

/sprout/views/admin/link_checker.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 21: Form::setData(['send_to' => 'admins', 'email' => $email]);
Line 27: $('#main-form input[name=send_to]').change(function() {
Line 28: $('#main-form .group').hide();
Line 29: $('#main-form .group-' + $(this).val()).show();
Line 35: <form action="SITE/admin/call/page/linkCheckerAction" method="post" id="main-form">
Line 39: Form::nextFieldDetails('Send to', true);
Line 40: echo Form::multiradio('send_to', [], [
Line 64: <?php Form::nextFieldDetails('Email address', true); ?>
Line 65: <?= Form::text('email'); ?>
Line 72: </form>

/sprout/views/admin/my_settings/details.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 22: <form action="admin/call/my_settings/detailsAction" method="post">
Line 26: Form::nextFieldDetails('Real name', true);
Line 27: echo Form::text('name');
Line 31: Form::nextFieldDetails('Email', true);
Line 32: echo Form::text('email');
Line 39: Form::nextFieldDetails('Current password', true);
Line 40: echo Form::password('old_password');
Line 46: Form::nextFieldDetails('Enter new password', true);
Line 47: echo Form::password('password1', ['autocomplete' => 'off']);
Line 52: Form::nextFieldDetails('Enter it again', true);
Line 53: echo Form::password('password2', ['autocomplete' => 'off']);
Line 62: </form>

/sprout/views/admin/my_settings/details.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 22: <form action="admin/call/my_settings/detailsAction" method="post">
Line 26: Form::nextFieldDetails('Real name', true);
Line 27: echo Form::text('name');
Line 31: Form::nextFieldDetails('Email', true);
Line 32: echo Form::text('email');
Line 39: Form::nextFieldDetails('Current password', true);
Line 40: echo Form::password('old_password');
Line 46: Form::nextFieldDetails('Enter new password', true);
Line 47: echo Form::password('password1', ['autocomplete' => 'off']);
Line 52: Form::nextFieldDetails('Enter it again', true);
Line 53: echo Form::password('password2', ['autocomplete' => 'off']);
Line 62: </form>

/sprout/views/admin/operator_add.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 21: Form::setData($data);
Line 22: Form::setErrors($errors);
Line 29: Form::nextFieldDetails('Real name', true);
Line 30: echo Form::text('name');
Line 34: Form::nextFieldDetails('Email', true);
Line 35: echo Form::text('email');
Line 39: Form::nextFieldDetails('Username', true, 'Must be a single word, only letters and numbers allowed');
Line 40: echo Form::text('username');
Line 47: Form::nextFieldDetails('Enter new password', true);
Line 48: echo Form::password('password1', ['autocomplete' => 'off']);
Line 53: Form::nextFieldDetails('Enter it again', true);
Line 54: echo Form::password('password2', ['autocomplete' => 'off']);
Line 60: <?= Form::checkboxSet('categories', [], $cats); ?>

/sprout/views/admin/operator_add.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 21: Form::setData($data);
Line 22: Form::setErrors($errors);
Line 29: Form::nextFieldDetails('Real name', true);
Line 30: echo Form::text('name');
Line 34: Form::nextFieldDetails('Email', true);
Line 35: echo Form::text('email');
Line 39: Form::nextFieldDetails('Username', true, 'Must be a single word, only letters and numbers allowed');
Line 40: echo Form::text('username');
Line 47: Form::nextFieldDetails('Enter new password', true);
Line 48: echo Form::password('password1', ['autocomplete' => 'off']);
Line 53: Form::nextFieldDetails('Enter it again', true);
Line 54: echo Form::password('password2', ['autocomplete' => 'off']);
Line 60: <?= Form::checkboxSet('categories', [], $cats); ?>

/sprout/views/admin/operator_category_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 22: Form::setData($data);
Line 23: Form::setErrors($errors);
Line 27: <?= Form::text('name'); ?>
Line 32: <?= Form::checkboxList([
Line 38: Form::nextFieldDetails('Restrict access to specific IPs', false, 'Enter a comma-separated list of IP addresses or CIDR blocks that are allowed access.<br>Leave blank to have no restriction.');
Line 39: echo Form::text('allowed_ips');
Line 45: <?= Form::checkboxList([
Line 58: <?= Form::multiradio('default_allow', [], [
Line 69: Form::nextFieldDetails('For the tab', false);
Line 70: echo Form::dropdown('m_controller', [], $controllers);
Line 75: Form::nextFieldDetails('Allow the operator to', false);
Line 76: echo Form::checkboxList([
Line 101: <?= Form::multiradio('access_all_subsites', [], [
Line 106: <?php Form::nextFieldDetails('Sub-site categories', false); ?>
Line 107: <?= Form::checkboxSet('subsites_permitted', [], $subsites); ?>
Line 118: <?php Form::nextFieldDetails('Categories', false); ?>
Line 119: <?= Form::checkboxSet('manage_categories', [], Pdb::lookup('operators_cat_list')); ?>

/sprout/views/admin/operator_category_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 22: Form::setData($data);
Line 23: Form::setErrors($errors);
Line 27: <?= Form::text('name'); ?>
Line 32: <?= Form::checkboxList([
Line 38: Form::nextFieldDetails('Restrict access to specific IPs', false, 'Enter a comma-separated list of IP addresses or CIDR blocks that are allowed access.<br>Leave blank to have no restriction.');
Line 39: echo Form::text('allowed_ips');
Line 45: <?= Form::checkboxList([
Line 58: <?= Form::multiradio('default_allow', [], [
Line 69: Form::nextFieldDetails('For the tab', false);
Line 70: echo Form::dropdown('m_controller', [], $controllers);
Line 75: Form::nextFieldDetails('Allow the operator to', false);
Line 76: echo Form::checkboxList([
Line 101: <?= Form::multiradio('access_all_subsites', [], [
Line 106: <?php Form::nextFieldDetails('Sub-site categories', false); ?>
Line 107: <?= Form::checkboxSet('subsites_permitted', [], $subsites); ?>
Line 118: <?php Form::nextFieldDetails('Categories', false); ?>
Line 119: <?= Form::checkboxSet('manage_categories', [], Pdb::lookup('operators_cat_list')); ?>

/sprout/views/admin/operator_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 21: Form::setData($data);
Line 22: Form::setErrors($errors);
Line 37: Form::nextFieldDetails('Username', true, 'Must be a single word, only letters and numbers allowed');
Line 38: echo Form::text('username');
Line 42: Form::nextFieldDetails('Real name', true);
Line 43: echo Form::text('name');
Line 47: Form::nextFieldDetails('Email', true);
Line 48: echo Form::text('email');
Line 58: Form::nextFieldDetails('Enter new password', true);
Line 59: echo Form::password('password1', ['autocomplete' => 'off']);
Line 64: Form::nextFieldDetails('Enter it again', true);
Line 65: echo Form::password('password2', ['autocomplete' => 'off']);
Line 73: <?= Form::checkboxSet('categories', [], $cats); ?>

/sprout/views/admin/operator_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 21: Form::setData($data);
Line 22: Form::setErrors($errors);
Line 37: Form::nextFieldDetails('Username', true, 'Must be a single word, only letters and numbers allowed');
Line 38: echo Form::text('username');
Line 42: Form::nextFieldDetails('Real name', true);
Line 43: echo Form::text('name');
Line 47: Form::nextFieldDetails('Email', true);
Line 48: echo Form::text('email');
Line 58: Form::nextFieldDetails('Enter new password', true);
Line 59: echo Form::password('password1', ['autocomplete' => 'off']);
Line 64: Form::nextFieldDetails('Enter it again', true);
Line 65: echo Form::password('password2', ['autocomplete' => 'off']);
Line 73: <?= Form::checkboxSet('categories', [], $cats); ?>

/sprout/views/admin/page_add.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 27: Form::setData($data);
Line 28: Form::setErrors($errors);
Line 37: Form::nextFieldDetails('Name', true, 'This name will appear as the primary heading of this page, and will also be used in your navigation and sitemap');
Line 38: echo Form::text('name', ['-wrapper-class' => 'white', 'spellcheck' => 'true']);
Line 42: Form::nextFieldDetails('Parent page', false, 'The location in your navigation where this page will be displayed');
Line 43: echo Form::pageDropdown('parent_id', ['-wrapper-class' => 'white']);
Line 47: <?php Form::nextFieldDetails('Module', true); ?>
Line 48: <?= Form::dropdown('controller_entrance', ['-wrapper-class' => 'white'], $front_end_controllers); ?>
Line 50: <?php Form::nextFieldDetails('Option', true); ?>
Line 51: <?= Form::dropdown('controller_argument', ['-wrapper-class' => 'white'], $controller_arguments); ?>
Line 56: Form::nextFieldDetails('Menu group', false, 'The group to place this page into in the main navigation menu');
Line 57: echo Form::dropdown('menu_group', ['-dropdown-top' => 'None -- Top level page', '-wrapper-class' => 'white'], NavigationGroups::getAllNamesAdmin());
Line 62: Form::nextFieldDetails('Search engine description', false, 'The description to show in search results from search engines like Google. Treat it as an advertisement for this page');
Line 63: echo Form::text('meta_description', ['-wrapper-class' => 'white', 'spellcheck' => 'true']);
Line 71: echo Form::multiradio('user_perm_specific', [], [
Line 78: echo Form::checkboxSet('user_permissions[]', [], $user_category_options);
Line 87: echo Form::multiradio('admin_perm_specific', [], [
Line 94: echo Form::checkboxSet('admin_permissions[]', [], $admin_category_options);

/sprout/views/admin/page_add.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 27: Form::setData($data);
Line 28: Form::setErrors($errors);
Line 37: Form::nextFieldDetails('Name', true, 'This name will appear as the primary heading of this page, and will also be used in your navigation and sitemap');
Line 38: echo Form::text('name', ['-wrapper-class' => 'white', 'spellcheck' => 'true']);
Line 42: Form::nextFieldDetails('Parent page', false, 'The location in your navigation where this page will be displayed');
Line 43: echo Form::pageDropdown('parent_id', ['-wrapper-class' => 'white']);
Line 47: <?php Form::nextFieldDetails('Module', true); ?>
Line 48: <?= Form::dropdown('controller_entrance', ['-wrapper-class' => 'white'], $front_end_controllers); ?>
Line 50: <?php Form::nextFieldDetails('Option', true); ?>
Line 51: <?= Form::dropdown('controller_argument', ['-wrapper-class' => 'white'], $controller_arguments); ?>
Line 56: Form::nextFieldDetails('Menu group', false, 'The group to place this page into in the main navigation menu');
Line 57: echo Form::dropdown('menu_group', ['-dropdown-top' => 'None -- Top level page', '-wrapper-class' => 'white'], NavigationGroups::getAllNamesAdmin());
Line 62: Form::nextFieldDetails('Search engine description', false, 'The description to show in search results from search engines like Google. Treat it as an advertisement for this page');
Line 63: echo Form::text('meta_description', ['-wrapper-class' => 'white', 'spellcheck' => 'true']);
Line 71: echo Form::multiradio('user_perm_specific', [], [
Line 78: echo Form::checkboxSet('user_permissions[]', [], $user_category_options);
Line 87: echo Form::multiradio('admin_perm_specific', [], [
Line 94: echo Form::checkboxSet('admin_permissions[]', [], $admin_category_options);

/sprout/views/admin/page_add_save.php   Highlighted file source

Line 2: use Sprout\Helpers\Form;
Line 9: Form::nextFieldDetails('Visibility', false);
Line 10: echo Form::checkboxBoolList(null, [], [

/sprout/views/admin/page_add_save.php   Highlighted file source

Line 2: use Sprout\Helpers\Form;
Line 9: Form::nextFieldDetails('Visibility', false);
Line 10: echo Form::checkboxBoolList(null, [], [

/sprout/views/admin/page_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 21: use Sprout\Helpers\Form;
Line 67: Form::setData($data);
Line 68: Form::setErrors($errors);
Line 83: Form::nextFieldDetails('Template', true, 'Overrides the default page container template; e.g. utilise a wide page rather than a column view.');
Line 84: echo Form::dropdown('alt_template', [], $templates);
Line 89: Form::nextFieldDetails('Menu group', false);
Line 90: echo Form::dropdown('menu_group', ['-dropdown-top' => 'None -- Don\'t show in menu'], NavigationGroups::getAllNamesAdmin());
Line 96: Form::nextFieldDetails('Banner', false, 'Overrides the default banner image when the page is viewed.');
Line 97: echo Form::fileSelector('banner', [], ['filter' => FileConstants::TYPE_IMAGE]);
Line 102: Form::nextFieldDetails('Gallery Thumbnail', false, 'A thumbnail for the page when seen in the page gallery.');
Line 103: echo Form::fileSelector('gallery_thumb', [], ['filter' => FileConstants::TYPE_IMAGE]);
Line 110: Form::nextFieldDetails('Auto deactivate', false, 'Automatically hide the page from users after this date.');
Line 111: echo Form::datepicker('date_expire', []);
Line 118: Form::nextFieldDetails('Maximum days before content is stale', false, $help_text);
Line 119: echo Form::text(
Line 132: Form::nextFieldDetails('URL slug', true, 'The text used to generate a link for the page; e.g. "this-is-a-slug" would result in: ' . Sprout::absRoot() . 'this-is-a-slug');
Line 133: echo Form::text('slug', []);
Line 137: Form::nextFieldDetails('Keywords', false, 'Terms that relate to the content on the page; these are important for search relevancy.');
Line 138: echo Form::text('meta_keywords', ['size' => 30]);
Line 142: Form::nextFieldDetails('Description', false, 'A short (under 100 words) summary of the page content.');
Line 143: echo Form::text('meta_description', ['size' => 30]);
Line 148: Form::nextFieldDetails('Web-browser title (defaults to: ' . Navigation::buildBrowserTitle($page['name']) . ')',
Line 153: Form::nextFieldDetails('Web-browser title', false, 'A custom browser title for the page; this will appear in the browser title bar/tab.');
Line 155: echo Form::text('alt_browser_title', ['size' => 30]);
Line 159: Form::nextFieldDetails('Alternate navigation title', false, 'Override the default title that appears in links and navigation breadcrumbs for this page.');
Line 160: echo Form::text('alt_nav_title', ['size' => 30]);
Line 174: echo Form::multiradio('user_perm_specific', [], [
Line 181: echo Form::checkboxSet('user_permissions', [], $user_category_options);
Line 190: echo Form::multiradio('admin_perm_specific', [], [
Line 197: echo Form::checkboxSet('admin_permissions', [], $admin_category_options);
Line 307: <?php Form::nextFieldDetails('Name', true); ?>
Line 308: <?= Form::text('name', ['spellcheck' => 'true', '-wrapper-class' => 'white']); ?>
Line 315: Form::nextFieldDetails('Parent page', false);
Line 316: echo Form::pageDropdown('parent_id', ['-wrapper-class' => 'white']);
Line 323: <?php Form::nextFieldDetails('Module', true, 'The type of tool page to show'); ?>
Line 324: <?php echo Form::dropdown('controller_entrance', [], $front_end_controllers); ?>
Line 326: <?php Form::nextFieldDetails('Feature', true, 'The specific feature of the module to show'); ?>
Line 327: <?php echo Form::dropdown('controller_argument', [], $controller_arguments); ?>

/sprout/views/admin/page_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 21: use Sprout\Helpers\Form;
Line 67: Form::setData($data);
Line 68: Form::setErrors($errors);
Line 83: Form::nextFieldDetails('Template', true, 'Overrides the default page container template; e.g. utilise a wide page rather than a column view.');
Line 84: echo Form::dropdown('alt_template', [], $templates);
Line 89: Form::nextFieldDetails('Menu group', false);
Line 90: echo Form::dropdown('menu_group', ['-dropdown-top' => 'None -- Don\'t show in menu'], NavigationGroups::getAllNamesAdmin());
Line 96: Form::nextFieldDetails('Banner', false, 'Overrides the default banner image when the page is viewed.');
Line 97: echo Form::fileSelector('banner', [], ['filter' => FileConstants::TYPE_IMAGE]);
Line 102: Form::nextFieldDetails('Gallery Thumbnail', false, 'A thumbnail for the page when seen in the page gallery.');
Line 103: echo Form::fileSelector('gallery_thumb', [], ['filter' => FileConstants::TYPE_IMAGE]);
Line 110: Form::nextFieldDetails('Auto deactivate', false, 'Automatically hide the page from users after this date.');
Line 111: echo Form::datepicker('date_expire', []);
Line 118: Form::nextFieldDetails('Maximum days before content is stale', false, $help_text);
Line 119: echo Form::text(
Line 132: Form::nextFieldDetails('URL slug', true, 'The text used to generate a link for the page; e.g. "this-is-a-slug" would result in: ' . Sprout::absRoot() . 'this-is-a-slug');
Line 133: echo Form::text('slug', []);
Line 137: Form::nextFieldDetails('Keywords', false, 'Terms that relate to the content on the page; these are important for search relevancy.');
Line 138: echo Form::text('meta_keywords', ['size' => 30]);
Line 142: Form::nextFieldDetails('Description', false, 'A short (under 100 words) summary of the page content.');
Line 143: echo Form::text('meta_description', ['size' => 30]);
Line 148: Form::nextFieldDetails('Web-browser title (defaults to: ' . Navigation::buildBrowserTitle($page['name']) . ')',
Line 153: Form::nextFieldDetails('Web-browser title', false, 'A custom browser title for the page; this will appear in the browser title bar/tab.');
Line 155: echo Form::text('alt_browser_title', ['size' => 30]);
Line 159: Form::nextFieldDetails('Alternate navigation title', false, 'Override the default title that appears in links and navigation breadcrumbs for this page.');
Line 160: echo Form::text('alt_nav_title', ['size' => 30]);
Line 174: echo Form::multiradio('user_perm_specific', [], [
Line 181: echo Form::checkboxSet('user_permissions', [], $user_category_options);
Line 190: echo Form::multiradio('admin_perm_specific', [], [
Line 197: echo Form::checkboxSet('admin_permissions', [], $admin_category_options);
Line 307: <?php Form::nextFieldDetails('Name', true); ?>
Line 308: <?= Form::text('name', ['spellcheck' => 'true', '-wrapper-class' => 'white']); ?>
Line 315: Form::nextFieldDetails('Parent page', false);
Line 316: echo Form::pageDropdown('parent_id', ['-wrapper-class' => 'white']);
Line 323: <?php Form::nextFieldDetails('Module', true, 'The type of tool page to show'); ?>
Line 324: <?php echo Form::dropdown('controller_entrance', [], $front_end_controllers); ?>
Line 326: <?php Form::nextFieldDetails('Feature', true, 'The specific feature of the module to show'); ?>
Line 327: <?php echo Form::dropdown('controller_argument', [], $controller_arguments); ?>

/sprout/views/admin/page_edit_save.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 12: Form::nextFieldDetails('Publish options', true);
Line 13: echo Form::dropdown('status', ['-dropdown-top' => '', '-wrapper-class' => 'white', 'id' => "publish-options"], [
Line 23: Form::nextFieldDetails('Publish date', false);
Line 24: echo Form::datepicker('date_launch', ['-wrapper-class' => 'small white']);
Line 30: Form::nextFieldDetails('Request approval by', true);
Line 31: echo Form::dropdown('approval_operator_id', ['-dropdown-top' => 'Select a user', '-wrapper-class' => 'small white'], $approval_admins);
Line 36: Form::nextFieldDetails('Describe your changes', false);
Line 37: echo Form::multiline('changes_made', ['-wrapper-class' => 'small white', 'rows' => '3']);
Line 41: Form::nextFieldDetails('Visibility', false);
Line 42: echo Form::checkboxBoolList(null, ['-wrapper-class' => 'white'], [

/sprout/views/admin/page_edit_save.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 12: Form::nextFieldDetails('Publish options', true);
Line 13: echo Form::dropdown('status', ['-dropdown-top' => '', '-wrapper-class' => 'white', 'id' => "publish-options"], [
Line 23: Form::nextFieldDetails('Publish date', false);
Line 24: echo Form::datepicker('date_launch', ['-wrapper-class' => 'small white']);
Line 30: Form::nextFieldDetails('Request approval by', true);
Line 31: echo Form::dropdown('approval_operator_id', ['-dropdown-top' => 'Select a user', '-wrapper-class' => 'small white'], $approval_admins);
Line 36: Form::nextFieldDetails('Describe your changes', false);
Line 37: echo Form::multiline('changes_made', ['-wrapper-class' => 'small white', 'rows' => '3']);
Line 41: Form::nextFieldDetails('Visibility', false);
Line 42: echo Form::checkboxBoolList(null, ['-wrapper-class' => 'white'], [

/sprout/views/admin/page_import_options.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 22: Form::setData(['import_type' => 'none']);
Line 30: <form action="SITE/admin/import_action/page" method="post" id="main-form">
Line 37: Form::nextFieldDetails('Import type', true);
Line 38: echo Form::multiradio('import_type', [], [
Line 45: Form::nextFieldDetails('Parent page', true);
Line 46: echo Form::pageDropdown('parent_id');
Line 53: Form::nextFieldDetails('Page name', true);
Line 54: echo Form::text('page_name');
Line 61: Form::nextFieldDetails('Top-level page name', true);
Line 62: echo Form::text('top_page_name');
Line 66: Form::nextFieldDetails('Create pages for', true);
Line 67: echo Form::pageDropdown('heading_level', [], [
Line 81: </form>

/sprout/views/admin/page_import_options.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 22: Form::setData(['import_type' => 'none']);
Line 30: <form action="SITE/admin/import_action/page" method="post" id="main-form">
Line 37: Form::nextFieldDetails('Import type', true);
Line 38: echo Form::multiradio('import_type', [], [
Line 45: Form::nextFieldDetails('Parent page', true);
Line 46: echo Form::pageDropdown('parent_id');
Line 53: Form::nextFieldDetails('Page name', true);
Line 54: echo Form::text('page_name');
Line 61: Form::nextFieldDetails('Top-level page name', true);
Line 62: echo Form::text('top_page_name');
Line 66: Form::nextFieldDetails('Create pages for', true);
Line 67: echo Form::pageDropdown('heading_level', [], [
Line 81: </form>

/sprout/views/admin/page_import_upload.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 14: use Sprout\Helpers\Form;
Line 18: <form action="admin/call/page/importUploadAction" method="post" enctype="multipart/form-data" class="-clearfix">
Line 58: </form>

/sprout/views/admin/page_import_upload.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 14: use Sprout\Helpers\Form;
Line 18: <form action="admin/call/page/importUploadAction" method="post" enctype="multipart/form-data" class="-clearfix">
Line 58: </form>

/sprout/views/admin/page_menu_groups.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 37: <form action="admin/call/page/menuGroupsAction" method="post">
Line 52: Form::setData(array('extras' => $all_extras));
Line 55: Form::nextFieldDetails('Description', false);
Line 56: echo Form::multiline("extras[{$page_id}][text]", ['rows' => 3, 'cols' => 30], []);
Line 60: Form::nextFieldDetails('Image', false);
Line 61: echo Form::fileselector("extras[{$page_id}][image]", [], ['type' => FileConstants::TYPE_IMAGE]);
Line 66: Form::setData(['groups' => $groups]);
Line 70: Form::nextFieldDetails('Group ' . $index, false);
Line 71: echo Form::text("groups[{$id}][name]");
Line 80: </form>

/sprout/views/admin/page_menu_groups.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 37: <form action="admin/call/page/menuGroupsAction" method="post">
Line 52: Form::setData(array('extras' => $all_extras));
Line 55: Form::nextFieldDetails('Description', false);
Line 56: echo Form::multiline("extras[{$page_id}][text]", ['rows' => 3, 'cols' => 30], []);
Line 60: Form::nextFieldDetails('Image', false);
Line 61: echo Form::fileselector("extras[{$page_id}][image]", [], ['type' => FileConstants::TYPE_IMAGE]);
Line 66: Form::setData(['groups' => $groups]);
Line 70: Form::nextFieldDetails('Group ' . $index, false);
Line 71: echo Form::text("groups[{$id}][name]");
Line 80: </form>

/sprout/views/admin/per_record_perms.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 20: Form::setData(['controllers' => $enabled]);
Line 23: <form method="post" action="admin/call/per_record_permission/save">
Line 27: Form::nextFieldDetails('Please select which tabs should have per-record permissions enabled', false);
Line 28: echo Form::checkboxSet('controllers', [], $controllers);
Line 32: </form>

/sprout/views/admin/per_record_perms.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 20: Form::setData(['controllers' => $enabled]);
Line 23: <form method="post" action="admin/call/per_record_permission/save">
Line 27: Form::nextFieldDetails('Please select which tabs should have per-record permissions enabled', false);
Line 28: echo Form::checkboxSet('controllers', [], $controllers);
Line 32: </form>

/sprout/views/admin/style_guide/conditions_list.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 11: Form::setData($_POST);
Line 13: Form::setData([
Line 25: <form action="" method="post">
Line 27: <h3>Form fields</h3>
Line 30: Form::nextFieldDetails('Example conditions', false);
Line 31: echo Form::conditionsList('conditions', [], [
Line 42: Form::nextFieldDetails('Random text field', false);
Line 43: echo Form::text('random', [], []);
Line 46: <button type="submit" class="button right">Submit form</button>
Line 47: </form>

/sprout/views/admin/style_guide/conditions_list.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 11: Form::setData($_POST);
Line 13: Form::setData([
Line 25: <form action="" method="post">
Line 27: <h3>Form fields</h3>
Line 30: Form::nextFieldDetails('Example conditions', false);
Line 31: echo Form::conditionsList('conditions', [], [
Line 42: Form::nextFieldDetails('Random text field', false);
Line 43: echo Form::text('random', [], []);
Line 46: <button type="submit" class="button right">Submit form</button>
Line 47: </form>

/sprout/views/admin/style_guide/forms.php   Highlighted file source

Line 2: use Sprout\Helpers\Form;
Line 8: $form_attributes = [
Line 24: foreach ($form_attributes as $label => $attributes) {
Line 28: Form::nextFieldDetails('Text', false);
Line 29: echo Form::text('textz', $attributes);
Line 31: Form::nextFieldDetails('Select', false);
Line 32: echo Form::dropdown('dropdown', $attributes, [0 => "Lol", 1 => "Rofl", 2 => "Lmao"]);
Line 34: Form::nextFieldDetails('Select tree', false);
Line 35: echo Form::dropdownTree('dropdown_tree', $attributes, [
Line 40: Form::nextFieldDetails('Number', false);
Line 41: echo Form::number('number', $attributes);
Line 43: Form::nextFieldDetails('Dollars', false);
Line 44: echo Form::money('dollars', $attributes);
Line 46: Form::nextFieldDetails('Range', false);
Line 47: echo Form::range('range', $attributes);
Line 49: Form::nextFieldDetails('Password', false);
Line 50: echo Form::password('password', $attributes);
Line 52: Form::nextFieldDetails('Upload', false);
Line 53: echo Form::upload('upload', $attributes);
Line 55: Form::nextFieldDetails('Email', false);
Line 56: echo Form::email('email', $attributes);
Line 58: Form::nextFieldDetails('Phone', false);
Line 59: echo Form::phone('phone', $attributes);
Line 61: Form::nextFieldDetails('Multiline', false);
Line 62: echo Form::multiline('multiline', $attributes + ['rows' => '5']);
Line 64: Form::nextFieldDetails('Multiradio', false);
Line 65: echo Form::multiradio('multiradio', $attributes, ['box1' => "I'm a checkbox", 'box2' => "Don't judge me"]);
Line 67: Form::nextFieldDetails('Checkbox list', false);
Line 68: echo Form::checkboxBoolList('checkboxList', $attributes, ['box1' => "I'm a checkbox", 'box2' => "Don't judge me"]);
Line 70: Form::nextFieldDetails('Richtext', false);
Line 71: echo Form::richtext('richtext', $attributes);
Line 73: Form::nextFieldDetails('More text', false);
Line 74: echo Form::text('textz', $attributes);
Line 76: Form::nextFieldDetails('Date picker', false);
Line 77: echo Form::datepicker('datepicker', $attributes);
Line 79: Form::nextFieldDetails('Time picker', false);
Line 80: echo Form::timepicker('timepicker', $attributes);
Line 82: Form::nextFieldDetails('Date range picker', false);
Line 83: echo Form::daterangepicker('Depart, Arrive', $attributes);
Line 85: Form::nextFieldDetails('Date/time range picker', false);
Line 86: echo Form::datetimerangepicker('Depart,Arrive', $attributes);
Line 88: Form::nextFieldDetails('Date/time picker', false);
Line 89: echo Form::datetimepicker('datetimepicker', $attributes);
Line 91: Form::nextFieldDetails('Simple date range picker', false);
Line 92: echo Form::simpledaterangepicker('simpledatestart,simpledateend', $attributes);
Line 94: Form::nextFieldDetails('Colour picker', false);
Line 95: echo Form::colorpicker('colorpicker', $attributes);
Line 97: Form::nextFieldDetails('Total selector', false);
Line 98: echo Form::totalselector('totalselector', $attributes, [
Line 116: Form::nextFieldDetails('Random code field', false);
Line 117: echo Form::randomCode('randomCode', $attributes);

/sprout/views/admin/style_guide/forms.php   Highlighted file source

Line 2: use Sprout\Helpers\Form;
Line 8: $form_attributes = [
Line 24: foreach ($form_attributes as $label => $attributes) {
Line 28: Form::nextFieldDetails('Text', false);
Line 29: echo Form::text('textz', $attributes);
Line 31: Form::nextFieldDetails('Select', false);
Line 32: echo Form::dropdown('dropdown', $attributes, [0 => "Lol", 1 => "Rofl", 2 => "Lmao"]);
Line 34: Form::nextFieldDetails('Select tree', false);
Line 35: echo Form::dropdownTree('dropdown_tree', $attributes, [
Line 40: Form::nextFieldDetails('Number', false);
Line 41: echo Form::number('number', $attributes);
Line 43: Form::nextFieldDetails('Dollars', false);
Line 44: echo Form::money('dollars', $attributes);
Line 46: Form::nextFieldDetails('Range', false);
Line 47: echo Form::range('range', $attributes);
Line 49: Form::nextFieldDetails('Password', false);
Line 50: echo Form::password('password', $attributes);
Line 52: Form::nextFieldDetails('Upload', false);
Line 53: echo Form::upload('upload', $attributes);
Line 55: Form::nextFieldDetails('Email', false);
Line 56: echo Form::email('email', $attributes);
Line 58: Form::nextFieldDetails('Phone', false);
Line 59: echo Form::phone('phone', $attributes);
Line 61: Form::nextFieldDetails('Multiline', false);
Line 62: echo Form::multiline('multiline', $attributes + ['rows' => '5']);
Line 64: Form::nextFieldDetails('Multiradio', false);
Line 65: echo Form::multiradio('multiradio', $attributes, ['box1' => "I'm a checkbox", 'box2' => "Don't judge me"]);
Line 67: Form::nextFieldDetails('Checkbox list', false);
Line 68: echo Form::checkboxBoolList('checkboxList', $attributes, ['box1' => "I'm a checkbox", 'box2' => "Don't judge me"]);
Line 70: Form::nextFieldDetails('Richtext', false);
Line 71: echo Form::richtext('richtext', $attributes);
Line 73: Form::nextFieldDetails('More text', false);
Line 74: echo Form::text('textz', $attributes);
Line 76: Form::nextFieldDetails('Date picker', false);
Line 77: echo Form::datepicker('datepicker', $attributes);
Line 79: Form::nextFieldDetails('Time picker', false);
Line 80: echo Form::timepicker('timepicker', $attributes);
Line 82: Form::nextFieldDetails('Date range picker', false);
Line 83: echo Form::daterangepicker('Depart, Arrive', $attributes);
Line 85: Form::nextFieldDetails('Date/time range picker', false);
Line 86: echo Form::datetimerangepicker('Depart,Arrive', $attributes);
Line 88: Form::nextFieldDetails('Date/time picker', false);
Line 89: echo Form::datetimepicker('datetimepicker', $attributes);
Line 91: Form::nextFieldDetails('Simple date range picker', false);
Line 92: echo Form::simpledaterangepicker('simpledatestart,simpledateend', $attributes);
Line 94: Form::nextFieldDetails('Colour picker', false);
Line 95: echo Form::colorpicker('colorpicker', $attributes);
Line 97: Form::nextFieldDetails('Total selector', false);
Line 98: echo Form::totalselector('totalselector', $attributes, [
Line 116: Form::nextFieldDetails('Random code field', false);
Line 117: echo Form::randomCode('randomCode', $attributes);

/sprout/views/admin/style_guide/index.php   Highlighted file source

Line 3: <a href="admin/style_guide/forms" class="button">Forms</a>

/sprout/views/admin/style_guide/index.php   Highlighted file source

Line 3: <a href="admin/style_guide/forms" class="button">Forms</a>

/sprout/views/admin/style_guide/multiedit.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 15: <form action="" method="post">
Line 20: Form::nextFieldDetails('Name', true);
Line 21: echo Form::text('m_name', [], []);
Line 26: Form::nextFieldDetails('DOB', true);
Line 27: echo Form::datepicker('m_dob', [], []);
Line 32: Form::nextFieldDetails('Photo', true);
Line 33: echo Form::fileSelector('m_photo', [], []);
Line 43: <button type="submit" class="button right">Submit form</button>
Line 44: </form>

/sprout/views/admin/style_guide/multiedit.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 15: <form action="" method="post">
Line 20: Form::nextFieldDetails('Name', true);
Line 21: echo Form::text('m_name', [], []);
Line 26: Form::nextFieldDetails('DOB', true);
Line 27: echo Form::datepicker('m_dob', [], []);
Line 32: Form::nextFieldDetails('Photo', true);
Line 33: echo Form::fileSelector('m_photo', [], []);
Line 43: <button type="submit" class="button right">Submit form</button>
Line 44: </form>

/sprout/views/admin/style_guide/richtext.php   Highlighted file source

Line 2: use Sprout\Helpers\Form;
Line 29: echo Form::richtext('richtext', []);

/sprout/views/admin/style_guide/richtext.php   Highlighted file source

Line 2: use Sprout\Helpers\Form;
Line 29: echo Form::richtext('richtext', []);

/sprout/views/admin/subsite_add.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 22: Form::setData($data);
Line 23: Form::setErrors($errors);
Line 28: Form::nextFieldDetails('Name', false);
Line 29: echo Form::text('name', ['spellcheck' => 'true']);
Line 33: Form::nextFieldDetails('Skin code', false);
Line 34: echo Form::dropdown('code', [], $codes);
Line 47: Form::nextFieldDetails('Shared content', false);
Line 48: echo Form::dropdown('content_id', [], $subsites);
Line 56: Form::nextFieldDetails('Domain is one of', false);
Line 57: echo Form::multiline('cond_domain', ['style' => 'height: 75px;']);
Line 61: Form::nextFieldDetails('Directory matches', false);
Line 62: echo Form::text('cond_directory');

/sprout/views/admin/subsite_add.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 22: Form::setData($data);
Line 23: Form::setErrors($errors);
Line 28: Form::nextFieldDetails('Name', false);
Line 29: echo Form::text('name', ['spellcheck' => 'true']);
Line 33: Form::nextFieldDetails('Skin code', false);
Line 34: echo Form::dropdown('code', [], $codes);
Line 47: Form::nextFieldDetails('Shared content', false);
Line 48: echo Form::dropdown('content_id', [], $subsites);
Line 56: Form::nextFieldDetails('Domain is one of', false);
Line 57: echo Form::multiline('cond_domain', ['style' => 'height: 75px;']);
Line 61: Form::nextFieldDetails('Directory matches', false);
Line 62: echo Form::text('cond_directory');

/sprout/views/admin/subsite_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 22: Form::setData($data);
Line 23: Form::setErrors($errors);
Line 28: Form::nextFieldDetails('Name', false);
Line 29: echo Form::text('name', ['spellcheck' => 'true']);
Line 33: Form::nextFieldDetails('Skin code', false);
Line 34: echo Form::dropdown('code', [], $codes);
Line 48: Form::nextFieldDetails('Shared content', false);
Line 49: echo Form::dropdown('content_id', [], $subsites);
Line 57: Form::nextFieldDetails('Domain is one of', false);
Line 58: echo Form::multiline('cond_domain', ['style' => 'height: 75px;']);
Line 62: Form::nextFieldDetails('Directory matches', false);
Line 63: echo Form::text('cond_directory');

/sprout/views/admin/subsite_edit.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 22: Form::setData($data);
Line 23: Form::setErrors($errors);
Line 28: Form::nextFieldDetails('Name', false);
Line 29: echo Form::text('name', ['spellcheck' => 'true']);
Line 33: Form::nextFieldDetails('Skin code', false);
Line 34: echo Form::dropdown('code', [], $codes);
Line 48: Form::nextFieldDetails('Shared content', false);
Line 49: echo Form::dropdown('content_id', [], $subsites);
Line 57: Form::nextFieldDetails('Domain is one of', false);
Line 58: echo Form::multiline('cond_domain', ['style' => 'height: 75px;']);
Line 62: Form::nextFieldDetails('Directory matches', false);
Line 63: echo Form::text('cond_directory');

/sprout/views/admin/widget_disp_conds.php   Highlighted file source

Line 2: use Sprout\Helpers\Form;
Line 14: <form action="javascript:;" method="post" class="js--widget-conds-form">
Line 19: Form::nextFieldDetails('Conditions', true);
Line 20: echo Form::conditionsList('conds', [], $cond_list_params);
Line 29: </form>

/sprout/views/admin/widget_disp_conds.php   Highlighted file source

Line 2: use Sprout\Helpers\Form;
Line 14: <form action="javascript:;" method="post" class="js--widget-conds-form">
Line 19: Form::nextFieldDetails('Conditions', true);
Line 20: echo Form::conditionsList('conds', [], $cond_list_params);
Line 29: </form>

/sprout/views/admin/worker_job_manual_run.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 13: <form action="admin/call/worker_job/manualRunAction" method="post">
Line 17: Form::nextFieldDetails('Worker class', true, 'This must include the namespace');
Line 18: echo Form::text('class_name', ['placeholder' => 'e.g. Sprout\\Helpers\\WorkerLinkChecker'], []);
Line 22: Form::nextFieldDetails('Arguments', false, 'Provide this as a JSON array');
Line 23: echo Form::multiline('args', ['placeholder' => 'e.g. [ "test@example.com" ]', 'rows' => 5], []);
Line 30: </form>

/sprout/views/admin/worker_job_manual_run.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 13: <form action="admin/call/worker_job/manualRunAction" method="post">
Line 17: Form::nextFieldDetails('Worker class', true, 'This must include the namespace');
Line 18: echo Form::text('class_name', ['placeholder' => 'e.g. Sprout\\Helpers\\WorkerLinkChecker'], []);
Line 22: Form::nextFieldDetails('Arguments', false, 'Provide this as a JSON array');
Line 23: echo Form::multiline('args', ['placeholder' => 'e.g. [ "test@example.com" ]', 'rows' => 5], []);
Line 30: </form>

/sprout/views/advanced_search_form.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 25: Form::setData($_GET);
Line 34: <form action="SITE/advanced_search" method="get">
Line 36: <?php Form::nextFieldDetails('Find', false); ?>
Line 37: <?= Form::checkboxSet('type', [], $avail_types); ?>
Line 39: <?php Form::nextFieldDetails('Terms', false); ?>
Line 40: <?= Form::text('q'); ?>
Line 42: <?= Form::multiradio('q_type', [], Constants::$search_modifiers); ?>
Line 44: <?php Form::nextFieldDetails('Tags', false); ?>
Line 45: <?= Form::text('tag', ['id' => 'tags-text', 'autocomplete' => 'off']); ?>
Line 59: <?= Form::multiradio('tag_type', [], Constants::$search_modifiers); ?>
Line 61: <?php Form::setDropdownTop('Any date'); ?>
Line 62: <?php Form::nextFieldDetails('Last modified', false); ?>
Line 63: <?= Form::dropdown('date', [], Constants::$relative_dates); ?>
Line 70: </form>

/sprout/views/advanced_search_form.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 25: Form::setData($_GET);
Line 34: <form action="SITE/advanced_search" method="get">
Line 36: <?php Form::nextFieldDetails('Find', false); ?>
Line 37: <?= Form::checkboxSet('type', [], $avail_types); ?>
Line 39: <?php Form::nextFieldDetails('Terms', false); ?>
Line 40: <?= Form::text('q'); ?>
Line 42: <?= Form::multiradio('q_type', [], Constants::$search_modifiers); ?>
Line 44: <?php Form::nextFieldDetails('Tags', false); ?>
Line 45: <?= Form::text('tag', ['id' => 'tags-text', 'autocomplete' => 'off']); ?>
Line 59: <?= Form::multiradio('tag_type', [], Constants::$search_modifiers); ?>
Line 61: <?php Form::setDropdownTop('Any date'); ?>
Line 62: <?php Form::nextFieldDetails('Last modified', false); ?>
Line 63: <?= Form::dropdown('date', [], Constants::$relative_dates); ?>
Line 70: </form>

/sprout/views/auto_edit.php   Highlighted file source

Line 5: use Sprout\Helpers\Form;
Line 6: use Sprout\Helpers\JsonForm;
Line 10: Form::setData($data);
Line 11: Form::setErrors($errors);
Line 33: echo JsonForm::renderTabItem($item, $for, $id, $data, $errors);

/sprout/views/auto_edit.php   Highlighted file source

Line 5: use Sprout\Helpers\Form;
Line 6: use Sprout\Helpers\JsonForm;
Line 10: Form::setData($data);
Line 11: Form::setErrors($errors);
Line 33: echo JsonForm::renderTabItem($item, $for, $id, $data, $errors);

/sprout/views/components/fb_google_map.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 28: Form::nextFieldDetails('', false);
Line 29: echo Form::text('fb-google-map--search-name', ['-wrapper-class' => 'white', 'placeholder' => 'Search...', 'id' => 'fb-google-map--search-name', 'class' => 'fb-google-map--search-name']);

/sprout/views/components/fb_google_map.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 28: Form::nextFieldDetails('', false);
Line 29: echo Form::text('fb-google-map--search-name', ['-wrapper-class' => 'white', 'placeholder' => 'Search...', 'id' => 'fb-google-map--search-name', 'class' => 'fb-google-map--search-name']);

/sprout/views/components/lnk_editform.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 27: <?php Form::nextFieldDetails('Link type', false); ?>
Line 28: <?php echo Form::dropdown('lnk-type', ['class' => 'lnk-type'], $specs); ?>
Line 30: <div class="lnk-form"></div>

/sprout/views/components/lnk_editform.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 27: <?php Form::nextFieldDetails('Link type', false); ?>
Line 28: <?php echo Form::dropdown('lnk-type', ['class' => 'lnk-type'], $specs); ?>
Line 30: <div class="lnk-form"></div>

/sprout/views/dbtools/db_struct.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 6: Form::setData($_GET);
Line 9: <form action="" method="get" class="field-group-wrap -clearfix">
Line 13: Form::nextFieldDetails('Search', true);
Line 14: echo Form::text('search');
Line 22: </form>

/sprout/views/dbtools/db_struct.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 6: Form::setData($_GET);
Line 9: <form action="" method="get" class="field-group-wrap -clearfix">
Line 13: Form::nextFieldDetails('Search', true);
Line 14: echo Form::text('search');
Line 22: </form>

/sprout/views/dbtools/exception_details.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 5: Form::setData([
Line 67: <form action="dbtools/exceptionDetail" method="get" class="-clearfix">
Line 70: echo Form::text('id', ['placeholder' => 'SE2400']);
Line 76: </form>

/sprout/views/dbtools/exception_details.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 5: Form::setData([
Line 67: <form action="dbtools/exceptionDetail" method="get" class="-clearfix">
Line 70: echo Form::text('id', ['placeholder' => 'SE2400']);
Line 76: </form>

/sprout/views/dbtools/exception_log.php   Highlighted file source

Line 4: use Sprout\Helpers\Form;
Line 6: Form::setData($_GET);
Line 11: <form action="" method="get" class="white-box">
Line 17: Form::nextFieldDetails('Class', false);
Line 18: echo Form::text('class', ['-wrapper-class' => 'white']);
Line 24: Form::nextFieldDetails('Message', false);
Line 25: echo Form::text('message', ['-wrapper-class' => 'white']);
Line 31: Form::nextFieldDetails('Show', false);
Line 32: echo Form::checkboxBoolList('include_404', ['-wrapper-class' => 'white'], [
Line 43: </form>
Line 74: <form action="dbtools/exceptionDetail" method="get" class="-clearfix">
Line 77: echo Form::text('id', ['placeholder' => 'SE2400']);
Line 83: </form>

/sprout/views/dbtools/exception_log.php   Highlighted file source

Line 4: use Sprout\Helpers\Form;
Line 6: Form::setData($_GET);
Line 11: <form action="" method="get" class="white-box">
Line 17: Form::nextFieldDetails('Class', false);
Line 18: echo Form::text('class', ['-wrapper-class' => 'white']);
Line 24: Form::nextFieldDetails('Message', false);
Line 25: echo Form::text('message', ['-wrapper-class' => 'white']);
Line 31: Form::nextFieldDetails('Show', false);
Line 32: echo Form::checkboxBoolList('include_404', ['-wrapper-class' => 'white'], [
Line 43: </form>
Line 74: <form action="dbtools/exceptionDetail" method="get" class="-clearfix">
Line 77: echo Form::text('id', ['placeholder' => 'SE2400']);
Line 83: </form>

/sprout/views/dbtools/import_xml.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 6: <form action="SITE/dbtools/importXmlAction" method="post" enctype="multipart/form-data">
Line 13: Form::nextFieldDetails('Sub-site', true, 'Select sub-site to import into');
Line 14: echo Form::dropdown('subsite_id', [], $subsites);
Line 22: Form::nextFieldDetails('XML file', true, 'Sprout 2\'s CMS export XML');
Line 23: echo Form::upload('filename');
Line 40: </form>

/sprout/views/dbtools/import_xml.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 6: <form action="SITE/dbtools/importXmlAction" method="post" enctype="multipart/form-data">
Line 13: Form::nextFieldDetails('Sub-site', true, 'Select sub-site to import into');
Line 14: echo Form::dropdown('subsite_id', [], $subsites);
Line 22: Form::nextFieldDetails('XML file', true, 'Sprout 2\'s CMS export XML');
Line 23: echo Form::upload('filename');
Line 40: </form>

/sprout/views/dbtools/module_builder.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 80: <form action="SITE/dbtools/moduleBuilderAction" method="post">
Line 84: <?php echo Form::heading('Module'); ?>
Line 88: <?php Form::nextFieldDetails('Prefill', false, 'Available modules'); ?>
Line 89: <?php echo Form::dropdown('module-choice', ['id' => 'module-choice', '-wrapper-class' => 'white'], $modules); ?>
Line 93: <?php Form::nextFieldDetails('Module author', true, 'CamelCaps'); ?>
Line 94: <?php echo Form::text('module_author', ['-wrapper-class' => 'white']); ?>
Line 98: <?php Form::nextFieldDetails('Module name', true, 'CamelCaps'); ?>
Line 99: <?php echo Form::text('module_name', ['-wrapper-class' => 'white']); ?>
Line 103: <?php echo Form::heading('Controller'); ?>
Line 107: <?php Form::nextFieldDetails('Template', true, 'Controller type'); ?>
Line 108: <?php echo Form::dropdown('module_type', ['-wrapper-class' => 'white'], $templates); ?>
Line 111: <?php Form::nextFieldDetails('Controller name', true, 'Singular'); ?>
Line 112: <?php echo Form::text('cname', ['-wrapper-class' => 'white']); ?>
Line 119: <?php Form::nextFieldDetails('Single name', true, 'Subtable name'); ?>
Line 120: <?php echo Form::text('sname', ['-wrapper-class' => 'white']); ?>
Line 124: <?php Form::nextFieldDetails('Single label', true, 'Human name'); ?>
Line 125: <?php echo Form::text('snice', ['-wrapper-class' => 'white']); ?>
Line 131: <?php Form::nextFieldDetails('Plural name', true, 'Table name'); ?>
Line 132: <?php echo Form::text('pname', ['-wrapper-class' => 'white']); ?>
Line 136: <?php Form::nextFieldDetails('Plural label', true, 'Human name'); ?>
Line 137: <?php echo Form::text('pnice', ['-wrapper-class' => 'white']); ?>
Line 141: <?php echo Form::heading('Fields'); ?>
Line 145: <?php Form::nextFieldDetails('Fields', false, 'One per line'); ?>
Line 146: <?php echo Form::multiline('fields', ['-wrapper-class' => 'white', 'rows' => 13]); ?>
Line 172: </form>

/sprout/views/dbtools/module_builder.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 80: <form action="SITE/dbtools/moduleBuilderAction" method="post">
Line 84: <?php echo Form::heading('Module'); ?>
Line 88: <?php Form::nextFieldDetails('Prefill', false, 'Available modules'); ?>
Line 89: <?php echo Form::dropdown('module-choice', ['id' => 'module-choice', '-wrapper-class' => 'white'], $modules); ?>
Line 93: <?php Form::nextFieldDetails('Module author', true, 'CamelCaps'); ?>
Line 94: <?php echo Form::text('module_author', ['-wrapper-class' => 'white']); ?>
Line 98: <?php Form::nextFieldDetails('Module name', true, 'CamelCaps'); ?>
Line 99: <?php echo Form::text('module_name', ['-wrapper-class' => 'white']); ?>
Line 103: <?php echo Form::heading('Controller'); ?>
Line 107: <?php Form::nextFieldDetails('Template', true, 'Controller type'); ?>
Line 108: <?php echo Form::dropdown('module_type', ['-wrapper-class' => 'white'], $templates); ?>
Line 111: <?php Form::nextFieldDetails('Controller name', true, 'Singular'); ?>
Line 112: <?php echo Form::text('cname', ['-wrapper-class' => 'white']); ?>
Line 119: <?php Form::nextFieldDetails('Single name', true, 'Subtable name'); ?>
Line 120: <?php echo Form::text('sname', ['-wrapper-class' => 'white']); ?>
Line 124: <?php Form::nextFieldDetails('Single label', true, 'Human name'); ?>
Line 125: <?php echo Form::text('snice', ['-wrapper-class' => 'white']); ?>
Line 131: <?php Form::nextFieldDetails('Plural name', true, 'Table name'); ?>
Line 132: <?php echo Form::text('pname', ['-wrapper-class' => 'white']); ?>
Line 136: <?php Form::nextFieldDetails('Plural label', true, 'Human name'); ?>
Line 137: <?php echo Form::text('pnice', ['-wrapper-class' => 'white']); ?>
Line 141: <?php echo Form::heading('Fields'); ?>
Line 145: <?php Form::nextFieldDetails('Fields', false, 'One per line'); ?>
Line 146: <?php echo Form::multiline('fields', ['-wrapper-class' => 'white', 'rows' => 13]); ?>
Line 172: </form>

/sprout/views/dbtools/module_builder_db.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 15: <form action="" method="get">
Line 21: <?php Form::nextFieldDetails('Table name', true); ?>
Line 22: <?php echo Form::text('table', ['-wrapper-class' => 'white']); ?>
Line 26: <?php Form::nextFieldDetails('Module type', true); ?>
Line 27: <?php echo Form::dropdown('type', ['-wrapper-class' => 'white'], ['has_categories' => 'Categories', 'list' => 'List', 'tree' => 'Tree']) ?>
Line 32: <?php Form::nextFieldDetails('XML data', false); ?>
Line 33: <?php echo Form::multiline('xml', ['-wrapper-class' => 'white', 'rows'=> '6', $disabled => true]); ?>
Line 48: </form>

/sprout/views/dbtools/module_builder_db.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 15: <form action="" method="get">
Line 21: <?php Form::nextFieldDetails('Table name', true); ?>
Line 22: <?php echo Form::text('table', ['-wrapper-class' => 'white']); ?>
Line 26: <?php Form::nextFieldDetails('Module type', true); ?>
Line 27: <?php echo Form::dropdown('type', ['-wrapper-class' => 'white'], ['has_categories' => 'Categories', 'list' => 'List', 'tree' => 'Tree']) ?>
Line 32: <?php Form::nextFieldDetails('XML data', false); ?>
Line 33: <?php echo Form::multiline('xml', ['-wrapper-class' => 'white', 'rows'=> '6', $disabled => true]); ?>
Line 48: </form>

/sprout/views/dbtools/module_builder_existing_form.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 22: Form::setData($data);
Line 23: Form::setErrors($errors);
Line 27: <form action="SITE/dbtools/moduleBuilderExistingAction/<?php echo Enc::html($input_xml); ?>" method="post" enctype="multipart/form-data">
Line 32: Form::nextFieldDetails('Module author', true, '(CamelCaps)');
Line 33: echo Form::text('module_author');
Line 35: Form::nextFieldDetails('Module name', true, '(CamelCaps)');
Line 36: echo Form::text('module_name');
Line 80: </form>

/sprout/views/dbtools/module_builder_existing_form.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 22: Form::setData($data);
Line 23: Form::setErrors($errors);
Line 27: <form action="SITE/dbtools/moduleBuilderExistingAction/<?php echo Enc::html($input_xml); ?>" method="post" enctype="multipart/form-data">
Line 32: Form::nextFieldDetails('Module author', true, '(CamelCaps)');
Line 33: echo Form::text('module_author');
Line 35: Form::nextFieldDetails('Module name', true, '(CamelCaps)');
Line 36: echo Form::text('module_name');
Line 80: </form>

/sprout/views/dbtools/module_builder_existing_upload.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 31: <form action="SITE/dbtools/moduleBuilderExistingUploadAction" method="post" enctype="multipart/form-data" class="white-box">
Line 33: Form::nextFieldDetails('Upload db_struct.xml', true);
Line 34: echo Form::upload('file');
Line 38: </form>
Line 41: <form action="SITE/dbtools/moduleBuilderExistingUploadAction" method="post" class="white-box">
Line 43: Form::nextFieldDetails('Use existing db_struct.xml', true);
Line 44: echo Form::dropdown('existing', [], $existing_files);
Line 48: </form>
Line 51: <form action="SITE/dbtools/moduleBuilderExistingUploadAction" method="post" class="white-box">
Line 53: Form::nextFieldDetails('Copy-n-paste XML content', true);
Line 54: echo Form::multiline('content', ['style' => 'font-family: monospace', 'rows' => 7]);
Line 58: </form>

/sprout/views/dbtools/module_builder_existing_upload.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 31: <form action="SITE/dbtools/moduleBuilderExistingUploadAction" method="post" enctype="multipart/form-data" class="white-box">
Line 33: Form::nextFieldDetails('Upload db_struct.xml', true);
Line 34: echo Form::upload('file');
Line 38: </form>
Line 41: <form action="SITE/dbtools/moduleBuilderExistingUploadAction" method="post" class="white-box">
Line 43: Form::nextFieldDetails('Use existing db_struct.xml', true);
Line 44: echo Form::dropdown('existing', [], $existing_files);
Line 48: </form>
Line 51: <form action="SITE/dbtools/moduleBuilderExistingUploadAction" method="post" class="white-box">
Line 53: Form::nextFieldDetails('Copy-n-paste XML content', true);
Line 54: echo Form::multiline('content', ['style' => 'font-family: monospace', 'rows' => 7]);
Line 58: </form>

/sprout/views/dbtools/qr_form.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 5: Form::setData($_GET);
Line 8: <form action="" method="get" class="field-group-wrap -clearfix">
Line 12: Form::nextFieldDetails('String', true);
Line 13: echo Form::text('payload');
Line 21: </form>

/sprout/views/dbtools/qr_form.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 5: Form::setData($_GET);
Line 8: <form action="" method="get" class="field-group-wrap -clearfix">
Line 12: Form::nextFieldDetails('String', true);
Line 13: echo Form::text('payload');
Line 21: </form>

/sprout/views/dbtools/skin_test_content.php   Highlighted file source

Line 2: use Sprout\Helpers\Form;
Line 14: gothica quam nunc putamus parum claram anteposuerit litterarum formas humanitatis
Line 223: <h2>Basic form Elements</h2>
Line 225: <div class="widget widget-Form widget-hasinfobox orientation-wide">
Line 226: <form class="forms-form" method="post" action="form/submit/1">
Line 230: $form_attributes = [
Line 246: foreach ($form_attributes as $label => $attributes) {
Line 250: Form::nextFieldDetails('Text', false);
Line 251: echo Form::text('textz', $attributes);
Line 253: Form::nextFieldDetails('Select', false);
Line 254: echo Form::dropdown('dropdown', $attributes, [0 => "Lol", 1 => "Rofl", 2 => "Lmao"]);
Line 256: Form::nextFieldDetails('Select tree', false);
Line 257: echo Form::dropdownTree('dropdown_tree', $attributes, [
Line 262: Form::nextFieldDetails('Number', false);
Line 263: echo Form::number('number', $attributes);
Line 265: Form::nextFieldDetails('Dollars', false);
Line 266: echo Form::money('dollars', $attributes);
Line 268: Form::nextFieldDetails('Range', false);
Line 269: echo Form::range('range', $attributes);
Line 271: Form::nextFieldDetails('Password', false);
Line 272: echo Form::password('password', $attributes);
Line 274: Form::nextFieldDetails('Upload', false);
Line 275: echo Form::upload('upload', $attributes);
Line 277: Form::nextFieldDetails('Email', false);
Line 278: echo Form::email('email', $attributes);
Line 280: Form::nextFieldDetails('Phone', false);
Line 281: echo Form::phone('phone', $attributes);
Line 283: Form::nextFieldDetails('Multiline', false);
Line 284: echo Form::multiline('multiline', $attributes + ['rows' => '5']);
Line 286: Form::nextFieldDetails('Multiradio', false);
Line 287: echo Form::multiradio('multiradio', $attributes, ['box1' => "I'm a checkbox", 'box2' => "Don't judge me"]);
Line 289: Form::nextFieldDetails('Checkbox list', false);
Line 290: echo Form::checkboxBoolList('checkboxList', $attributes, ['box1' => "I'm a checkbox", 'box2' => "Don't judge me"]);
Line 292: Form::nextFieldDetails('Richtext', false);
Line 293: echo Form::richtext('richtext', $attributes);
Line 295: Form::nextFieldDetails('More text', false);
Line 296: echo Form::text('textz', $attributes);
Line 298: Form::nextFieldDetails('Date picker', false);
Line 299: echo Form::datepicker('datepicker', $attributes);
Line 301: Form::nextFieldDetails('Date picker with dropdowns', false);
Line 302: echo Form::datepicker('datepicker_two', $attributes, ['dropdowns' => true]);
Line 304: Form::nextFieldDetails('Time picker', false);
Line 305: echo Form::timepicker('timepicker', $attributes);
Line 307: Form::nextFieldDetails('Date range picker', false);
Line 308: echo Form::daterangepicker('Depart, Arrive', $attributes);
Line 310: Form::nextFieldDetails('Date/time range picker', false);
Line 311: echo Form::datetimerangepicker('Depart,Arrive', $attributes);
Line 313: Form::nextFieldDetails('Date/time picker', false);
Line 314: echo Form::datetimepicker('datetimepicker', $attributes);
Line 316: Form::nextFieldDetails('Colour picker', false);
Line 317: echo Form::colorpicker('colorpicker', $attributes);
Line 319: Form::setFieldValue('adults', 3);
Line 320: Form::nextFieldDetails('Total selector', false);
Line 321: echo Form::totalselector('totalselector', $attributes, [
Line 344: </form>

/sprout/views/dbtools/skin_test_content.php   Highlighted file source

Line 2: use Sprout\Helpers\Form;
Line 14: gothica quam nunc putamus parum claram anteposuerit litterarum formas humanitatis
Line 223: <h2>Basic form Elements</h2>
Line 225: <div class="widget widget-Form widget-hasinfobox orientation-wide">
Line 226: <form class="forms-form" method="post" action="form/submit/1">
Line 230: $form_attributes = [
Line 246: foreach ($form_attributes as $label => $attributes) {
Line 250: Form::nextFieldDetails('Text', false);
Line 251: echo Form::text('textz', $attributes);
Line 253: Form::nextFieldDetails('Select', false);
Line 254: echo Form::dropdown('dropdown', $attributes, [0 => "Lol", 1 => "Rofl", 2 => "Lmao"]);
Line 256: Form::nextFieldDetails('Select tree', false);
Line 257: echo Form::dropdownTree('dropdown_tree', $attributes, [
Line 262: Form::nextFieldDetails('Number', false);
Line 263: echo Form::number('number', $attributes);
Line 265: Form::nextFieldDetails('Dollars', false);
Line 266: echo Form::money('dollars', $attributes);
Line 268: Form::nextFieldDetails('Range', false);
Line 269: echo Form::range('range', $attributes);
Line 271: Form::nextFieldDetails('Password', false);
Line 272: echo Form::password('password', $attributes);
Line 274: Form::nextFieldDetails('Upload', false);
Line 275: echo Form::upload('upload', $attributes);
Line 277: Form::nextFieldDetails('Email', false);
Line 278: echo Form::email('email', $attributes);
Line 280: Form::nextFieldDetails('Phone', false);
Line 281: echo Form::phone('phone', $attributes);
Line 283: Form::nextFieldDetails('Multiline', false);
Line 284: echo Form::multiline('multiline', $attributes + ['rows' => '5']);
Line 286: Form::nextFieldDetails('Multiradio', false);
Line 287: echo Form::multiradio('multiradio', $attributes, ['box1' => "I'm a checkbox", 'box2' => "Don't judge me"]);
Line 289: Form::nextFieldDetails('Checkbox list', false);
Line 290: echo Form::checkboxBoolList('checkboxList', $attributes, ['box1' => "I'm a checkbox", 'box2' => "Don't judge me"]);
Line 292: Form::nextFieldDetails('Richtext', false);
Line 293: echo Form::richtext('richtext', $attributes);
Line 295: Form::nextFieldDetails('More text', false);
Line 296: echo Form::text('textz', $attributes);
Line 298: Form::nextFieldDetails('Date picker', false);
Line 299: echo Form::datepicker('datepicker', $attributes);
Line 301: Form::nextFieldDetails('Date picker with dropdowns', false);
Line 302: echo Form::datepicker('datepicker_two', $attributes, ['dropdowns' => true]);
Line 304: Form::nextFieldDetails('Time picker', false);
Line 305: echo Form::timepicker('timepicker', $attributes);
Line 307: Form::nextFieldDetails('Date range picker', false);
Line 308: echo Form::daterangepicker('Depart, Arrive', $attributes);
Line 310: Form::nextFieldDetails('Date/time range picker', false);
Line 311: echo Form::datetimerangepicker('Depart,Arrive', $attributes);
Line 313: Form::nextFieldDetails('Date/time picker', false);
Line 314: echo Form::datetimepicker('datetimepicker', $attributes);
Line 316: Form::nextFieldDetails('Colour picker', false);
Line 317: echo Form::colorpicker('colorpicker', $attributes);
Line 319: Form::setFieldValue('adults', 3);
Line 320: Form::nextFieldDetails('Total selector', false);
Line 321: echo Form::totalselector('totalselector', $attributes, [
Line 344: </form>

/sprout/views/demo_form.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 6: Form::setData($data);
Line 14: <form method="post">
Line 16: Form::nextFieldDetails('File', false);
Line 17: echo Form::chunkedUpload('file', [], ['sess_key' => 'testing_file_upload']);
Line 21: </form>

/sprout/views/demo_form.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 6: Form::setData($data);
Line 14: <form method="post">
Line 16: Form::nextFieldDetails('File', false);
Line 17: echo Form::chunkedUpload('file', [], ['sess_key' => 'testing_file_upload']);
Line 21: </form>

/sprout/views/email_share_form.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 26: <?php Form::setData($data); ?>
Line 27: <?php Form::setErrors($errors); ?>
Line 28: <form action="SITE/email_share/submit" method="post">
Line 35: <?php Form::nextFieldDetails('Their name', false); ?>
Line 36: <?= Form::text('their_name'); ?>
Line 38: <?php Form::nextFieldDetails('Their email', false); ?>
Line 39: <?= Form::text('their_email'); ?>
Line 41: <?php Form::nextFieldDetails('A short message', false); ?>
Line 42: <?= Form::multiline('message'); ?>
Line 53: </form>

/sprout/views/email_share_form.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 26: <?php Form::setData($data); ?>
Line 27: <?php Form::setErrors($errors); ?>
Line 28: <form action="SITE/email_share/submit" method="post">
Line 35: <?php Form::nextFieldDetails('Their name', false); ?>
Line 36: <?= Form::text('their_name'); ?>
Line 38: <?php Form::nextFieldDetails('Their email', false); ?>
Line 39: <?= Form::text('their_email'); ?>
Line 41: <?php Form::nextFieldDetails('A short message', false); ?>
Line 42: <?= Form::multiline('message'); ?>
Line 53: </form>

/sprout/views/gallery_widget_settings.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 12: Form::nextFieldDetails('Category', true);
Line 13: echo Form::dropdown('category', [], $cats);
Line 18: Form::nextFieldDetails('Display order', true);
Line 19: echo Form::dropdown('order', [], $ordering);
Line 27: Form::nextFieldDetails('Max number of images to show', true);
Line 28: echo Form::text('limit');
Line 33: Form::nextFieldDetails('Captions', true);
Line 34: echo Form::dropdown('captions', [], ['0' => 'No', '1' => 'Yes']);
Line 42: Form::nextFieldDetails('Cropping anchor', false);
Line 43: echo Form::dropdown('cropping', [], $cropping);
Line 48: Form::nextFieldDetails('Gallery type', false);
Line 49: echo Form::dropdown('display_opts', ['class' => 'js--display-opts'], $display);
Line 57: Form::nextFieldDetails('Thumbnails per row', false);
Line 58: echo Form::dropdown('thumb_rows', [], ['2' => '2', '3' => '3', '4' => '4', '5' => '5']);
Line 67: Form::nextFieldDetails('Slider options', false);
Line 68: echo Form::checkboxList(['slider_dots' => 'Dots', 'slider_arrows' => 'Arrows', 'slider_autoplay' => 'Auto-scroll'], []);
Line 73: Form::nextFieldDetails('Auto-scroll timer', false, 'Seconds');
Line 74: echo Form::number('slider_speed', []);
Line 78: Form::nextFieldDetails('Images per slide', false);
Line 79: echo Form::dropdown('num_images', [], ['1' => '1', '2' => '2', '3' => '3', '4' => '4']);

/sprout/views/gallery_widget_settings.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 12: Form::nextFieldDetails('Category', true);
Line 13: echo Form::dropdown('category', [], $cats);
Line 18: Form::nextFieldDetails('Display order', true);
Line 19: echo Form::dropdown('order', [], $ordering);
Line 27: Form::nextFieldDetails('Max number of images to show', true);
Line 28: echo Form::text('limit');
Line 33: Form::nextFieldDetails('Captions', true);
Line 34: echo Form::dropdown('captions', [], ['0' => 'No', '1' => 'Yes']);
Line 42: Form::nextFieldDetails('Cropping anchor', false);
Line 43: echo Form::dropdown('cropping', [], $cropping);
Line 48: Form::nextFieldDetails('Gallery type', false);
Line 49: echo Form::dropdown('display_opts', ['class' => 'js--display-opts'], $display);
Line 57: Form::nextFieldDetails('Thumbnails per row', false);
Line 58: echo Form::dropdown('thumb_rows', [], ['2' => '2', '3' => '3', '4' => '4', '5' => '5']);
Line 67: Form::nextFieldDetails('Slider options', false);
Line 68: echo Form::checkboxList(['slider_dots' => 'Dots', 'slider_arrows' => 'Arrows', 'slider_autoplay' => 'Auto-scroll'], []);
Line 73: Form::nextFieldDetails('Auto-scroll timer', false, 'Seconds');
Line 74: echo Form::number('slider_speed', []);
Line 78: Form::nextFieldDetails('Images per slide', false);
Line 79: echo Form::dropdown('num_images', [], ['1' => '1', '2' => '2', '3' => '3', '4' => '4']);

/sprout/views/map_directions.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 28: <form action="javascript:;" class="directions-form -clearfix">
Line 36: Form::nextFieldDetails('Address', false, 'Enter a street name and/or suburb below to get directions');
Line 37: echo Form::text('start-address', ['-wrapper-class' => 'white hidden-label', 'placeholder' => 'Street name and/or suburb', 'id' => 'start-address', 'class' => 'directions-txt']);
Line 47: </form>

/sprout/views/map_directions.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 28: <form action="javascript:;" class="directions-form -clearfix">
Line 36: Form::nextFieldDetails('Address', false, 'Enter a street name and/or suburb below to get directions');
Line 37: echo Form::text('start-address', ['-wrapper-class' => 'white hidden-label', 'placeholder' => 'Street name and/or suburb', 'id' => 'start-address', 'class' => 'directions-txt']);
Line 47: </form>

/sprout/views/page_approval_form.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 21: // This form is displayed at the top of a page which is being reviewed as part of the
Line 27: #page-rev-approval-form {
Line 37: <div id="page-rev-approval-form">
Line 38: <h1 class="page-rev-approval-form-title">Please approve or reject this revision</h1>
Line 40: <form method="post" action="page/review/<?= (int)$rev_id; ?>">
Line 47: Form::nextFieldDetails('Message', false);
Line 48: echo Form::text('message', ['-wrapper-class' => 'white new-category large', 'placeholder' => 'Enter a message', 'id' => 'approval-form-message']);
Line 59: </form>

/sprout/views/page_approval_form.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 21: // This form is displayed at the top of a page which is being reviewed as part of the
Line 27: #page-rev-approval-form {
Line 37: <div id="page-rev-approval-form">
Line 38: <h1 class="page-rev-approval-form-title">Please approve or reject this revision</h1>
Line 40: <form method="post" action="page/review/<?= (int)$rev_id; ?>">
Line 47: Form::nextFieldDetails('Message', false);
Line 48: echo Form::text('message', ['-wrapper-class' => 'white new-category large', 'placeholder' => 'Enter a message', 'id' => 'approval-form-message']);
Line 59: </form>

/sprout/views/tfa/totp_login.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 11: <form action="<?= Enc::html($action_url); ?>" method="post" autocomplete="off">
Line 15: Form::nextFieldDetails('Enter your two factor code', true);
Line 16: echo Form::text('code', ['class' => 'two-factor-code', 'size' => '7', 'autofocus' => 'autofocus'], []);
Line 24: </form>

/sprout/views/tfa/totp_login.php   Highlighted file source

Line 3: use Sprout\Helpers\Form;
Line 11: <form action="<?= Enc::html($action_url); ?>" method="post" autocomplete="off">
Line 15: Form::nextFieldDetails('Enter your two factor code', true);
Line 16: echo Form::text('code', ['class' => 'two-factor-code', 'size' => '7', 'autofocus' => 'autofocus'], []);
Line 24: </form>

/sprout/views/tinymce4/image_gallery.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 35: Form::setData($data);
Line 91: Form::nextFieldDetails('Max number of images to show', false);
Line 92: echo Form::text('max', ['class' => 'js-gallery-max']);
Line 97: Form::nextFieldDetails('Display order', false);
Line 98: echo Form::dropdown('order', ['class' => 'js-ordering'], $order_opts);
Line 106: Form::nextFieldDetails('Show captions?', false);
Line 107: echo Form::dropdown('captions', ['class' => 'js-gallery-captions'], $caption_opts);
Line 112: Form::nextFieldDetails('Cropping anchor', false);
Line 113: echo Form::dropdown('crop', ['class' => 'js-gallery-crop'], $crop_opts);
Line 118: Form::nextFieldDetails('Gallery type', false);
Line 119: echo Form::dropdown('display_opts', ['class' => 'js-gallery-type'], $type_opts);
Line 127: Form::nextFieldDetails('Thumbnails per row', false);
Line 128: echo Form::dropdown('thumbs', ['class' => 'js-gallery-thumbs'], $thumb_opts);
Line 137: Form::nextFieldDetails('Slider options', false);
Line 138: echo Form::checkboxList(['slider_dots' => 'Dots', 'slider_arrows' => 'Arrows', 'slider_autoplay' => 'Auto-scroll'], []);
Line 143: Form::nextFieldDetails('Auto-scroll timer', false, 'Seconds');
Line 144: echo Form::number('slider_speed', []);
Line 228: // Get form values
Line 253: // Use form values as data-attributes for Widget's settings
Line 274: top.tinymce.activeEditor.selection.setContent(content, {'format': 'raw'});

/sprout/views/tinymce4/image_gallery.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 35: Form::setData($data);
Line 91: Form::nextFieldDetails('Max number of images to show', false);
Line 92: echo Form::text('max', ['class' => 'js-gallery-max']);
Line 97: Form::nextFieldDetails('Display order', false);
Line 98: echo Form::dropdown('order', ['class' => 'js-ordering'], $order_opts);
Line 106: Form::nextFieldDetails('Show captions?', false);
Line 107: echo Form::dropdown('captions', ['class' => 'js-gallery-captions'], $caption_opts);
Line 112: Form::nextFieldDetails('Cropping anchor', false);
Line 113: echo Form::dropdown('crop', ['class' => 'js-gallery-crop'], $crop_opts);
Line 118: Form::nextFieldDetails('Gallery type', false);
Line 119: echo Form::dropdown('display_opts', ['class' => 'js-gallery-type'], $type_opts);
Line 127: Form::nextFieldDetails('Thumbnails per row', false);
Line 128: echo Form::dropdown('thumbs', ['class' => 'js-gallery-thumbs'], $thumb_opts);
Line 137: Form::nextFieldDetails('Slider options', false);
Line 138: echo Form::checkboxList(['slider_dots' => 'Dots', 'slider_arrows' => 'Arrows', 'slider_autoplay' => 'Auto-scroll'], []);
Line 143: Form::nextFieldDetails('Auto-scroll timer', false, 'Seconds');
Line 144: echo Form::number('slider_speed', []);
Line 228: // Get form values
Line 253: // Use form values as data-attributes for Widget's settings
Line 274: top.tinymce.activeEditor.selection.setContent(content, {'format': 'raw'});

/sprout/views/tinymce4/upload.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 27: Upload files using the form below.
Line 31: <form action="SITE/admin/call/file/quickUpload" method="post" target="quick-upload" enctype="multipart/form-data" id="mce-upload">
Line 34: <?php Form::nextFieldDetails('File', true); ?>
Line 35: <?= Form::chunkedUpload('file', [], ['sess_key' => 'admin_quick_upload']); ?>
Line 38: <?php Form::nextFieldDetails('Name', true); ?>
Line 39: <?= Form::text('name'); ?>
Line 42: <?php Form::nextFieldDetails('Category', true); ?>
Line 43: <?= Form::dropdown('category_id', [], $cats); ?>
Line 47: </form>

/sprout/views/tinymce4/upload.php   Highlighted file source

Line 14: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 27: Upload files using the form below.
Line 31: <form action="SITE/admin/call/file/quickUpload" method="post" target="quick-upload" enctype="multipart/form-data" id="mce-upload">
Line 34: <?php Form::nextFieldDetails('File', true); ?>
Line 35: <?= Form::chunkedUpload('file', [], ['sess_key' => 'admin_quick_upload']); ?>
Line 38: <?php Form::nextFieldDetails('Name', true); ?>
Line 39: <?= Form::text('name'); ?>
Line 42: <?php Form::nextFieldDetails('Category', true); ?>
Line 43: <?= Form::dropdown('category_id', [], $cats); ?>
Line 47: </form>

/sprout/views/video_playlist_settings.php   Highlighted file source

Line 2: use Sprout\Helpers\Form;
Line 6: Form::nextFieldDetails('Play-list URL', true);
Line 7: echo Form::text('playlist_id');
Line 13: Form::nextFieldDetails('Captions', true);
Line 14: echo Form::dropdown('captions', [], ['0' => 'No', '1' => 'Yes']);
Line 19: Form::nextFieldDetails('Thumbnails per row', false);
Line 20: echo Form::dropdown('thumb_rows', [], $thumbs);

/sprout/views/video_playlist_settings.php   Highlighted file source

Line 2: use Sprout\Helpers\Form;
Line 6: Form::nextFieldDetails('Play-list URL', true);
Line 7: echo Form::text('playlist_id');
Line 13: Form::nextFieldDetails('Captions', true);
Line 14: echo Form::dropdown('captions', [], ['0' => 'No', '1' => 'Yes']);
Line 19: Form::nextFieldDetails('Thumbnails per row', false);
Line 20: echo Form::dropdown('thumb_rows', [], $thumbs);

/sprout/Widgets/AdvancedSearchFormWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 23: class AdvancedSearchFormWidget extends Widget
Line 25: protected $friendly_name = "Advanced Search Form";
Line 26: protected $friendly_desc = 'An advanced search form for the site search';
Line 37: $out = '<form action="SITE/advanced_search" method="get">';
Line 60: $out .= '</form>';

/sprout/Widgets/AdvancedSearchFormWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 23: class AdvancedSearchFormWidget extends Widget
Line 25: protected $friendly_name = "Advanced Search Form";
Line 26: protected $friendly_desc = 'An advanced search form for the site search';
Line 37: $out = '<form action="SITE/advanced_search" method="get">';
Line 60: $out .= '</form>';

/sprout/Widgets/AudioWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 49: * Return the settings form for this widget
Line 51: public function getSettingsForm()
Line 53: Form::nextFieldDetails('Audio file', true);
Line 54: return Form::fileselector('filename', [], ['filter' => FileConstants::TYPE_SOUND, 'required' => true]);

/sprout/Widgets/AudioWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 18: use Sprout\Helpers\Form;
Line 49: * Return the settings form for this widget
Line 51: public function getSettingsForm()
Line 53: Form::nextFieldDetails('Audio file', true);
Line 54: return Form::fileselector('filename', [], ['filter' => FileConstants::TYPE_SOUND, 'required' => true]);

/sprout/Widgets/ChildrenGalleryWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 16: use Sprout\Helpers\Form;
Line 30: protected $friendly_desc = 'A list of the children pages of this page, in a friendly gallery format';
Line 107: * See {@link Widget::getSettingsForm} for full documentation
Line 109: public function getSettingsForm()
Line 125: Form::nextFieldDetails('Parent Page', false);
Line 129: $out .= Form::dropdown('parent', [], $pages);
Line 131: $out .= Form::dropdown('parent', [], reset($pages));
Line 137: Form::nextFieldDetails('Options', false);
Line 138: $out .= Form::checkboxList(['hide_blanks' => 'Hide pages with no gallery image']);
Line 143: Form::nextFieldDetails('Thumbnails per row', false);
Line 144: $out .= Form::dropdown('thumb_rows', [], ['2'=> '2', '3' => '3', '4' => '4', '5' => '5']);

/sprout/Widgets/ChildrenGalleryWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 16: use Sprout\Helpers\Form;
Line 30: protected $friendly_desc = 'A list of the children pages of this page, in a friendly gallery format';
Line 107: * See {@link Widget::getSettingsForm} for full documentation
Line 109: public function getSettingsForm()
Line 125: Form::nextFieldDetails('Parent Page', false);
Line 129: $out .= Form::dropdown('parent', [], $pages);
Line 131: $out .= Form::dropdown('parent', [], reset($pages));
Line 137: Form::nextFieldDetails('Options', false);
Line 138: $out .= Form::checkboxList(['hide_blanks' => 'Hide pages with no gallery image']);
Line 143: Form::nextFieldDetails('Thumbnails per row', false);
Line 144: $out .= Form::dropdown('thumb_rows', [], ['2'=> '2', '3' => '3', '4' => '4', '5' => '5']);

/sprout/Widgets/FileListWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 66: * See {@link Widget::getSettingsForm} for full documentation
Line 68: public function getSettingsForm()
Line 80: Form::nextFieldDetails('Category', true);
Line 81: $out .= Form::dropdown('category', [], $cats);
Line 83: Form::nextFieldDetails('Display order', true);
Line 84: $out .= Form::dropdown('order', [], FileConstants::$order_names);

/sprout/Widgets/FileListWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 66: * See {@link Widget::getSettingsForm} for full documentation
Line 68: public function getSettingsForm()
Line 80: Form::nextFieldDetails('Category', true);
Line 81: $out .= Form::dropdown('category', [], $cats);
Line 83: Form::nextFieldDetails('Display order', true);
Line 84: $out .= Form::dropdown('order', [], FileConstants::$order_names);

/sprout/Widgets/HelloWorldWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 51: * Return the settings form for this widget
Line 53: public function getSettingsForm()
Line 55: return Form::text('message');

/sprout/Widgets/HelloWorldWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 51: * Return the settings form for this widget
Line 53: public function getSettingsForm()
Line 55: return Form::text('message');

/sprout/Widgets/HtmlCodeWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 16: use Sprout\Helpers\Form;
Line 40: * Return the settings form for this widget
Line 42: public function getSettingsForm()
Line 44: Form::nextFieldDetails('HTML', false);
Line 45: return Form::multiline('code');

/sprout/Widgets/HtmlCodeWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 16: use Sprout\Helpers\Form;
Line 40: * Return the settings form for this widget
Line 42: public function getSettingsForm()
Line 44: Form::nextFieldDetails('HTML', false);
Line 45: return Form::multiline('code');

/sprout/Widgets/ImageGalleryWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 207: public function getSettingsForm()

/sprout/Widgets/ImageGalleryWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 207: public function getSettingsForm()

/sprout/Widgets/MapDirectionsWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 16: use Sprout\Helpers\Form;
Line 56: * Return the settings form for this widget
Line 58: public function getSettingsForm()
Line 62: Form::nextFieldDetails('Search and choose an exact point on the map', false);
Line 63: $out .= Form::googleMap('latitude,longitude,zoom');

/sprout/Widgets/MapDirectionsWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 16: use Sprout\Helpers\Form;
Line 56: * Return the settings form for this widget
Line 58: public function getSettingsForm()
Line 62: Form::nextFieldDetails('Search and choose an exact point on the map', false);
Line 63: $out .= Form::googleMap('latitude,longitude,zoom');

/sprout/Widgets/MapWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 89: * Return the settings form for this widget
Line 91: public function getSettingsForm()
Line 97: Form::nextFieldDetails('Location', false);
Line 98: $out .= Form::googleMap('lat,lng,zoom');
Line 100: Form::nextFieldDetails('Width', false);
Line 101: $out .= Form::text('width');
Line 103: Form::nextFieldDetails('Height', false);
Line 104: $out .= Form::text('height');
Line 106: Form::nextFieldDetails('Align', false);
Line 107: $out .= Form::dropdown('align', [], ['left' => 'Left', 'right' => 'Right']);
Line 109: Form::nextFieldDetails('Options', false);
Line 110: $out .= Form::checkboxList(['new_window' => 'Open in a new window when clicked']);

/sprout/Widgets/MapWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 89: * Return the settings form for this widget
Line 91: public function getSettingsForm()
Line 97: Form::nextFieldDetails('Location', false);
Line 98: $out .= Form::googleMap('lat,lng,zoom');
Line 100: Form::nextFieldDetails('Width', false);
Line 101: $out .= Form::text('width');
Line 103: Form::nextFieldDetails('Height', false);
Line 104: $out .= Form::text('height');
Line 106: Form::nextFieldDetails('Align', false);
Line 107: $out .= Form::dropdown('align', [], ['left' => 'Left', 'right' => 'Right']);
Line 109: Form::nextFieldDetails('Options', false);
Line 110: $out .= Form::checkboxList(['new_window' => 'Open in a new window when clicked']);

/sprout/Widgets/RichTextWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 44: * Return the settings form for this widget
Line 48: public function getSettingsForm()
Line 53: return Form::richtext('text', ['width' => $richtext_width, 'height' => $richtext_height]);

/sprout/Widgets/RichTextWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 44: * Return the settings form for this widget
Line 48: public function getSettingsForm()
Line 53: return Form::richtext('text', ['width' => $richtext_width, 'height' => $richtext_height]);

/sprout/Widgets/RssFeedWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 60: * Return the settings form for this widget
Line 62: public function getSettingsForm()
Line 66: Form::nextFieldDetails('URL', true);
Line 67: $out .= Form::text('url');
Line 69: Form::nextFieldDetails('Max number of posts', false);
Line 70: $out .= Form::text('limit');

/sprout/Widgets/RssFeedWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 19: use Sprout\Helpers\Form;
Line 60: * Return the settings form for this widget
Line 62: public function getSettingsForm()
Line 66: Form::nextFieldDetails('URL', true);
Line 67: $out .= Form::text('url');
Line 69: Form::nextFieldDetails('Max number of posts', false);
Line 70: $out .= Form::text('limit');

/sprout/Widgets/VideoPlaylistWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 63: * Renders the admin settings form for this widget
Line 67: public function getSettingsForm()

/sprout/Widgets/VideoPlaylistWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 20: use Sprout\Helpers\Form;
Line 63: * Renders the admin settings form for this widget
Line 67: public function getSettingsForm()

/sprout/Widgets/VideoWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 66: * Return the settings form for this widget
Line 68: public function getSettingsForm()
Line 72: Form::nextFieldDetails('Video URL', true);
Line 73: $out .= Form::text('video_id');
Line 75: Form::nextFieldDetails('Video title', true);
Line 76: $out .= Form::text('title');
Line 78: Form::nextFieldDetails('Width', true);
Line 79: $out .= Form::text('width');
Line 81: Form::nextFieldDetails('Height', true);
Line 82: $out .= Form::text('height');

/sprout/Widgets/VideoWidget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 17: use Sprout\Helpers\Form;
Line 66: * Return the settings form for this widget
Line 68: public function getSettingsForm()
Line 72: Form::nextFieldDetails('Video URL', true);
Line 73: $out .= Form::text('video_id');
Line 75: Form::nextFieldDetails('Video title', true);
Line 76: $out .= Form::text('title');
Line 78: Form::nextFieldDetails('Width', true);
Line 79: $out .= Form::text('width');
Line 81: Form::nextFieldDetails('Height', true);
Line 82: $out .= Form::text('height');

/sprout/Widgets/Widget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 143: * The content should be returned as well-formed HTML.
Line 163: * This function should return the content of the widget settings form.
Line 164: * The content should be returned as well-formed HTML.
Line 165: * The content will be contained within a DIV element, which is inside a FORM element.
Line 170: * Form fields *must* be generated using the {@see Form} helper, to ensure correct field
Line 175: public function getSettingsForm()

/sprout/Widgets/Widget.php   Highlighted file source

Line 11: * For more information, visit <http://getsproutcms.com>.
Line 143: * The content should be returned as well-formed HTML.
Line 163: * This function should return the content of the widget settings form.
Line 164: * The content should be returned as well-formed HTML.
Line 165: * The content will be contained within a DIV element, which is inside a FORM element.
Line 170: * Form fields *must* be generated using the {@see Form} helper, to ensure correct field
Line 175: public function getSettingsForm()

A total of 3296 lines in 270 files were found