Kaynağa Gözat

Anomalie #809: Choisir son mot de passe - bug dom

Bastien Sevajol 11 yıl önce
ebeveyn
işleme
a626b0757e

+ 3 - 4
src/Muzich/UserBundle/Resources/views/User/account.html.twig Dosyayı Görüntüle

@@ -57,7 +57,7 @@
57 57
     <h2 data-open="myaccount_favorites_password">{{ 'my_account.change_password'|trans({}, 'userui') }}</h2>
58 58
 
59 59
     <div id="myaccount_favorites_password" class="myaccount_part {% if app.request.get('open') == 'change_password' %}flashing{% endif %}" 
60
-      {% if not app.request.get('open') == 'change_password' %}
60
+      {% if app.request.get('open') != 'change_password' %}
61 61
        style="display: none;"
62 62
       {% endif %}
63 63
      >
@@ -154,13 +154,12 @@
154 154
     <h2 data-open="myaccount_delete">{{ 'my_account.delete.title'|trans({}, 'userui') }}</h2>
155 155
   
156 156
     <div id="myaccount_delete" class="myaccount_part"
157
-      {% if not delete_form|form_has_errors and not app.request.get('open') == 'delete' %}
157
+      {% if app.request.get('open') != 'delete' %}
158 158
         style="display: none;"
159 159
       {% endif %}
160 160
     >
161 161
       
162
-      <p class="warning info">{{ 'my_account.delete.text'|trans({}, 'userui') }}
163
-      </p>
162
+      <p class="warning info">{{ 'my_account.delete.text'|trans({}, 'userui') }}</p>
164 163
       
165 164
       <form
166 165
         class="delete"