Permalink
Browse files

Fix the user profile update view: be explicit on the additional addre…

…ss field need
  • Loading branch information...
OdyX committed Oct 26, 2018
1 parent 500434e commit 027a753ef2b2cb6229a9834d18ec98766c183d6a
@@ -47,7 +47,7 @@ <h3>{% trans "Emplacement" %}</h3>
{% bootstrap_field form.day layout='horizontal' size='small' %}
{% bootstrap_field form.begin layout='horizontal' size='small' %}
{% bootstrap_field form.place layout='horizontal' size='small' %}
{% include "address_bootstrap_form.html" %}
{% include "address_bootstrap_form.html" with has_additional=True %}
<h3>{% trans "Logistique" %}</h3>
{% bootstrap_field form.superleader layout='horizontal' size='small' %}
{% bootstrap_field form.fallback_plan layout='horizontal' size='small' %}
@@ -8,7 +8,7 @@
{% bootstrap_label form.address_no.label label_class='col-md-3 hidden-md hidden-lg control-label' %}
{% bootstrap_field form.address_no size='small' field_class='col-md-3' form_group_class='none' show_label=False %}
</div>
{% if form.address_additional %}
{% if has_additional and form.address_additional %}
<div class="form-group form-group-sm">
{% bootstrap_label form.address_additional.label label_class='col-md-3 control-label' %}
{% bootstrap_field form.address_additional size='small' field_class='col-md-9' form_group_class='none' show_label=False %}
@@ -20,7 +20,7 @@ <h1>{% if organization %}{% trans "Édition de l'établissement" %}{% else %}{%
<div role="tabpanel" class="tab-pane active" id="addr">
{% bootstrap_field form.abbr layout='horizontal' size='small' %}
{% bootstrap_field form.name layout='horizontal' size='small' %}
{% include "address_bootstrap_form.html" %}
{% include "address_bootstrap_form.html" with has_additional=True %}
{% bootstrap_field form.website layout='horizontal' size='small' %}
</div>
<div role="tabpanel" class="tab-pane active" id="coord">
@@ -40,7 +40,7 @@ <h2>{% if not userprofile %}{% trans "Nouvel utilisateur" %}
{% bootstrap_field form.last_name layout='horizontal' size='small' %}
{% bootstrap_field form.language layout='horizontal' size='small' %}
{% bootstrap_field form.languages_challenges layout='horizontal' size='small' %}
{% include "address_bootstrap_form.html" %}
{% include "address_bootstrap_form.html" with has_additional=False %}
</div>
<div role="tabpanel" class="tab-pane" id="contacts">
{% bootstrap_field form.natel layout='horizontal' size='small' %}

0 comments on commit 027a753

Please sign in to comment.