diff options
author | Struan Donald <struan@exo.org.uk> | 2014-04-01 11:13:38 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2014-04-01 11:13:38 +0100 |
commit | ef98c424293497c4714f65dcf0089267d6a63248 (patch) | |
tree | 299c781fc50e91cf058b0af64f7c06702f0ed0e5 | |
parent | 44fc1f6b79a774d50c9cf82e84dcec9ce9df09ac (diff) |
Include title on confirmation screen if applicable
Fixes #156
-rw-r--r-- | src/templates/en/submit_confirm.html | 8 | ||||
-rw-r--r-- | templates/submit_confirm.html | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/templates/en/submit_confirm.html b/src/templates/en/submit_confirm.html index 01e7da8..0bca06d 100644 --- a/src/templates/en/submit_confirm.html +++ b/src/templates/en/submit_confirm.html @@ -14,6 +14,14 @@ <div id="errors"></div> <div class="inputcard"> + <% if ( typeof model.titles_list !== 'undefined' ) { %> + <div> + <select data-role="none" placeholder="Title" id="form_title" name="title" required> + <option value="">Title</option> + <% for ( var i = 0; i < model.titles_list.length; i++ ) { var title = model.titles_list[i]; print( '<option value="' + title + '"' + ( user.title && user.title == title ? ' selected' : '' ) + '>' + title + '</option>' ); } %> + </select> + </div> + <% } %> <div> <input data-role="none" type="text" value="<%= user.name %>" name="name" id="form_name" placeholder="Please enter your name" required> </div> diff --git a/templates/submit_confirm.html b/templates/submit_confirm.html index 6c7b8e2..be34c4d 100644 --- a/templates/submit_confirm.html +++ b/templates/submit_confirm.html @@ -14,6 +14,14 @@ <div id="errors"></div> <div class="inputcard"> + <% if ( typeof model.titles_list !== 'undefined' ) { %> + <div> + <select data-role="none" placeholder="[% loc('Title') %]" id="form_title" name="title" required> + <option value="">[% loc('Title') %]</option> + <% for ( var i = 0; i < model.titles_list.length; i++ ) { var title = model.titles_list[i]; print( '<option value="' + title + '"' + ( user.title && user.title == title ? ' selected' : '' ) + '>' + title + '</option>' ); } %> + </select> + </div> + <% } %> <div> <input data-role="none" type="text" value="<%= user.name %>" name="name" id="form_name" placeholder="[% loc('Please enter your name') %]" required> </div> |