From 59af4ecb992967336e668be0da9c5e012536bb8b Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 3 Aug 2018 16:05:54 -0400 Subject: [PATCH] adding conditional to check for checkbox custom field to change the order of the label and input field changing the order of the markup for the custom fields checkboxes so that the label is to the right of the checkbox --- css/admin.css | 6 ++++++ views/admin/entity/fields.html | 19 ++++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/css/admin.css b/css/admin.css index 9973263..4a28958 100644 --- a/css/admin.css +++ b/css/admin.css @@ -18,3 +18,9 @@ width: 100%; } } +.glm-custom-field-checkbox-wrapper{ + display: inline-block; +} +.glm-custom-field-checkbox-wrapper .glm-custom-field-checkbox-label, .glm-custom-field-checkbox-wrapper .glm-custom-field-checkbox-field{ + float: left; +} \ No newline at end of file diff --git a/views/admin/entity/fields.html b/views/admin/entity/fields.html index b0e9b53..b6e93e0 100644 --- a/views/admin/entity/fields.html +++ b/views/admin/entity/fields.html @@ -6,8 +6,17 @@
{foreach $group.custom_fields as $field} -
{$field.field_name}
-
+ + + {if $field.field_type.value == 'checkbox'} +
+ +
+ {else} +
{$field.field_name}
+
+ {/if} + {$fail = ''} @@ -52,6 +61,10 @@ {/if}
+ {if $field.field_type.value == 'checkbox'} +
{$field.field_name}
+
+ {/if} {/foreach}
@@ -97,4 +110,4 @@ {/foreach} {/if} - + -- 2.17.1