From 220d600ccadff74e3b0bfc2352cf4069cf8b0cfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 20 Apr 2019 19:42:08 +0200 Subject: [PATCH] Moved export form to its own template fragment. --- .../AdminPages/EntityAdminBase.html.twig | 88 +------------------ templates/AdminPages/_export_form.html.twig | 42 +++++++++ 2 files changed, 45 insertions(+), 85 deletions(-) create mode 100644 templates/AdminPages/_export_form.html.twig diff --git a/templates/AdminPages/EntityAdminBase.html.twig b/templates/AdminPages/EntityAdminBase.html.twig index f18ad960..93a12be1 100644 --- a/templates/AdminPages/EntityAdminBase.html.twig +++ b/templates/AdminPages/EntityAdminBase.html.twig @@ -102,48 +102,7 @@ {% if entity.id %}
-
- -
- -
- -
-
- -
- -
- -
-
- -
-
-
- - -
-
-
- -
-
- -
-
-
+ {% include 'AdminPages/_export_form.html.twig' with {'path' : path('attachment_type_export', {'id': entity.id})} %}
{% else %} {# For new element we have a combined import/export tab #}
@@ -154,49 +113,8 @@
- {% trans %}export_all.label{% endtrans %} -
- -
- -
- -
-
- -
- -
- -
-
- -
-
-
- - -
-
-
- -
-
- -
-
-
+ {% trans %}export_all.label{% endtrans %} + {% include 'AdminPages/_export_form.html.twig' with {'path' : path('attachment_type_export_all')} %}
diff --git a/templates/AdminPages/_export_form.html.twig b/templates/AdminPages/_export_form.html.twig new file mode 100644 index 00000000..62686d3a --- /dev/null +++ b/templates/AdminPages/_export_form.html.twig @@ -0,0 +1,42 @@ +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
+
+
+ +
+
+ +
+
+
\ No newline at end of file