[% IF useExtJS; extJsScripts = BLOCK %]
[% END; END %] [% BLOCK alarmSetting %] [% WRAPPER settingSection %] [% alarmTitle = (alarmTitle ? alarmTitle : "ALARM_ALARM") | string %] [% WRAPPER settingGroup title=alarmTitle _ " " _ loop.count desc="" %]
[% END %]
[% "ALARM_SET" | string %]
[% alarmTitle = "ALARM_SET_DAYS" | string %] [% WRAPPER settingGroup title='
' _ alarmTitle _ "
" desc="" %] [% FOREACH day = [1 .. 7] %] [% day = day % 7 %] [% "ALARM_DAY$day" | string %] [% END %] [% END %] [% alarmTitle = "ALARM_SELECT_PLAYLIST" | string %] [% WRAPPER settingGroup title='
' _ alarmTitle _ "
" desc="" %]
[% END %] [% alarmTitle = "SHUFFLE" | string %] [% WRAPPER settingGroup title='
' _ alarmTitle _ "
" desc="" %]
[% END %] [% alarmTitle = "ALARM_ALARM_REPEAT" | string %] [% WRAPPER settingGroup title='
' _ alarmTitle _ "
" desc="ALARM_ALARM_REPEAT_DESC" %]
[% IF alarm.id != newAlarmID || useAJAX || useExtJS %]
[% END %] [% END %] [% alarmTitle = '' %] [% END %] [% END %] [% PROCESS settings/header.html %] [% WRAPPER setting title="ALARM_ALL_ALARMS" desc="ALARM_ALARMS_ENABLED_DESC" %]
[% END %] [% IF useExtJS || useAJAX %] [% WRAPPER setting title="ALARM_NEW" desc="ALARM_ADD_DESC" sectionID="button" _ newAlarmID %] [% END %] [% END %]
[% alarmTitle = "ALARM_NEW"; sectionID="alarm" _ newAlarmID; customStyle = useExtJS ? 'display:none' : '' %] [% PROCESS alarmSetting alarm = { id => newAlarmID day => 1 enabled => 1 repeat => 1 } %] [% alarmTitle = ''; customStyle = '' %]
[% FOREACH alarm = prefs.alarms %] [% PROCESS alarmSetting %] [% END %]
[% IF prefs.exists('pref_alarmDefaultVolume') %] [% WRAPPER setting title="ALARM_VOLUME" desc="ALARM_VOLUME_DESC" %] [% END %] [% END %] [% WRAPPER setting title="SETUP_SNOOZE_MINUTES" desc="SETUP_SNOOZE_MINUTES_DESC" %] [% END %] [% WRAPPER setting title="SETUP_ALARM_TIMEOUT" desc="SETUP_ALARM_TIMEOUT_DESC" %] [% END %] [% WRAPPER setting title="ALARM_FADE" desc="" %]
[% END %]
[% IF useAJAX %]
[% END %] [% PROCESS settings/footer.html %]