diff options
Diffstat (limited to 'templates/web/base/admin')
-rw-r--r-- | templates/web/base/admin/defecttypes/edit.html | 12 | ||||
-rw-r--r-- | templates/web/base/admin/defecttypes/index.html | 2 | ||||
-rw-r--r-- | templates/web/base/admin/defecttypes/list.html | 14 | ||||
-rw-r--r-- | templates/web/base/admin/exordefects/index.html | 14 | ||||
-rw-r--r-- | templates/web/base/admin/responsepriorities/edit.html | 2 |
5 files changed, 22 insertions, 22 deletions
diff --git a/templates/web/base/admin/defecttypes/edit.html b/templates/web/base/admin/defecttypes/edit.html index 65c8a5ab7..a3b324d11 100644 --- a/templates/web/base/admin/defecttypes/edit.html +++ b/templates/web/base/admin/defecttypes/edit.html @@ -1,7 +1,7 @@ -[% INCLUDE 'admin/header.html' title=tprintf(loc('Defect Type for %s'), body.name) -%] +[% INCLUDE 'admin/header.html' title=tprintf(('Defect Type for %s'), body.name) -%] [% dt = defect_type %] -[% UNLESS dt.id %]<h3>[% loc('New defect type') %]</h3>[% END %] +[% UNLESS dt.id %]<h3>[% ('New defect type') %]</h3>[% END %] <form method="post" action="[% c.uri_for('', body.id, dt.id || 'new' ) %]" @@ -10,17 +10,17 @@ class="validate"> <p> - <strong>[% loc('Name:') %] </strong> + <strong>[% ('Name:') %] </strong> <input type="text" name="name" class="required form-control" size="30" value="[% dt.name | html %]"> </p> <p> - <strong>[% loc('Description:') %] </strong> + <strong>[% ('Description:') %] </strong> <input type="text" name="description" class="form-control" size="30" value="[% dt.description | html %]"> </p> <div class="admin-hint"> <p> - [% loc('If you only want this defect type to be an option for specific categories, pick them here. By default they will show for all categories.') %] + [% ('If you only want this defect type to be an option for specific categories, pick them here. By default they will show for all categories.') %] </p> </div> @@ -30,7 +30,7 @@ <p> <input type="hidden" name="token" value="[% csrf_token %]" > - <input type="submit" class="btn" name="save" value="[% dt.id ? loc('Save changes') : loc('Create defect type') %]" > + <input type="submit" class="btn" name="save" value="[% dt.id ? ('Save changes') : ('Create defect type') %]" > </p> </form> diff --git a/templates/web/base/admin/defecttypes/index.html b/templates/web/base/admin/defecttypes/index.html index 2e6ce7e1b..c45a09e6e 100644 --- a/templates/web/base/admin/defecttypes/index.html +++ b/templates/web/base/admin/defecttypes/index.html @@ -1,4 +1,4 @@ -[% INCLUDE 'admin/header.html' title=loc('Defect Types') -%] +[% INCLUDE 'admin/header.html' title=('Defect Types') -%] <ul> [% FOR body IN bodies %] diff --git a/templates/web/base/admin/defecttypes/list.html b/templates/web/base/admin/defecttypes/list.html index 1a9cb4fa7..783bd085c 100644 --- a/templates/web/base/admin/defecttypes/list.html +++ b/templates/web/base/admin/defecttypes/list.html @@ -1,11 +1,11 @@ -[% INCLUDE 'admin/header.html' title=tprintf(loc('Defect Types for %s'), body.name) -%] +[% INCLUDE 'admin/header.html' title=tprintf(('Defect Types for %s'), body.name) -%] <table> <thead> <tr> - <th> [% loc('Name') %] </th> - <th> [% loc('Description') %] </th> - <th> [% loc('Categories') %] </th> + <th> [% ('Name') %] </th> + <th> [% ('Description') %] </th> + <th> [% ('Categories') %] </th> <th> </th> </tr> </thead> @@ -17,19 +17,19 @@ <td> [% d.description | html %] </td> <td> [% UNLESS d.contacts.size %] - <em>[% loc('All categories') %]</em> + <em>[% ('All categories') %]</em> [% ELSE %] [% FOR contact IN d.contacts %] [% contact.category %][% ',' UNLESS loop.last %] [% END %] [% END %] </td> - <td> <a href="[% c.uri_for('', body.id, d.id) %]" class="btn">[% loc('Edit') %]</a> </td> + <td> <a href="[% c.uri_for('', body.id, d.id) %]" class="btn">[% ('Edit') %]</a> </td> </tr> [% END %] </tbody> </table> -<a href="[% c.uri_for('', body.id, 'new') %]" class="btn">[% loc('New defect type') %]</a> +<a href="[% c.uri_for('', body.id, 'new') %]" class="btn">[% ('New defect type') %]</a> [% INCLUDE 'admin/footer.html' %] diff --git a/templates/web/base/admin/exordefects/index.html b/templates/web/base/admin/exordefects/index.html index 06d2aa7a5..dba58198d 100644 --- a/templates/web/base/admin/exordefects/index.html +++ b/templates/web/base/admin/exordefects/index.html @@ -1,4 +1,4 @@ -[% INCLUDE 'admin/header.html' title=loc('Download Exor RDI') -%] +[% INCLUDE 'admin/header.html' title=('Download Exor RDI') -%] [% IF error_message %] <h2>Error</h2> @@ -7,20 +7,20 @@ <form method="get" action="[% c.uri_for('download') %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8"> <p> - <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" + <label for="start_date">[% ('Start Date:') %]</label><input type="text" class="form-control" + placeholder="[% ('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" class="form-control" - placeholder="[% loc('Click here or enter as dd/mm/yyyy') %]" name="end_date" id="end_date" size="5" + <label for="end_date">[% ('End Date:') %]</label><input type="text" class="form-control" + placeholder="[% ('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> <p> - [% loc('Inspector:') %] <select class="form-control" id='user_id' name='user_id'> - <option value=''>[% loc('All inspectors') %]</option> + [% ('Inspector:') %] <select class="form-control" id='user_id' name='user_id'> + <option value=''>[% ('All inspectors') %]</option> [% FOR inspector IN inspectors %] <option value="[% inspector.id %]" [% 'selected' IF user_id == inspector.id %]>[% inspector.name %] ([% inspector.get_extra_metadata('initials') %])</option> [% END %] diff --git a/templates/web/base/admin/responsepriorities/edit.html b/templates/web/base/admin/responsepriorities/edit.html index a4dc61213..07d6906ba 100644 --- a/templates/web/base/admin/responsepriorities/edit.html +++ b/templates/web/base/admin/responsepriorities/edit.html @@ -24,7 +24,7 @@ </p> </div> <p> - <strong>[% loc('External ID:') %] </strong> + <strong>[% loc('External ID') %]:</strong> <input type="text" name="external_id" class="form-control" size="30" value="[% rp.external_id | html %]"> </p> |