diff --git a/templates/forms/partials/input-current_password.html.twig b/templates/forms/partials/input-current_password.html.twig deleted file mode 100644 index 788067d..0000000 --- a/templates/forms/partials/input-current_password.html.twig +++ /dev/null @@ -1,11 +0,0 @@ -{% block input_current_password %} -{% if 'password' not in form.fields.hidden %} -
- -
- - -
-
-{% endif %} -{% endblock %} \ No newline at end of file diff --git a/templates/forms/partials/input-first_name.html.twig b/templates/forms/partials/input-first_name.html.twig deleted file mode 100644 index 552714c..0000000 --- a/templates/forms/partials/input-first_name.html.twig +++ /dev/null @@ -1,11 +0,0 @@ -{% block input_first_name %} -{% if 'first_name' not in form.fields.hidden %} -
- -
- - -
-
-{% endif %} -{% endblock %} \ No newline at end of file diff --git a/templates/forms/partials/input-last_name.html.twig b/templates/forms/partials/input-last_name.html.twig deleted file mode 100644 index 11dd6d5..0000000 --- a/templates/forms/partials/input-last_name.html.twig +++ /dev/null @@ -1,11 +0,0 @@ -{% block input_last_name %} -{% if 'last_name' not in form.fields.hidden %} -
- -
- - -
-
-{% endif %} -{% endblock %} \ No newline at end of file diff --git a/templates/forms/partials/input-new_password.html.twig b/templates/forms/partials/input-new_password.html.twig deleted file mode 100644 index f002d86..0000000 --- a/templates/forms/partials/input-new_password.html.twig +++ /dev/null @@ -1,18 +0,0 @@ -{% block input_new_password %} -{% if 'password' not in form.fields.hidden %} -
- -
- - -
-
-
- -
- - -
-
-{% endif %} -{% endblock %} \ No newline at end of file diff --git a/templates/forms/partials/input-user-current_password.html.twig b/templates/forms/partials/input-user-current_password.html.twig new file mode 100644 index 0000000..80c2240 --- /dev/null +++ b/templates/forms/partials/input-user-current_password.html.twig @@ -0,0 +1,11 @@ +{% block input_user_current_password %} +{% if 'password' not in form.fields.hidden %} +
+ +
+ + +
+
+{% endif %} +{% endblock %} \ No newline at end of file diff --git a/templates/forms/partials/input-email.html.twig b/templates/forms/partials/input-user-email.html.twig similarity index 87% rename from templates/forms/partials/input-email.html.twig rename to templates/forms/partials/input-user-email.html.twig index 9dd7454..85de419 100644 --- a/templates/forms/partials/input-email.html.twig +++ b/templates/forms/partials/input-user-email.html.twig @@ -1,7 +1,7 @@ -{% block input_email %} +{% block input_user_email %} {% if 'email' not in form.fields.hidden %}
- +
diff --git a/templates/forms/partials/input-user-first_name.html.twig b/templates/forms/partials/input-user-first_name.html.twig new file mode 100644 index 0000000..b8bb37a --- /dev/null +++ b/templates/forms/partials/input-user-first_name.html.twig @@ -0,0 +1,11 @@ +{% block input_user_first_name %} +{% if 'first_name' not in form.fields.hidden %} +
+ +
+ + +
+
+{% endif %} +{% endblock %} \ No newline at end of file diff --git a/templates/forms/partials/input-group.html.twig b/templates/forms/partials/input-user-group.html.twig similarity index 80% rename from templates/forms/partials/input-group.html.twig rename to templates/forms/partials/input-user-group.html.twig index 18d3845..f929c43 100644 --- a/templates/forms/partials/input-group.html.twig +++ b/templates/forms/partials/input-user-group.html.twig @@ -1,13 +1,13 @@ -{% block input_group %} +{% block input_user_group %} {% if 'group' not in form.fields.hidden %}
- +
{% if 'group' in form.fields.disabled %} {% else %} - {% for group in groups %} diff --git a/templates/forms/partials/input-user-last_name.html.twig b/templates/forms/partials/input-user-last_name.html.twig new file mode 100644 index 0000000..2ae6005 --- /dev/null +++ b/templates/forms/partials/input-user-last_name.html.twig @@ -0,0 +1,11 @@ +{% block input_user_last_name %} +{% if 'last_name' not in form.fields.hidden %} +
+ +
+ + +
+
+{% endif %} +{% endblock %} \ No newline at end of file diff --git a/templates/forms/partials/input-locale.html.twig b/templates/forms/partials/input-user-locale.html.twig similarity index 75% rename from templates/forms/partials/input-locale.html.twig rename to templates/forms/partials/input-user-locale.html.twig index a768fba..a4539c7 100644 --- a/templates/forms/partials/input-locale.html.twig +++ b/templates/forms/partials/input-user-locale.html.twig @@ -1,13 +1,13 @@ -{% block input_locale %} +{% block input_user_locale %} {% if 'locale' not in form.fields.hidden %}
- +
{% if 'locale' in form.fields.disabled %} {% else %} - {% for option, label in locales %} {% endfor %} diff --git a/templates/forms/partials/input-user-new_password.html.twig b/templates/forms/partials/input-user-new_password.html.twig new file mode 100644 index 0000000..7a58aa8 --- /dev/null +++ b/templates/forms/partials/input-user-new_password.html.twig @@ -0,0 +1,18 @@ +{% block input_user_new_password %} +{% if 'password' not in form.fields.hidden %} +
+ +
+ + +
+
+
+ +
+ + +
+
+{% endif %} +{% endblock %} \ No newline at end of file diff --git a/templates/forms/partials/input-theme.html.twig b/templates/forms/partials/input-user-theme.html.twig similarity index 77% rename from templates/forms/partials/input-theme.html.twig rename to templates/forms/partials/input-user-theme.html.twig index d139b8a..03a6a74 100644 --- a/templates/forms/partials/input-theme.html.twig +++ b/templates/forms/partials/input-user-theme.html.twig @@ -1,13 +1,13 @@ -{% block input_theme %} +{% block input_user_theme %} {% if 'theme' not in form.fields.hidden %}
- +
{% if 'theme' in form.fields.disabled %} {% else %} - {% for option, label in theme %} {% endfor %} diff --git a/templates/forms/partials/input-user_name.html.twig b/templates/forms/partials/input-user-user_name.html.twig similarity index 93% rename from templates/forms/partials/input-user_name.html.twig rename to templates/forms/partials/input-user-user_name.html.twig index 7b151f6..f8b5a35 100644 --- a/templates/forms/partials/input-user_name.html.twig +++ b/templates/forms/partials/input-user-user_name.html.twig @@ -1,4 +1,4 @@ -{% block input_user_name %} +{% block input_user_user_name %} {% if 'user_name' not in form.fields.hidden %}
diff --git a/templates/forms/settings-account.html.twig b/templates/forms/settings-account.html.twig index 535408a..6adc001 100644 --- a/templates/forms/settings-account.html.twig +++ b/templates/forms/settings-account.html.twig @@ -11,13 +11,13 @@ {% block settings_account %}
- {% include "forms/partials/input-email.html.twig" %} + {% include "forms/partials/input-user-email.html.twig" %}
- {% include "forms/partials/input-new_password.html.twig" %} + {% include "forms/partials/input-user-new_password.html.twig" %}
{% if 'password' not in form.fields.hidden %} @@ -25,7 +25,7 @@ {% endif %}
- {% include "forms/partials/input-current_password.html.twig" %} + {% include "forms/partials/input-user-current_password.html.twig" %}
{% endblock %} diff --git a/templates/forms/settings-profile.html.twig b/templates/forms/settings-profile.html.twig index 46b485c..92b4247 100644 --- a/templates/forms/settings-profile.html.twig +++ b/templates/forms/settings-profile.html.twig @@ -9,17 +9,17 @@ {% if 'name' not in form.fields.hidden %}
- {% include "forms/partials/input-first_name.html.twig" %} + {% include "forms/partials/input-user-first_name.html.twig" %}
- {% include "forms/partials/input-last_name.html.twig" %} + {% include "forms/partials/input-user-last_name.html.twig" %}
{% endif %}
- {% include "forms/partials/input-locale.html.twig" %} + {% include "forms/partials/input-user-locale.html.twig" %}
{% endblock %} diff --git a/templates/forms/user.html.twig b/templates/forms/user.html.twig index dd3ddf5..4207812 100644 --- a/templates/forms/user.html.twig +++ b/templates/forms/user.html.twig @@ -3,40 +3,40 @@ {% block user_form %} {% if 'user_name' not in form.fields.hidden %}
- {% include "forms/partials/input-user_name.html.twig" %} + {% include "forms/partials/input-user-user_name.html.twig" %}
{% endif %} {% if 'group' not in form.fields.hidden %}
- {% include "forms/partials/input-group.html.twig" %} + {% include "forms/partials/input-user-group.html.twig" %}
{% endif %} {% if 'name' not in form.fields.hidden %}
- {% include "forms/partials/input-first_name.html.twig" %} + {% include "forms/partials/input-user-first_name.html.twig" %}
- {% include "forms/partials/input-last_name.html.twig" %} + {% include "forms/partials/input-user-last_name.html.twig" %}
{% endif %} {% if 'email' not in form.fields.hidden %}
- {% include "forms/partials/input-email.html.twig" %} + {% include "forms/partials/input-user-email.html.twig" %}
{% endif %} {% if 'theme' not in form.fields.hidden %}
- {% include "forms/partials/input-theme.html.twig" %} + {% include "forms/partials/input-user-theme.html.twig" %}
{% endif %} {% if 'locale' not in form.fields.hidden %}
- {% include "forms/partials/input-locale.html.twig" %} + {% include "forms/partials/input-user-locale.html.twig" %}
{% endif %}