diff options
Diffstat (limited to 'templates/web/base/admin')
-rw-r--r-- | templates/web/base/admin/body-form.html | 36 | ||||
-rw-r--r-- | templates/web/base/admin/body.html | 14 | ||||
-rw-r--r-- | templates/web/base/admin/category_edit.html | 14 | ||||
-rw-r--r-- | templates/web/base/admin/index.html | 8 | ||||
-rw-r--r-- | templates/web/base/admin/report_blocks.html | 4 | ||||
-rw-r--r-- | templates/web/base/admin/report_edit.html | 28 | ||||
-rw-r--r-- | templates/web/base/admin/responsepriorities/edit.html | 4 | ||||
-rw-r--r-- | templates/web/base/admin/stats.html | 8 | ||||
-rw-r--r-- | templates/web/base/admin/template_edit.html | 8 | ||||
-rw-r--r-- | templates/web/base/admin/update_edit.html | 14 | ||||
-rw-r--r-- | templates/web/base/admin/user-form.html | 14 |
11 files changed, 77 insertions, 75 deletions
diff --git a/templates/web/base/admin/body-form.html b/templates/web/base/admin/body-form.html index 13e688097..303afb682 100644 --- a/templates/web/base/admin/body-form.html +++ b/templates/web/base/admin/body-form.html @@ -22,7 +22,7 @@ </div> <p> <label for="name">[% loc('Name') %]</label> - <input type="text" name="name" id="name" value="[% body.name | html %]" size="50"> + <input type="text" class="form-control" name="name" id="name" value="[% body.name | html %]" size="50"> </p> <div class="admin-hint"> @@ -35,7 +35,7 @@ </div> <p> <label for="parent">[% loc('Parent') %]</label> - <select name="parent" id="parent"> + <select class="form-control" name="parent" id="parent"> <option value=""> -- [% loc('Select a body') %] -- </option> [% FOR b IN bodies %] <option value="[% b.id %]"[% ' selected' IF body.parent.id == b.id %]>[% b.name %]</option> @@ -73,7 +73,7 @@ </div> <p> <label for="area_ids">[% loc('Area covered') %]</label> - <select name="area_ids" id="area_ids" multiple> + <select class="form-control" name="area_ids" id="area_ids" multiple> <option value=""> -- [% loc('Select an area') %] -- </option> [% SET body_areas = body.areas %] [% FOR area IN areas %] @@ -85,7 +85,7 @@ <p> <label for="external_url">[% loc('External URL') %]</label> - <input type="text" name="external_url" id="external_url" value="[% body.external_url | html %]" size="50"> + <input type="text" class="form-control" name="external_url" id="external_url" value="[% body.external_url | html %]" size="50"> </p> <div class="admin-hint"> <p>[% loc( "You can mark a body as deleted if you do not want it to be active on the site." ) %]</p> @@ -105,7 +105,7 @@ </div> <p> <label for="send_method">Send Method</label> - <select name="send_method" id="send_method"> + <select class="form-control" name="send_method" id="send_method"> <option value=""> -- Select a method -- </option> [% FOR method IN send_methods %] <option value="[% method %]"[% ' selected' IF body.send_method == method %]>[% method %]</option> @@ -118,7 +118,7 @@ [% loc( "These settings are for bodies that use Open311 (or other back-end integration) to receive problem reports.<br> <strong>You don't need to set them if the Send Method is email.</strong>. - For more information on Open311, see + For more information on Open311, see <a href='https://www.mysociety.org/2013/01/17/open311-explained/' class='admin-offsite-link'>this article</a>. " ) %] @@ -127,14 +127,14 @@ <div class="admin-hint"> <p> [% loc( - "The <strong>endpoint</strong> is the URL of the service that FixMyStreet will connect to + "The <strong>endpoint</strong> is the URL of the service that FixMyStreet will connect to when sending reports to this body." ) %] </p> </div> <p> <label for="endpoint">[% loc('Endpoint') %]</label> - <input type="text" name="endpoint" id="endpoint" value="[% body.endpoint | html %]" size="50"> + <input type="text" class="form-control" name="endpoint" id="endpoint" value="[% body.endpoint | html %]" size="50"> </p> <div class="admin-hint"> @@ -147,7 +147,7 @@ </div> <p> <label for="jurisdiction">Open311 Jurisdiction</label> - <input type="text" name="jurisdiction" id="jurisdiction" value="[% body.jurisdiction | html %]" size="50"> + <input type="text" class="form-control" name="jurisdiction" id="jurisdiction" value="[% body.jurisdiction | html %]" size="50"> </p> <div class="admin-hint"> @@ -160,7 +160,7 @@ </div> <p> <label for="api_key">Open311 API Key</label> - <input type="text" name="api_key" id="api_key" value="[% body.api_key | html %]" size="25"> + <input type="text" class="form-control" name="api_key" id="api_key" value="[% body.api_key | html %]" size="25"> </p> <div class="admin-hint"> @@ -168,7 +168,7 @@ [% loc( "Enable <strong>Open311 update-sending</strong> if the endpoint will send and receive updates to existing reports. If you're not sure, it probably does not, so leave this unchecked. - For more information, see + For more information, see <a href='https://www.mysociety.org/2013/02/20/open311-extended/' class='admin-offsite-link'>this article</a>." ) %] </p> @@ -181,7 +181,7 @@ <div class="admin-hint"> <p> [% loc( - "If you've enabled Open311 update-sending above, you must identify which + "If you've enabled Open311 update-sending above, you must identify which FixMyStreet <strong>user</strong> will be attributed as the creator of those updates when they are shown on the site. Enter the ID (number) of that user." ) %] @@ -198,7 +198,7 @@ <div class="admin-hint"> <p> [% loc( - "If you've enabled Open311 update-sending above, enable <strong>suppression of alerts</strong> + "If you've enabled Open311 update-sending above, enable <strong>suppression of alerts</strong> if you do <strong>not</strong> want that user to be notified whenever these updates are created." ) %] </p> @@ -211,7 +211,7 @@ <div class="admin-hint"> <p> [% loc( - "If you've enabled Open311 update-sending above, Open311 usually only accepts OPEN or CLOSED status in + "If you've enabled Open311 update-sending above, Open311 usually only accepts OPEN or CLOSED status in its updates. Enable <strong>extended Open311 stauses</strong> if you want to allow extra states to be passed. Check that your cobrand supports this feature before switching it on." ) %] @@ -222,11 +222,11 @@ <label for="send_extended_statuses" class="inline">Send extended Open311 statuses with service request updates</label> </p> </div> - + <div class="admin-hint"> <p> [% loc( - "Enable this <strong>can be devolved</strong> setting if one or more contacts have a + "Enable this <strong>can be devolved</strong> setting if one or more contacts have a different endpoint (and send method) from the body's. For example, if reports for some categories of problem must be emailed, while others can be sent over Open311." ) %] @@ -239,11 +239,11 @@ <input type="checkbox" id="can_be_devolved" name="can_be_devolved"[% ' checked' IF body.can_be_devolved %]> <label for="can_be_devolved" class="inline">Send method or endpoints can be devolved to contacts (i.e, can be different from the body's)</label> </p> - + <p> <input type="hidden" name="posted" value="body"> <input type="hidden" name="token" value="[% csrf_token %]"> - <input type="submit" value="[% body ? loc('Update body') : loc('Add body') %]"> + <input type="submit" class="btn" value="[% body ? loc('Update body') : loc('Add body') %]"> </p> </form> diff --git a/templates/web/base/admin/body.html b/templates/web/base/admin/body.html index 6d23c1458..065cafe2d 100644 --- a/templates/web/base/admin/body.html +++ b/templates/web/base/admin/body.html @@ -102,12 +102,12 @@ <p> <input type="hidden" name="posted" value="update"> <input type="hidden" name="token" value="[% csrf_token %]"> - <input type="submit" name="Update statuses" value="[% loc('Update statuses') %]"> + <input type="submit" class="btn" name="Update statuses" value="[% loc('Update statuses') %]"> </p> </form> <p class="fms-admin-info"> - [% loc("Each contact for the body has a category, which is displayed to the public. + [% loc("Each contact for the body has a category, which is displayed to the public. Different categories <strong>can have the same contact</strong> (email address). This means you can add many categories even if you only have one contact for the body. ") %] @@ -138,12 +138,12 @@ </p> </div> <p> - <strong>[% loc('Category:') %] </strong><input type="text" name="category" size="30" value="[% contact.category | html %]"> + <strong>[% loc('Category:') %] </strong><input type="text" class="form-control" name="category" size="30" value="[% contact.category | html %]"> </p> <div class="admin-hint"> <p> - [% loc("The <strong>email address</strong> is the destination to which reports about this category will be sent. + [% loc("The <strong>email address</strong> is the destination to which reports about this category will be sent. Other categories for this body may have the same email address.") %] </p> [% IF (body.send_method AND body.send_method != 'Email') OR body.can_be_devolved %] @@ -154,7 +154,7 @@ </div> <p> - <strong>[% loc('Email address:') %] </strong><input type="text" name="email" size="30" value="[% contact.email | html %]"> + <strong>[% loc('Email address:') %] </strong><input type="text" class="form-control" name="email" size="30" value="[% contact.email | html %]"> </p> <div class="admin-hint"> @@ -170,7 +170,7 @@ <div class="admin-hint"> <p> - [% loc("Check <strong>deleted</strong> to remove the category from use. + [% loc("Check <strong>deleted</strong> to remove the category from use. It will not appear as an available category in the drop-down menu on the report-a-problem page.") %] </p> </div> @@ -217,7 +217,7 @@ <p> <input type="hidden" name="posted" value="new" > <input type="hidden" name="token" value="[% csrf_token %]" > - <input type="submit" name="Create category" value="[% errors ? loc('Save changes') : loc('Create category') %]" > + <input type="submit" class="btn" name="Create category" value="[% errors ? loc('Save changes') : loc('Create category') %]" > </p> <div> diff --git a/templates/web/base/admin/category_edit.html b/templates/web/base/admin/category_edit.html index 05fa2ca4e..7cc45f80f 100644 --- a/templates/web/base/admin/category_edit.html +++ b/templates/web/base/admin/category_edit.html @@ -25,12 +25,12 @@ <input type="hidden" name="token" value="[% csrf_token %]" > <p><strong>[% loc('Email:') %] </strong> - <input type="text" name="email" value="[% contact.email | html %]" size="30"> + <input type="text" class="form-control" name="email" value="[% contact.email | html %]" size="30"> <p> [% IF c.cobrand.moniker != 'zurich' %] <input type="checkbox" name="confirmed" value="1" id="confirmed"[% ' checked' IF contact.confirmed %]> - <label class="inline" for="confirmed">[% loc('Confirmed' ) %]</label> + <label class="inline" for="confirmed">[% loc('Confirmed' ) %]</label> [% ELSE %] <input type="hidden" name="confirmed" value="1"> [% END %] @@ -63,22 +63,22 @@ <form method="post" action="[% c.uri_for('body', body_id ) %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8"> <p> <label for="endpoint">Endpoint</label> - <input type="text" name="endpoint" id="endpoint" value="[% contact.endpoint | html %]" size="50"> + <input type="text" class="form-control" name="endpoint" id="endpoint" value="[% contact.endpoint | html %]" size="50"> </p> <p> <label for="jurisdiction">Jurisdiction</label> - <input type="text" name="jurisdiction" id="jurisdiction" value="[% contact.jurisdiction | html %]" size="50"> + <input type="text" class="form-control" name="jurisdiction" id="jurisdiction" value="[% contact.jurisdiction | html %]" size="50"> </p> <p> <label for="api_key">Api Key</label> - <input type="text" name="api_key" id="api_key" value="[% contact.api_key | html %]" size="25"> + <input type="text" class="form-control" name="api_key" id="api_key" value="[% contact.api_key | html %]" size="25"> </p> <p> <label for="send_method">Send Method</label> - <select name="send_method"> + <select class="form-control" name="send_method"> <option value=""> -- Select a method -- </option> [% FOR method IN send_methods %] <option value="[% method %]"[% ' selected' IF contact.send_method == method %]>[% method %]</option> @@ -88,7 +88,7 @@ [% END %] <input type="hidden" name="posted" value="new"> - <p><input type="submit" name="Save changes" value="[% loc('Save changes') %]"> + <p><input type="submit" class="btn" name="Save changes" value="[% loc('Save changes') %]"> </form> [% IF contact.extra %] diff --git a/templates/web/base/admin/index.html b/templates/web/base/admin/index.html index beb4dad7f..f573f0e7a 100644 --- a/templates/web/base/admin/index.html +++ b/templates/web/base/admin/index.html @@ -22,18 +22,18 @@ and to receive notices of updates. <form method="get" action="[% c.uri_for('reports') %]" accept-charset="utf-8"> <p><label for="search_reports">[% loc('Search Reports') %]</label> - <input type="text" name="search" size="30" id="search_reports" value="[% searched | html %]"> + <input type="text" class="form-control" name="search" size="30" id="search_reports" value="[% searched | html %]"> </form> <form method="get" action="[% c.uri_for('users') %]" accept-charset="utf-8"> <p><label for="search_users">[% loc('Search Users') %]</label> - <input type="text" name="search" size="30" id="search_users" value="[% searched | html %]"> + <input type="text" class="form-control" name="search" size="30" id="search_users" value="[% searched | html %]"> </form> [% IF c.user.is_superuser %] <form method="get" action="[% c.uri_for('bodies') %]"> <label for="search_body">[% loc('Edit body details') %]</label> - <select id="search_body" name="body"> + <select class="form-control" id="search_body" name="body"> [% FOREACH body IN bodies %] [%- SET id = body.id %] <option[% IF body.deleted %] class="adminhidden"[% END %] value="[% body.id %]"> @@ -42,7 +42,7 @@ and to receive notices of updates. </option> [% END %] </select> - <input type="submit" value="[% loc('Go') %]"> + <input type="submit" class="btn" value="[% loc('Go') %]"> </form> [% END %] diff --git a/templates/web/base/admin/report_blocks.html b/templates/web/base/admin/report_blocks.html index 941bff821..3561d865d 100644 --- a/templates/web/base/admin/report_blocks.html +++ b/templates/web/base/admin/report_blocks.html @@ -38,12 +38,12 @@ SET state_groups = [ [% BLOCK abuse_button -%] [% IF allowed_pages.abuse_edit -%] -[% IF email_in_abuse %]<small>[% loc('(Email in abuse table)') %]</small>[% ELSE %]<input type="submit" name="banuser" value="[% loc('Ban email address') %]" />[% END %] +[% IF email_in_abuse %]<small>[% loc('(Email in abuse table)') %]</small>[% ELSE %]<input type="submit" class="btn" name="banuser" value="[% loc('Ban email address') %]" />[% END %] [%- END %] [%- END %] [% BLOCK flag_button -%] -[% IF user.flagged || user_flagged %]<input type="submit" name="removeuserflag" value="[% loc('Remove flag') %]">[% ELSE %]<input type="submit" name="flaguser" value="[% loc('Flag user') %]" />[% END %] +[% IF user.flagged || user_flagged %]<input type="submit" class="btn" name="removeuserflag" value="[% loc('Remove flag') %]">[% ELSE %]<input type="submit" class="btn" name="flaguser" value="[% loc('Flag user') %]" />[% END %] [%- END %] [%# note: date format here (i.e., dd.mm.YYYY) currently used by Zurich %] diff --git a/templates/web/base/admin/report_edit.html b/templates/web/base/admin/report_edit.html index 96e59d1c4..02e75563c 100644 --- a/templates/web/base/admin/report_edit.html +++ b/templates/web/base/admin/report_edit.html @@ -21,7 +21,7 @@ <div class="sidebar"> - <p align="center"><input type="submit" name="Submit changes" value="[% loc('Submit changes') %]"></p> + <p align="center"><input type="submit" class="btn" name="Submit changes" value="[% loc('Submit changes') %]"></p> <ul> [%- cobrand_data = problem.cobrand_data; @@ -81,9 +81,9 @@ class="admin-offsite-link">[% problem.latitude %], [% problem.longitude %]</a> ([% problem.send_method_used %]) [% END %] [% IF problem.state == 'confirmed' AND problem.whensent %] - <input data-confirm="[% loc('Are you sure?') %]" type="submit" name="resend" value="[% loc('Resend report') %]"> + <input data-confirm="[% loc('Are you sure?') %]" class="btn" type="submit" name="resend" value="[% loc('Resend report') %]"> [% ELSIF NOT problem.whensent %] - <input type="submit" name="mark_sent" value="[% loc('Mark as sent') %]"> + <input type="submit" class="btn" name="mark_sent" value="[% loc('Mark as sent') %]"> [% END %] </li> <li class="sm">[% loc('Last update:') %] [% PROCESS format_time time=problem.lastupdate %]</li> @@ -95,11 +95,11 @@ class="admin-offsite-link">[% problem.latitude %], [% problem.longitude %]</a> <li>[% loc('Going to send questionnaire?') %] [% IF problem.send_questionnaire %][% loc('Yes') %][% ELSE %][% loc('No') %][% END %]</li> <li><label for="external_id">[% loc('External ID') %]:</label> - <input type="text" name="external_id" id="external_id" value="[% problem.external_id | html %]"> + <input type="text" class="form-control" name="external_id" id="external_id" value="[% problem.external_id | html %]"> <li><label for="external_body">[% loc('External body') %]:</label> - <input type="text" name="external_body" body="external_body" value="[% problem.external_body | html %]"> + <input type="text" class="form-control" name="external_body" body="external_body" value="[% problem.external_body | html %]"> <li><label for="external_team">[% loc('External team') %]:</label> - <input type="text" name="external_team" team="external_team" value="[% problem.external_team | html %]"> + <input type="text" class="form-control" name="external_team" team="external_team" value="[% problem.external_team | html %]"> </ul> </div> @@ -108,12 +108,12 @@ class="admin-offsite-link">[% problem.latitude %], [% problem.longitude %]</a> <ul class="plain-list"> <li><label for='title'>[% loc('Subject:') %]</label> - <input size=60 type='text' id='title' name='title' value='[% problem.title | html %]'></li> + <input size=60 type='text' class="form-control" id='title' name='title' value='[% problem.title | html %]'></li> <li><label for='detail'>[% loc('Details:') %]</label> -<textarea name='detail' id='detail' cols=60 rows=10>[% problem.detail | html %]</textarea></li> +<textarea class="form-control" name='detail' id='detail' cols=60 rows=10>[% problem.detail | html %]</textarea></li> <li><label class="inline-text" for="state">[% loc('State:') %]</label> -<select name="state" id="state"> +<select class="form-control" name="state" id="state"> [% FOREACH group IN state_groups %] <optgroup label="[% group.0 %]"> [% FOREACH state IN group.1 %] @@ -123,7 +123,7 @@ class="admin-offsite-link">[% problem.latitude %], [% problem.longitude %]</a> [% END %] </select></li> <li><label class="inline-text" for="category">[% loc('Category:') %]</label> -<select name="category" id="category"> +<select class="form-control" name="category" id="category"> [% IF NOT problem.category OR NOT categories.grep(problem.category).size %] <optgroup label="[% loc('Existing category') %]"> <option selected value="[% problem.category | html %]">[% (problem.category OR '-') | html %]</option> @@ -138,14 +138,14 @@ class="admin-offsite-link">[% problem.latitude %], [% problem.longitude %]</a> [% END %] </select></li> <li><label class="inline-text" for="anonymous">[% loc('Anonymous:') %]</label> -<select name="anonymous" id="anonymous"> +<select class="form-control" name="anonymous" id="anonymous"> <option [% 'selected ' IF problem.anonymous %]value="1">[% loc('Yes') %]</option> <option [% 'selected ' IF !problem.anonymous %]value="0">[% loc('No') %]</option> </select></li> <li><label for="name">[% loc('Name:') %]</label> - <input type='text' name='name' id='name' value='[% problem.name | html %]'></li> + <input type='text' class="form-control" name='name' id='name' value='[% problem.name | html %]'></li> <li><label for="email">[% loc('Email:') %]</label> - <input type='text' id='email' name='email' value='[% problem.user.email | html %]'> + <input type='text' class="form-control" id='email' name='email' value='[% problem.user.email | html %]'> [% PROCESS abuse_button %] [% PROCESS flag_button user=problem.user %] </li> @@ -177,7 +177,7 @@ class="admin-offsite-link">[% problem.latitude %], [% problem.longitude %]</a> [% END %] </ul> -<input type="submit" name="Submit changes" value="[% loc('Submit changes') %]"> +<input type="submit" class="btn" name="Submit changes" value="[% loc('Submit changes') %]"> </form> </div> diff --git a/templates/web/base/admin/responsepriorities/edit.html b/templates/web/base/admin/responsepriorities/edit.html index b05ebfaf9..89f41a069 100644 --- a/templates/web/base/admin/responsepriorities/edit.html +++ b/templates/web/base/admin/responsepriorities/edit.html @@ -11,7 +11,7 @@ <p> <strong>[% loc('Name:') %] </strong> - <input type="text" name="name" class="required" size="30" value="[% rp.name | html %]"> + <input type="text" name="name" class="required form-control" size="30" value="[% rp.name | html %]"> </p> <p> <strong>[% loc('Categories:') %]</strong> @@ -34,7 +34,7 @@ </p> <p> <input type="hidden" name="token" value="[% csrf_token %]" > - <input type="submit" name="Edit priorities" value="[% rp.id ? loc('Save changes') : loc('Create priority') %]" > + <input type="submit" class="btn" name="Edit priorities" value="[% rp.id ? loc('Save changes') : loc('Create priority') %]" > </p> </form> diff --git a/templates/web/base/admin/stats.html b/templates/web/base/admin/stats.html index 897e2fc44..535f04d18 100644 --- a/templates/web/base/admin/stats.html +++ b/templates/web/base/admin/stats.html @@ -68,13 +68,13 @@ <form method="post" action="[% c.uri_for('stats') %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8"> <p> - <label for="start_date">[% loc('Start Date:') %]</label><input type="text" + <label for="start_date">[% loc('Start Date:') %]</label><input type="text" class="form-control" placeholder="[% loc('Click here or enter as dd/mm/yyyy') %]" name="start_date" id="start_date" value="[% start_date ? start_date.strftime( '%d/%m/%Y') : '' | html %]" /> </p> <p> - <label for="end_date">[% loc('End Date:') %]</label><input type="text" + <label for="end_date">[% loc('End Date:') %]</label><input type="text" class="form-control" placeholder="[% loc('Click here or enter as dd/mm/yyyy') %]" name="end_date" id="end_date" size="5" value="[% end_date ? end_date.strftime( '%d/%m/%Y') : '' | html %]" /> </p> @@ -89,7 +89,7 @@ [% IF c.user.is_superuser %] <p> - [% loc('Council:') %] <select id='body' name='body'> + [% loc('Council:') %] <select class="form-control" id='body' name='body'> <option value=''>[% loc('No council') %]</option> [% FOR body IN bodies %] <option value="[% body.id %]"[% ' selected' IF body.id == selected_body %]>[% body.name %]</option> @@ -99,7 +99,7 @@ [% END %] <p> - <input type="submit" name="getcounts" size="30" id="getcounts" value="Get Count" /> + <input type="submit" class="btn" name="getcounts" size="30" id="getcounts" value="Get Count" /> </p> </form> diff --git a/templates/web/base/admin/template_edit.html b/templates/web/base/admin/template_edit.html index 54058a04c..8ce3c28dd 100644 --- a/templates/web/base/admin/template_edit.html +++ b/templates/web/base/admin/template_edit.html @@ -11,11 +11,11 @@ <p> <strong>[% loc('Title:') %] </strong> - <input type="text" name="title" class="required" size="30" value="[% rt.title| html %]"> + <input type="text" name="title" class="required form-control" size="30" value="[% rt.title| html %]"> </p> <p> <strong>[% loc('Text:') %] </strong> - <textarea name="text" class="required">[% rt.text |html %]</textarea> + <textarea class="form-control" name="text" class="required">[% rt.text |html %]</textarea> </p> <p> <label> @@ -38,11 +38,11 @@ </p> <p> <input type="hidden" name="token" value="[% csrf_token %]" > - <input type="submit" name="Edit templates" value="[% rt.id ? loc('Save changes') : loc('Create template') %]" > + <input type="submit" class="btn" name="Edit templates" value="[% rt.id ? loc('Save changes') : loc('Create template') %]" > </p> [% IF rt.id %] <p> - <input class="delete" type="submit" name="delete_template" value="[% loc('Delete template') %]"> + <input class="delete btn-danger" type="submit" name="delete_template" value="[% loc('Delete template') %]"> </p> [% END %] </form> diff --git a/templates/web/base/admin/update_edit.html b/templates/web/base/admin/update_edit.html index 06bee6010..2b20c50b3 100644 --- a/templates/web/base/admin/update_edit.html +++ b/templates/web/base/admin/update_edit.html @@ -18,19 +18,21 @@ <li><a href="[% uri %]#update_[% update.id %]" class="admin-offsite-link">[% loc('View report on site' )%]</a></li> <li><label for='detail'>[% loc('Text:') %]</label> -<textarea name='text' id='text' cols=60 rows=10>[% update.text | html %]</textarea></li> +<textarea class="form-control" name='text' id='text' cols=60 rows=10>[% update.text | html %]</textarea></li> -<li><label for="anonymous">[% loc('Anonymous:') %]</label> <select name="anonymous" id="anonymous"> +<li><label for="anonymous">[% loc('Anonymous:') %]</label> +<select class="form-control" name="anonymous" id="anonymous"> <option [% 'selected ' IF update.anonymous %]value="1">[% loc('Yes') %]</option> <option [% 'selected ' IF !update.anonymous %]value="0">[% loc('No') %]</option> </select></li> -<li><label for="state">[% loc('State:') %]</label> <select name="state" id="state"> +<li><label for="state">[% loc('State:') %]</label> +<select class="form-control" name="state" id="state"> [% FOREACH state IN [ ['confirmed', loc('Open')], ['hidden', loc('Hidden')], ['unconfirmed',loc('Unconfirmed')] ] %] <option [% 'selected ' IF state.0 == update.state %] value="[% state.0 %]">[% state.1 %]</option> [% END %] </select></li> -<li>[% loc('Name:') %] <input type='text' name='name' id='name' value='[% update.name | html %]'></li> -<li>[% loc('Email:') %] <input type='text' id='email' name='email' value='[% update.user.email | html %]'> +<li>[% loc('Name:') %] <input type='text' class="form-control" name='name' id='name' value='[% update.name | html %]'></li> +<li>[% loc('Email:') %] <input type='text' class="form-control" id='email' name='email' value='[% update.user.email | html %]'> [%- IF update.user.from_body && update.user.from_body.id == update.problem.bodies_str %] [% ' (' _ tprintf(loc('user is from same council as problem - %d'), update.user.from_body.id ) _')' %] [% END -%] @@ -72,6 +74,6 @@ [% END %] </ul> -<input type="submit" name="Submit changes" value="[% loc('Submit changes') %]" ></form> +<input type="submit" class="btn" name="Submit changes" value="[% loc('Submit changes') %]" ></form> [% INCLUDE 'admin/footer.html' %] diff --git a/templates/web/base/admin/user-form.html b/templates/web/base/admin/user-form.html index 87324666d..5adc200a1 100644 --- a/templates/web/base/admin/user-form.html +++ b/templates/web/base/admin/user-form.html @@ -16,12 +16,12 @@ </p> </div> <label for="name">[% loc('Name:') %]</label> - <input type='text' name='name' id='name' value='[% user.name | html %]'> + <input type='text' class="form-control" name='name' id='name' value='[% user.name | html %]'> </li> <li><label for="email">[% loc('Email:') %]</label> - <input type='text' id='email' name='email' value='[% user.email | html %]'></li> + <input type='text' class="form-control" id='email' name='email' value='[% user.email | html %]'></li> <li><label for="phone">[% loc('Phone:') %]</label> - <input type='text' id='phone' name='phone' value='[% user.phone | html %]'></li> + <input type='text' class="form-control" id='phone' name='phone' value='[% user.phone | html %]'></li> [% IF c.user.is_superuser || c.cobrand.moniker == 'zurich' %] <li> @@ -35,7 +35,7 @@ %] </p> </div> - [% loc('Body:') %] <select id='body' name='body'> + [% loc('Body:') %] <select class="form-control" id='body' name='body'> <option value=''>[% loc('No body') %]</option> [% FOR body IN bodies %] <option value="[% body.id %]"[% ' selected data-originally-selected' IF body.id == user.from_body.id %]>[% body.name %]</option> @@ -64,7 +64,7 @@ </p> </div> [% loc('Area:') %] - <select id='area_id' name='area_id' [% 'disabled' UNLESS c.user.has_permission_to('user_assign_areas', user.from_body.id) %]> + <select class="form-control" id='area_id' name='area_id' [% 'disabled' UNLESS c.user.has_permission_to('user_assign_areas', user.from_body.id) %]> <option value=''>[% loc('No area') %]</option> [% FOREACH area IN areas %] <option value="[% area.id %]"[% ' selected' IF area.id == user.area_id %]>[% area.name | html %]</option> @@ -98,7 +98,7 @@ </div> [% IF c.user.is_superuser %] [% loc('Trusted by bodies:') %]<br /> - <select id='body' name='trusted_bodies' multiple> + <select class="form-control" id='body' name='trusted_bodies' multiple> [% FOR body IN bodies %] <option value="[% body.id %]"[% ' selected' IF user.has_permission_to('trusted', body.id) %]>[% body.name %]</option> [% END %] @@ -159,5 +159,5 @@ [% END %] [% END %] </ul> - <input type="submit" name="Submit changes" value="[% loc('Submit changes') %]" > + <input type="submit" class="btn" name="Submit changes" value="[% loc('Submit changes') %]" > </form> |