blob: 446a448c1bd920cda01a53467cac5d88c9f262ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
{strip}
{if !$userPrefs}
{assign var=settings value=$gBitSystem->mConfig}
{else}
{assign var=settings value=$userPrefs}
{/if}
{form legend="Calendar Settings"}
<input type="hidden" name="view_user" value="{$view_user}" />
<input type="hidden" name="page" value="{$page}" />
<div class="row">
{formlabel label="First day of Week" for="calendar_week_offset"}
{forminput}
{html_options name=calendar_week_offset output=$firstDayOutput values=$firstDayValues selected=`$settings.calendar_week_offset` id=calendar_week_offset}
{formhelp note="Set the first day of the week."}
{/forminput}
</div>
<div class="row">
{formlabel label="Time Blocks" for="calendar_hour_fraction"}
{forminput}
{html_options name=calendar_hour_fraction output=$hourOutput values=$hourValues selected=`$settings.calendar_hour_fraction` id=calendar_hour_fraction} {tr}minutes{/tr}
{formhelp note="Set the timeblocks for the day view."}
{/forminput}
</div>
<div class="row">
{formlabel label="Day View" for="calendar_day_start"}
{forminput}
{tr}from{/tr}
{html_options name=calendar_day_start output=$dayStart values=$dayStart selected=`$settings.calendar_day_start` id=calendar_day_start}
{tr}to{/tr}
{html_options name=calendar_day_end output=$dayEnd values=$dayEnd selected=`$settings.calendar_day_end` id=calendar_day_start}
{formhelp note="Pick the start and end time of your day view."}
{/forminput}
</div>
{if $gBitUser->isAdmin() and $page eq "calendar"}
<div class="row">
{formlabel label="Individual Calendar Settings" for="calendar_user_prefs"}
{forminput}
{html_checkboxes name="calendar_user_prefs" values="y" checked=`$settings.calendar_user_prefs` labels=false id=calendar_user_prefs}
{formhelp note="Allow users to set their own calendar preferences."}
{/forminput}
</div>
<div class="row">
{formlabel label="Ajax Popups" for="calendar_ajax_popups"}
{forminput}
{html_checkboxes name="calendar_ajax_popups" values="y" checked=`$settings.calendar_ajax_popups` labels=false id=calendar_ajax_popups}
{formhelp note="Use ajax for calendar popups. This saves page load time and bandwidth at the expense of requiring javascript."}
{/forminput}
</div>
<div class="row">
{formlabel label="Default Content Types"}
{forminput}
{html_checkboxes name="defaultTypes" options=$calendarTypeDefaults selected=$calendarTypesSelected separator="<br />"}
{formhelp note="Default content types to show on the calendar when users do not have permission to change types of content viewed."}
{/forminput}
</div>
{/if}
<div class="row submit">
<input type="submit" name="calendar_submit" value="{tr}Change preferences{/tr}" />
</div>
{/form}
{/strip}
|