AAAAhome/academiac/www/administrator/components/com_chronoforms/form_elements/input_checkbox.ctp 0000604 00000017364 15137501033 0027032 0 ustar 00
Checkbox
input('chronofield[{n}][input_checkbox_{n}_input_id]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_input_id', 'value' => $element_params['input_id'])); ?>
input('chronofield[{n}][input_checkbox_{n}_label_text]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_label_text', 'value' => $element_params['label_text'])); ?>
input('chronofield[{n}][input_checkbox_{n}_input_name]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_input_name', 'value' => $element_params['input_name'])); ?>
input('chronofield[{n}][input_checkbox_{n}_input_title]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_input_title', 'value' => $element_params['input_title'])); ?>
input('chronofield[{n}][input_checkbox_{n}_input_value]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_input_value', 'value' => $element_params['input_value'])); ?>
input('chronofield[{n}][input_checkbox_{n}_checked]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_checked', 'value' => $element_params['checked'])); ?>
input('chronofield[{n}][input_checkbox_{n}_ghost]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_ghost', 'value' => $element_params['ghost'])); ?>
input('chronofield[{n}][input_checkbox_{n}_ghost_value]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_ghost_value', 'value' => $element_params['ghost_value'])); ?>
input('chronofield[{n}][input_checkbox_{n}_label_over]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_label_over', 'value' => $element_params['label_over'])); ?>
input('chronofield[{n}][input_checkbox_{n}_hide_label]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_hide_label', 'value' => $element_params['hide_label'])); ?>
input('chronofield[{n}][input_checkbox_{n}_label_position]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_label_position', 'value' => $element_params['label_position'])); ?>
input('chronofield[{n}][input_checkbox_{n}_multiline_start]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_multiline_start', 'value' => $element_params['multiline_start'])); ?>
input('chronofield[{n}][input_checkbox_{n}_multiline_add]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_multiline_add', 'value' => $element_params['multiline_add'])); ?>
Header(array('general' => 'General', 'other' => 'Other', 'validation' => 'Validation', 'ghost' => 'Ghost'), 'input_checkbox_element_config_{n}'); ?>
tabStart('general'); ?>
input('input_checkbox_{n}_label_text_config', array('type' => 'text', 'label' => 'Label Text', 'class' => 'small_input', 'value' => '')); ?>
input('input_checkbox_{n}_input_name_config', array('type' => 'text', 'label' => 'Field Name', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'No spaces or any special characters, but underscores _ and square brackets [] are allowed.')); ?>
input('input_checkbox_{n}_input_value_config', array('type' => 'text', 'label' => 'Field Default Value', 'class' => 'small_input', 'value' => '')); ?>
input('input_checkbox_{n}_checked_config', array('type' => 'checkbox', 'label' => 'Checked', 'class' => 'small_input', 'value' => '1', 'rule' => "bool")); ?>
input('input_checkbox_{n}_label_position_config', array('type' => 'select', 'label' => 'Label Position', 'options' => array('left' => 'Left', 'right' => 'Right'), 'smalldesc' => 'Right is more appropriate for things like "accept terms and conditions".')); ?>
input('input_checkbox_{n}_input_title_config', array('type' => 'text', 'label' => 'Field title', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'Change this to override the default JS validation error message.')); ?>
input('input_checkbox_{n}_input_id_config', array('type' => 'text', 'label' => 'Field ID', 'class' => 'small_input', 'value' => '')); ?>
tabEnd(); ?>
tabStart('other'); ?>
input('input_checkbox_{n}_label_over_config', array('type' => 'checkbox', 'label' => 'Label Over', 'value' => '1', 'rule' => "bool")); ?>
input('input_checkbox_{n}_hide_label_config', array('type' => 'checkbox', 'label' => 'Hide Label', 'value' => '1', 'rule' => "bool")); ?>
input('input_checkbox_{n}_instructions_config', array('type' => 'textarea', 'label' => 'Instructions for users', 'rows' => 5, 'cols' => 50)); ?>
input('input_checkbox_{n}_tooltip_config', array('type' => 'textarea', 'label' => 'Tooltip', 'rows' => 5, 'cols' => 50)); ?>
input('input_checkbox_{n}_multiline_start_config', array('type' => 'checkbox', 'label' => 'Start a Multi field row', 'value' => '1', 'rule' => "bool")); ?>
input('input_checkbox_{n}_multiline_add_config', array('type' => 'checkbox', 'label' => 'Add to a Multi field row', 'value' => '1', 'rule' => "bool")); ?>
tabEnd(); ?>
tabStart('validation'); ?>
input('input_checkbox_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Required', 'class' => 'small_input', 'value' => 'required', 'rule' => "split", 'splitter' => ",")); ?>
tabEnd(); ?>
tabStart('ghost'); ?>
input('input_checkbox_{n}_ghost_config', array('type' => 'checkbox', 'label' => 'Enable Ghost', 'class' => 'small_input', 'value' => '1', 'rule' => "bool", 'smalldesc' => 'The ghost is a hidden field with the same name to assure that a key with this field name always exists in the POST array.')); ?>
input('input_checkbox_{n}_ghost_value_config', array('type' => 'text', 'label' => 'Ghost Value', 'value' => '', 'class' => 'medium_input', 'smalldesc' => 'Value here will appear if no choice has been made.')); ?>
tabEnd(); ?>