*/
class CRM_Admin_Form_Setting_Date extends CRM_Admin_Form_Setting {
+ public $_settings = array(
+ 'weekBegins' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME,
+ );
+
/**
* Build the form object.
*
'description' => '',
'help_text' => NULL,
),
+ 'weekBegins' => array(
+ 'group_name' => 'Localization Preferences',
+ 'group' => 'localization',
+ 'name' => 'weekBegins',
+ 'type' => 'String',
+ 'quick_form_type' => 'Element',
+ 'html_type' => 'select',
+ 'option_values' => CRM_Utils_Date::getFullWeekdayNames(),
+ 'default' => '0',
+ 'add' => '4.7',
+ 'title' => 'Week begins on',
+ 'is_domain' => 1,
+ 'is_contact' => 0,
+ 'description' => "",
+ 'help_text' => NULL,
+ ),
);
</tr>
</table>
</fieldset>
-<fieldset><legend>{ts}Fiscal Year{/ts}</legend>
+<fieldset><legend>{ts}Calendar{/ts}</legend>
<table class="form-layout-compressed">
+ <tr class="crm-date-form-block-weekBegins">
+ <td class="label">{$form.weekBegins.label}</td>
+ <td>{$form.weekBegins.html}</td>
+ </tr>
<tr class="crm-date-form-block-fiscalYearStart">
<td class="label">{$form.fiscalYearStart.label}</td>
<td>{$form.fiscalYearStart.html}</td>