[% 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 %]
[% IF NOT login_success AND NOT oauth_need_email %] [% TRY %] [% INCLUDE 'report/_update-form-heading.html' %] [% CATCH file %] [% loc( 'Provide an update') %] [% END %] [% IF c.cobrand.moniker != 'stevenage' %]
[% INCLUDE 'report/updates-sidebar-notes.html' %]
[% END %] [% END %] [% INCLUDE 'errors.html' %]
[% IF login_success %] [% PROCESS "report/update/form_user_loggedin.html" %] [% INCLUDE 'report/update/form_update.html' %] [% ELSIF oauth_need_email %]
[% PROCESS "report/form/user_loggedout_by_email.html" object=update type='update' valid_class='validNameU' email_required=1 %]
[% INCLUDE 'report/update/form_update.html' %] [% ELSE %]
[% INCLUDE 'report/update/form_update.html' %]
[% PROCESS "report/update/form_user.html" %] [% END %]