aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default
diff options
context:
space:
mode:
authorDave Whiteland <dave@mysociety.org>2013-08-07 11:28:23 +0100
committerDave Whiteland <dave@mysociety.org>2013-09-05 17:31:06 +0100
commit8acaea9f91c7db24871e6e1bd9268d9bf3b0d52d (patch)
tree2aa4846cb1bc55986c5a0f69446e94201a9a34ac /templates/web/default
parente69bc54641b9a584439ec934f1ed54e3e310e023 (diff)
hide open311 inputs for bodies unless needed
basically if send method is not email (or there's an endpoint value), don't show the form Maybe we need to have an "show all fields" button/link but for normal use I think this is OK
Diffstat (limited to 'templates/web/default')
-rw-r--r--templates/web/default/admin/body-form.html4
-rw-r--r--templates/web/default/admin/header.html5
2 files changed, 8 insertions, 1 deletions
diff --git a/templates/web/default/admin/body-form.html b/templates/web/default/admin/body-form.html
index 385e91d6d..ec29faf5c 100644
--- a/templates/web/default/admin/body-form.html
+++ b/templates/web/default/admin/body-form.html
@@ -48,6 +48,7 @@
</select>
</p>
+ <div class="admin-open311-only">
<p>
<label for="endpoint">[% loc('Endpoint') %]</label>
<input type="text" name="endpoint" id="endpoint" value="[% body.endpoint %]" size="50">
@@ -87,7 +88,8 @@
<label for="send_extended_statuses">Send extended open311 statuses with service request updates</label>:
<input type="checkbox" id="send_extended_statuses" name="send_extended_statuses"[% ' checked' IF conf.send_extended_statuses %]>
</p>
-
+ </div>
+
<p>
<input type="hidden" name="posted" value="body">
<input type="hidden" name="token" value="[% token %]">
diff --git a/templates/web/default/admin/header.html b/templates/web/default/admin/header.html
index 6282bf383..cda9b5050 100644
--- a/templates/web/default/admin/header.html
+++ b/templates/web/default/admin/header.html
@@ -5,6 +5,11 @@ dd { margin-left: 8em; }
.adminhidden { color: #666666; }
.error { color: red; }
select { width: auto; }
+.admin-open311-only {
+ border:1px solid #666;
+ padding:0 1em;
+ margin: 1em 0;
+}
</style>
<p><strong>[% loc('FixMyStreet admin:') %]</strong>