From 8e6622e4ec96f64603a9fd2d01d0084f26462495 Mon Sep 17 00:00:00 2001 From: Robbie Mackay Date: Mon, 21 May 2012 16:14:11 +1200 Subject: [PATCH] Add config option for allowing editing/read-only. Hide edit buttons etc when read only --- config/offline.php | 5 +++++ views/offline/message-li-template.php | 2 ++ views/offline/report-li-template.php | 2 ++ views/offline/report-page-template.php | 2 ++ 4 files changed, 11 insertions(+) create mode 100644 config/offline.php diff --git a/config/offline.php b/config/offline.php new file mode 100644 index 0000000..51c1e2f --- /dev/null +++ b/config/offline.php @@ -0,0 +1,5 @@ +<%- message_date %> \ No newline at end of file diff --git a/views/offline/report-li-template.php b/views/offline/report-li-template.php index 24a9e4e..0932ff9 100644 --- a/views/offline/report-li-template.php +++ b/views/offline/report-li-template.php @@ -36,8 +36,10 @@ <%- incident_date %> \ No newline at end of file diff --git a/views/offline/report-page-template.php b/views/offline/report-page-template.php index e6b3610..8193e0d 100644 --- a/views/offline/report-page-template.php +++ b/views/offline/report-page-template.php @@ -2,11 +2,13 @@ +
+