diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-02-26 21:23:20 +0100 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-02-26 21:23:20 +0100 |
commit | 04c9cc60349fe8d6899a42781ccacaf6d9df5bf5 (patch) | |
tree | 6703867e9b45eb36cbcd86e9b7b7d47356f69960 /apps/calendar/templates | |
parent | a501d4b61e3ba30aa1643b6a92c5177ee69d3b7d (diff) | |
download | nextcloud-server-04c9cc60349fe8d6899a42781ccacaf6d9df5bf5.tar.gz nextcloud-server-04c9cc60349fe8d6899a42781ccacaf6d9df5bf5.zip |
give users the possibility to choose between monday and sunday as first day of the week
Diffstat (limited to 'apps/calendar/templates')
-rwxr-xr-x | apps/calendar/templates/calendar.php | 1 | ||||
-rw-r--r-- | apps/calendar/templates/settings.php | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/apps/calendar/templates/calendar.php b/apps/calendar/templates/calendar.php index eb82d0d02ad..63c3b500296 100755 --- a/apps/calendar/templates/calendar.php +++ b/apps/calendar/templates/calendar.php @@ -19,6 +19,7 @@ var missing_field_startsbeforeends = '<?php echo addslashes($l->t('The event ends before it starts')) ?>'; var missing_field_dberror = '<?php echo addslashes($l->t('There was a database fail')) ?>'; var totalurl = '<?php echo OC_Helper::linkToAbsolute('calendar', 'caldav.php'); ?>/calendars'; + var firstDay = '<?php echo (OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'firstday', 'mo') == 'mo' ? '1' : '0'); ?>'; $(document).ready(function() { <?php if(array_key_exists('showevent', $_)){ diff --git a/apps/calendar/templates/settings.php b/apps/calendar/templates/settings.php index 979634874e4..f74a45203e1 100644 --- a/apps/calendar/templates/settings.php +++ b/apps/calendar/templates/settings.php @@ -37,6 +37,13 @@ </select> </td></tr> + <tr><td><label for="firstday" class="bold"><?php echo $l->t('First day of the week');?></label></td><td> + <select style="display: none;" id="firstday" title="<?php echo "First day"; ?>" name="firstday"> + <option value="mo" id="mo"><?php echo $l->t("Monday"); ?></option> + <option value="su" id="su"><?php echo $l->t("Sunday"); ?></option> + </select> + </td></tr> + </table> <?php echo $l->t('Calendar CalDAV syncing address:');?> |