aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2017-02-15 17:30:34 +0000
committerDave Arter <davea@mysociety.org>2017-02-15 17:36:48 +0000
commit1bbcf0f979a003b502043c0cef0126950fd1157c (patch)
tree40c9f497da22b3535cf290d77aaef551f290378b /templates/web
parent0b1bc26366811481b322c322f2414514bb7c2166 (diff)
[Oxfordshire] Add initials field to admin user edit form
Diffstat (limited to 'templates/web')
-rw-r--r--templates/web/base/admin/user-form.html1
-rw-r--r--templates/web/oxfordshire/admin/user-form-extra-fields.html12
2 files changed, 13 insertions, 0 deletions
diff --git a/templates/web/base/admin/user-form.html b/templates/web/base/admin/user-form.html
index 0f5452b0a..4dd207bb3 100644
--- a/templates/web/base/admin/user-form.html
+++ b/templates/web/base/admin/user-form.html
@@ -173,6 +173,7 @@
</ul>
[% END %]
[% END %]
+ [% TRY %][% INCLUDE 'admin/user-form-extra-fields.html' %][% CATCH file %][% END %]
</ul>
<input type="submit" class="btn" name="Submit changes" value="[% loc('Submit changes') %]" >
</form>
diff --git a/templates/web/oxfordshire/admin/user-form-extra-fields.html b/templates/web/oxfordshire/admin/user-form-extra-fields.html
new file mode 100644
index 000000000..c7697fa35
--- /dev/null
+++ b/templates/web/oxfordshire/admin/user-form-extra-fields.html
@@ -0,0 +1,12 @@
+<li>
+ <div class="admin-hint">
+ <p>
+ [% loc(
+ "The user's initials are used when sending inspections to Exor.
+ Only inspectors need to have this field filled in.")
+ %]
+ </p>
+ </div>
+ <label for="initials">[% loc('Initials:') %]</label>
+ <input type='text' class="form-control" name='extra[initials]' id='initials' value='[% user.get_extra_metadata("initials") | html %]'>
+</li>