From: Anthony Talarico Date: Fri, 3 Aug 2018 20:05:54 +0000 (-0400) Subject: adding conditional to check for checkbox custom field to change the order of the... X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=59af4ecb992967336e668be0da9c5e012536bb8b;p=WP-Plugins%2Fglm-member-db-fields.git 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 --- 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} - +