From 12d42e5bb3431650e283ee3e1f3dedf47a0b394f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C4=9F=C4=B1zhan?= Date: Sat, 13 Sep 2025 03:16:24 +0300 Subject: [PATCH] "New client" form overhaul (#2905) --- .../html_admin/mod_client_index.html.twig | 116 +------------ .../html_admin/mod_client_new_form.html.twig | 155 ++++++++++++++++++ 2 files changed, 157 insertions(+), 114 deletions(-) create mode 100644 src/modules/Client/html_admin/mod_client_new_form.html.twig diff --git a/src/modules/Client/html_admin/mod_client_index.html.twig b/src/modules/Client/html_admin/mod_client_index.html.twig index b3ef8860f..fa9412ef3 100644 --- a/src/modules/Client/html_admin/mod_client_index.html.twig +++ b/src/modules/Client/html_admin/mod_client_index.html.twig @@ -292,117 +292,7 @@
-
-
- -
- -
-
- - -
-
- - -
-
-
-
- -
- {{ mf.selectbox('group_id', admin.client_group_get_pairs, request.group_id, 0, 'Select group'|trans) }} -
-
-
- -
- -
-
-
- -
-
-
- -
-
- -
-
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- {# {{ mf.selectbox('state', guest.system_states, request.state, 0, 'Select state') }} #} - -
-
-
- -
- {{ mf.selectbox('country', guest.system_countries, request.country, 0, 'Select country'|trans) }} -
-
-
- -
- -
-
-
- -
-
- + - - {# - #} - -
-
-
-
- -
- {{ mf.selectbox('currency', guest.currency_get_pairs, request.currency, 0, 'Select currency'|trans) }} -
-
-
- -
- -
-
- - -
-
+ {{ include('mod_client_new_form.html.twig') }}
@@ -458,6 +348,4 @@
-{% endblock %} - -{% block js %}{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/src/modules/Client/html_admin/mod_client_new_form.html.twig b/src/modules/Client/html_admin/mod_client_new_form.html.twig new file mode 100644 index 000000000..9d83be360 --- /dev/null +++ b/src/modules/Client/html_admin/mod_client_new_form.html.twig @@ -0,0 +1,155 @@ +{% import 'macro_functions.html.twig' as mf %} +
+
+
+

{{ 'Create a new client'|trans }}

+
+
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ {{ mf.selectbox('group_id', admin.client_group_get_pairs, request.group_id, 0, 'Select group'|trans) }} +
+
+
+ +
+ {{ mf.selectbox('currency', guest.currency_get_pairs, request.currency, 0, 'Select currency'|trans) }} +
+
+
+ +
+ {% set languages = guest.extension_languages(true) %} + +
+
+
+ +
+
+ + + + +
+
+
+
+ + +
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ {{ mf.selectbox('country', guest.system_countries, guest.system_default_country, 0, 'Select country'|trans) }} +
+
+
+
+ +
+ + +
+ +
+ +
+
+
+ + + +
+