Projet

Général

Profil

0001-style-add-missing-padding-to-forms-54856.patch

Nicolas Roche, 16 juin 2021 18:07

Télécharger (2,13 ko)

Voir les différences:

Subject: [PATCH] style: add missing padding to forms (#54856)

 .../templates/hobo/franceconnect_home.html       | 16 +++++++++-------
 hobo/matomo/templates/hobo/matomo_home.html      | 16 +++++++++-------
 2 files changed, 18 insertions(+), 14 deletions(-)
hobo/franceconnect/templates/hobo/franceconnect_home.html
28 28
<p>
29 29
 {% trans "Support is currently disabled." %}
30 30
</p>
31 31
<p>
32 32
 <a class="button" rel="popup" href="{% url 'franceconnect-enable' %}">{% trans 'Enable' %}</a>
33 33
</p>
34 34
{% else %}
35 35

  
36
<form method="post">
37
{% csrf_token %}
38
{{ form.as_p }}
39

  
40
<div class="buttons">
41
<button class="submit-button">{% trans "Save" %}</button>
36
<div class="section padded">
37
  <form method="post">
38
    {% csrf_token %}
39
    {{ form.as_p }}
40

  
41
    <div class="buttons">
42
      <button class="submit-button">{% trans "Save" %}</button>
43
    </div>
44
  </form>
42 45
</div>
43
</form>
44 46

  
45 47
{% endif %}
46 48

  
47 49
{% endblock %}
hobo/matomo/templates/hobo/matomo_home.html
82 82
{% elif cnil_ack_level == 'bad' %}
83 83
<div class="errornotice">
84 84
  {% trans "No respect of user rights." %}
85 85
</div>
86 86
{% endif %}
87 87
{% endif %}
88 88

  
89 89
{% if mode == 'manual' %}
90
<form method="post">
91
  {% csrf_token %}
92
  {{ form.as_p }}
90
<div class="section padded">
91
  <form method="post">
92
    {% csrf_token %}
93
    {{ form.as_p }}
93 94

  
94
  <div class="buttons">
95
    <button class="submit-button">{% trans "Save" %}</button>
96
  </div>
97
</form>
95
    <div class="buttons">
96
      <button class="submit-button">{% trans "Save" %}</button>
97
    </div>
98
  </form>
99
</div>
98 100
{% endif %}
99 101

  
100 102
{% endif %}
101 103
{% endblock %}
102
-