AAAAhome/academiac/www/administrator/components/com_chronoforms/form_elements/input_checkbox_group.ctp000060400000026143151374767050030262 0ustar00
CheckBoxes Group
$checkbox_group_option_text): ?> $checkbox_group_option_text){ if(!empty($options)){ $options .= "\n"; } $options .= $checkbox_group_option_value.'='.$checkbox_group_option_text; } }else{ $options = ''; } ?> input('chronofield[{n}][input_checkbox_group_{n}_input_id]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_input_id', 'value' => $element_params['input_id'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_label_text]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_label_text', 'value' => $element_params['label_text'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_input_name]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_input_name', 'value' => $element_params['input_name'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_input_title]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_input_title', 'value' => $element_params['input_title'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_radios_over]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_radios_over', 'value' => $element_params['radios_over'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_checked]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_checked', 'value' => $element_params['checked'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_ghost]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_ghost', 'value' => $element_params['ghost'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_ghost_value]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_ghost_value', 'value' => $element_params['ghost_value'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_label_over]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_label_over', 'value' => $element_params['label_over'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_hide_label]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_hide_label', 'value' => $element_params['hide_label'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_multiline_start]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_multiline_start', 'value' => $element_params['multiline_start'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_multiline_add]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_multiline_add', 'value' => $element_params['multiline_add'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_enable_dynamic_data]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_enable_dynamic_data', 'value' => $element_params['enable_dynamic_data'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_data_path]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_data_path', 'value' => $element_params['data_path'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_value_key]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_value_key', 'value' => $element_params['value_key'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_text_key]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_text_key', 'value' => $element_params['text_key'])); ?>
Header(array('general' => 'General', 'other' => 'Other', 'validation' => 'Validation', 'ghost' => 'Ghost', 'dynamic_data' => 'Dynamic Data'), 'input_checkbox_group_element_config_{n}'); ?> tabStart('general'); ?> input('input_checkbox_group_{n}_label_text_config', array('type' => 'text', 'label' => 'Label Text', 'class' => 'small_input', 'value' => '')); ?> input('input_checkbox_group_{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_group_{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_group_{n}_checked_config', array('type' => 'text', 'label' => 'Checked value', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'the checkbox value which should be checked by default.')); ?> input('input_checkbox_group_{n}_options_config', array('type' => 'textarea', 'label' => 'Options', 'rows' => 5, 'cols' => 50, 'operation' => "multi_option", 'operation_fieldtype' => "checkbox", 'smalldesc' => 'in value=text multi line format.')); ?> input('input_checkbox_group_{n}_input_id_config', array('type' => 'text', 'label' => 'Field ID', 'class' => 'small_input', 'value' => '')); ?> tabEnd(); ?> tabStart('other'); ?> input('input_checkbox_group_{n}_label_over_config', array('type' => 'checkbox', 'label' => 'Label Over', 'value' => '1', 'rule' => "bool")); ?> input('input_checkbox_group_{n}_hide_label_config', array('type' => 'checkbox', 'label' => 'Hide Label', 'value' => '1', 'rule' => "bool")); ?> input('input_checkbox_group_{n}_radios_over_config', array('type' => 'checkbox', 'label' => 'Checkboxes Vertical', 'value' => '1', 'rule' => "bool")); ?> input('input_checkbox_group_{n}_instructions_config', array('type' => 'textarea', 'label' => 'Instructions for users', 'rows' => 5, 'cols' => 50)); ?> input('input_checkbox_group_{n}_tooltip_config', array('type' => 'textarea', 'label' => 'Tooltip', 'rows' => 5, 'cols' => 50)); ?> input('input_checkbox_group_{n}_multiline_start_config', array('type' => 'checkbox', 'label' => 'Start a Multi field row', 'value' => '1', 'rule' => "bool")); ?> input('input_checkbox_group_{n}_multiline_add_config', array('type' => 'checkbox', 'label' => 'Add to a Multi field row', 'value' => '1', 'rule' => "bool")); ?> tabEnd(); ?> tabStart('validation'); ?> input('input_checkbox_group_{n}_validations_config', array('type' => 'checkbox', 'label' => '1 Required', 'class' => 'small_input', 'value' => 'group[{n}]', 'rule' => "split", 'splitter' => ",")); ?> tabEnd(); ?> tabStart('ghost'); ?> input('input_checkbox_group_{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_group_{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(); ?> tabStart('dynamic_data'); ?> input('input_checkbox_group_{n}_enable_dynamic_data_config', array('type' => 'select', 'label' => 'Enable', 'options' => array(0 => 'No', 1 => 'Yes'), 'default' => '1', 'smalldesc' => 'Enable Dynamic options loading, the options should exist in the $form->data array.')); ?> input('input_checkbox_group_{n}_data_path_config', array('type' => 'text', 'label' => 'Data Path', 'value' => '', 'smalldesc' => 'The data path in the $form->data array, can be a MODEL ID, or a path using dots: MODEL1.MODEL2')); ?> input('input_checkbox_group_{n}_value_key_config', array('type' => 'text', 'label' => 'Value Key', 'smalldesc' => 'The key name under which each option value will be found, so for example, if you have a multi list of users data loaded, then you may enter here "id"')); ?> input('input_checkbox_group_{n}_text_key_config', array('type' => 'text', 'label' => 'Text Key', 'smalldesc' => 'The key name under which each option text will be found, so for example, if you have a multi list of users data loaded, then you may enter here "username"')); ?> tabEnd(); ?>