[% PROCESS 'report/form/private_details.html' %] [% can_contribute_as_body = c.user.from_body AND c.user.has_permission_to("contribute_as_body", bodies_ids) %] [% IF js %] [% ELSE %] [% can_contribute_as_another_user = c.user.has_permission_to("contribute_as_another_user", bodies_ids) %] [% can_contribute_as_anonymous_user = c.user.has_permission_to("contribute_as_anonymous_user", bodies_ids) %] [% IF can_contribute_as_another_user OR can_contribute_as_anonymous_user OR can_contribute_as_body %] [% INCLUDE form_as %] [% END %] [% END %] [% BLOCK form_as %] [% END %] [% IF c.user.phone_verified AND NOT c.cobrand.call_hook('disable_phone_number_entry') %] [% END %] [% IF c.user.email_verified %] [% IF field_errors.username_register %]

[% field_errors.username_register %]

[% END %] [% END %] [% INCLUDE 'report/new/extra_name.html' %] [% PROCESS 'user/_anonymity.html' anonymous = report.anonymous %] [% INCLUDE 'report/form/user_name.html' object=report %] [% INCLUDE 'report/_show_name_label.html' %] [% IF NOT c.user.phone_verified AND NOT c.cobrand.call_hook('disable_phone_number_entry') %] [% IF field_errors.phone %]

[% field_errors.phone %]

[% END %] [% END %] [% IF NOT c.user.email_verified %] [% END %] [% IF c.user.has_permission_to("report_inspect", bodies_ids) OR c.user.has_permission_to("report_mark_private", bodies_ids) %]
[% END %] [% IF can_contribute_as_body %] [% TRY %][% INCLUDE 'report/form/private_comments.html' %][% CATCH file %][% END %] [% END %] [% PROCESS 'report/form/submit.html' %]