/usr/share/zentyal/templates/squid/ajax/setter/timePeriod.mas is in zentyal-squid 2.3.11+quantal1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <%args>
$tableName
$data
$cssClass => ''
</%args>
<%init>
my $fieldName = $data->fieldName();
my $id = $tableName . '_' . $fieldName;
my @days = @{ $data->days() };
</%init>
<span id="<% $id %>" class="<% $cssClass %>">
<%__('From')%>
<input type="text" class="inputText"
value="<% $data->from() %>"
size="5" id ="<% $id . '_from' %>"
name='<% $id . '_from' %>' />
<%__('To')%>
<input type="text" class="inputText"
value="<% $data->to() %>"
size="5" id ="<% $id . '_to' %>"
name='<% $id . '_to' %>' />
<% __('Days of the week') %>
% foreach my $day (@days) {
% my $letter = $data->dayToPrintableLetter($day);
<% $letter %>
<& /input/checkbox.mas,
'name' => $id . "_$day",
'id' => $id . "_$day",
'value' => $data->$day(),
&>
% }
</span>
|