blob: 4c631d5e747784a51b22b50acf9a98dda0439ff8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
[% allow_creation = (!c.cobrand.only_authed_can_create || (c.user && c.user.from_body)) AND NOT c.cobrand.updates_disallowed(problem) %]
[% RETURN IF NOT allow_creation %]
<div id="update_form">
[% IF NOT login_success AND NOT oauth_need_email %]
[% TRY %]
[% INCLUDE 'report/_update-form-heading.html' %]
[% CATCH file %]
<h2[% IF two_column_sidebar %] class="hidden-js"[% END %]>[% loc( 'Provide an update') %]</h2>
[% END %]
[% IF c.cobrand.moniker != 'stevenage' %]
<div class="general-notes">
[% INCLUDE 'report/updates-sidebar-notes.html' %]
</div>
[% END %]
[% END %]
[% INCLUDE 'errors.html' %]
<form method="post" action="[% c.uri_for( '/report/update' ) %]" id="form_update_form" name="updateForm" class="validate"[% IF c.cobrand.allow_photo_upload %] enctype="multipart/form-data"[% END %]>
<input type="hidden" name="token" value="[% csrf_token %]">
<fieldset>
[% IF login_success %]
[% PROCESS "report/update/form_user_loggedin.html" %]
[% INCLUDE 'report/update/form_update.html' %]
[% ELSIF oauth_need_email %]
<div id="form_sign_in">
[% PROCESS "report/form/user_loggedout_by_email.html" object=update type='update' valid_class='validNameU' email_required=1 %]
<input type="hidden" name="oauth_need_email" value="1">
</div>
[% INCLUDE 'report/update/form_update.html' %]
[% ELSE %]
<div class="js-new-report-user-hidden">
[% INCLUDE 'report/update/form_update.html' %]
</div>
[% PROCESS "report/update/form_user.html" %]
[% END %]
</fieldset>
</form>
</div>
|