Skip to content

Commit

Permalink
[Bromley] Tidy up some form templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Dec 6, 2018
1 parent ea41398 commit 42d7d8a
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 83 deletions.
2 changes: 2 additions & 0 deletions templates/web/base/report/update/form_update.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
</div>
[% END %]

[% TRY %][% PROCESS 'report/update/before_update.html' %][% CATCH file %][% END %]

<label for="form_update">[% loc( 'Update' ) %]</label>
[% IF c.user AND (c.user.is_superuser OR c.user.belongs_to_body(problem.bodies_str)) %]
[% INCLUDE 'admin/response_templates_select.html' for='form_update' %]
Expand Down
30 changes: 0 additions & 30 deletions templates/web/bromley/report/update-form.html

This file was deleted.

9 changes: 9 additions & 0 deletions templates/web/bromley/report/update/before_update.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div class="general-notes">
<p>Please note that new and separate occurrences of issues
should be logged as new reports, to avoid conflicting
information or updates and ensure the information is passed
promptly to our teams. Please log any new issue via
<a href="https://www.bromley.gov.uk/report">https://www.bromley.gov.uk/report</a>
using the map marker and description to detail where the issue
is located.</p>
</div>
53 changes: 0 additions & 53 deletions templates/web/bromley/report/update/form_update.html

This file was deleted.

22 changes: 22 additions & 0 deletions templates/web/bromley/report/update/form_user.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- report/update/form_user.html -->
[% PROCESS 'report/form/user.html' %]

<div class="hidden-js js-new-report-user-shown">
<div class="hidden-nojs form-section-preview">
<h2 class="form-section-heading">[% loc('Your update') %]</h2>
<p class="js-form-section-preview" data-source="#form_update"></p>
<button class="btn btn--block js-new-report-user-hide">[% loc('Edit your update') %]</button>
</div>

[% IF c.user_exists %]
[% PROCESS "report/update/form_user_loggedin.html" %]
[% ELSE %]
[% PROCESS "report/form/user_loggedout.html" type='update' object=update %]
[% END %]

</div>

[%# Same as parent apart from this line %]
<p>Your information will only be used in accordance with our <a href="/faq#privacy">privacy policy</a>.</p>

<!-- /report/update/form_user.html -->
Empty file.

0 comments on commit 42d7d8a

Please sign in to comment.