% from "templates/macros/icons.html" import icon with context % from "templates/macros/postal-addresses.html" import postal_address_form_v2 with context % macro identity_form(identity, wanted, required=True) % include "templates/sandbox-warning.html" % set required = 'required' if required else ''

{{ _("Personal Information") }}

% if 'name' in wanted % endif % if 'postal_address.country' in wanted % endif % if 'nationality' in wanted % endif % if 'birthdate' in wanted % endif % if 'occupation' in wanted % endif % if 'postal_address' in wanted

{{ _("Postal Address") }}

{{ postal_address_form_v2(saved=identity.postal_address or None, required=required) }} % endif % if 'organization_name' in wanted % if 'postal_address' in wanted

{{ _("Organization Information") }}

% endif

{{ _("Are you acting as the representative of an organization?") }}

% if 'headquarters_address' in wanted

{{ _("Headquarters Address") }}

{{ postal_address_form_v2( prefix='headquarters_address', saved=identity.headquarters_address or None, required=required ) }} % endif
% endif
% endmacro