From dabb9c2f8b8e36dcfd2f0be6ee6d2d9b825741cd Mon Sep 17 00:00:00 2001 From: Ramon Gutierrez Date: Sun, 4 Feb 2018 13:44:48 +0800 Subject: [PATCH] Change customer form layout to remove tabs, remove min height from datatables --- public/assets/css/style.css | 8 ++ templates/customer/form.html.twig | 211 ++++++++++++++++-------------- 2 files changed, 119 insertions(+), 100 deletions(-) diff --git a/public/assets/css/style.css b/public/assets/css/style.css index fbb7b214..ac0449cf 100644 --- a/public/assets/css/style.css +++ b/public/assets/css/style.css @@ -142,6 +142,14 @@ span.has-danger, color: #fff !important; } +.m-datatable.m-datatable--default > .m-datatable__table { + min-height: 0 !important; +} + +.m-datatable.m-datatable--default > .m-datatable__table > .m-datatable__body .m-datatable__row > .m-datatable__cell { + font-weight: normal; +} + @media (min-width: 995px) { .modal-lg { max-width: 1024px; diff --git a/templates/customer/form.html.twig b/templates/customer/form.html.twig index 51d26b5c..14138489 100644 --- a/templates/customer/form.html.twig +++ b/templates/customer/form.html.twig @@ -32,112 +32,123 @@ -
-
- -
-
-
-
- - - -
-
-
-
- - - -
-
- - - -
-
-
-
- - - -
-
+ +
+
+
+

+ Customer Info +

-
-
-
-
+
+
+ + + +
+
+
+
+ + + +
+
+ + + +
+
+
+
+ + + +
+
+
+ +
+ +
+
+

+ Mobile Numbers +

+
+
+
+
+
+
+
+
+ + + Use the format 63xxxxxxxxxx +
+
+
+ + + +
-
-
- - - Use the format 63xxxxxxxxxx -
-
-
- - - - -
-
-
- +
+ +
+
+
+ +
+ +
+
+

+ Vehicles +

+
+
+
+
+
+
+
+
+ +
+
+
+ + {% if mode == 'update' %} +
+ +
+
+

+ Tickets +

+
+
+
+
-
-
-
-
-
-
-
-
- -
-
-
- {% if mode == 'update' %} -
-
-
-
-
-
-
- {% endif %} -
+ {% endif %}