From: Anthony Talarico Date: Mon, 6 Nov 2017 18:21:59 +0000 (-0500) Subject: adding required flag to checkboxes X-Git-Tag: v1.0.4^2~17 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=82aa06405ce209e9ac686f6f7a614cee19f92e40;p=WP-Plugins%2Fglm-member-db-fields.git adding required flag to checkboxes custom fields checkboxes were missing the required flags --- diff --git a/views/admin/entity/fields.html b/views/admin/entity/fields.html index 0628ca7..2c69862 100644 --- a/views/admin/entity/fields.html +++ b/views/admin/entity/fields.html @@ -24,12 +24,13 @@ // 'wpautop' => false, NOTE: Dont's use. Problem when numerous spaces before text. 'textarea_name' => '{$prefix}[{$field.id}]', 'editor_height' => 200, // Height in px, overrides editor_rows - // 'textarea_rows' => 8 + // 'textarea_rows' => 8, + {if $field.required.value == 1}'editor_class' => 'glm-required' {/if} )); {/php} {elseif $field.field_type.name == 'checkbox'} - + {/if}