summaryrefslogtreecommitdiff
path: root/pages/setup.ecpp
diff options
context:
space:
mode:
Diffstat (limited to 'pages/setup.ecpp')
-rw-r--r--pages/setup.ecpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/pages/setup.ecpp b/pages/setup.ecpp
index 012d798..97fc199 100644
--- a/pages/setup.ecpp
+++ b/pages/setup.ecpp
@@ -10,6 +10,7 @@ using namespace std;
bool useauth = 0;
string login;
string pass;
+ string times;
</%args>
<%session scope="global">
bool logged_in(false);
@@ -27,12 +28,14 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
if (pass != "")
LiveSetup().SetAdminPassword(pass);
}
- LiveSetup().SaveSetup();
+ LiveSetup().SetTimes(times);
+ LiveSetup().SaveSetup();
}
pageTitle = tr("Setup");
lastchannel = LiveSetup().GetLastChannel();
login = LiveSetup().GetAdminLogin();
useauth = LiveSetup().UseAuth();
+ times = LiveSetup().GetTimes();
</%cpp>
<& pageelems.doc_type &>
@@ -90,6 +93,12 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
</tr>
<tr>
<td class="border" style="border-left: 1px solid black"></td>
+ <td class="label"><$ tr("additional fixed times in 'What's on?'") $>:</td>
+ <td><input type="text" name="times" value="<$ times $>" id="times" /></td>
+ <td class="border" style="border-right: 1px solid black"></td>
+ </tr>
+ <tr>
+ <td class="border" style="border-left: 1px solid black"></td>
<td class="buttonpanel" colspan="2">
<button class="green" type="submit" name="save" onclick="return checksearch();"><$ tr("Save") $></button>
</td>