mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
check for attribute 'required' when creating select menu in formField()
This commit is contained in:
parent
3024bf6f5f
commit
60696ac079
|
@ -1177,6 +1177,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
(!empty($value['name']) ? ' name="'.$value['name'].'"' : '').
|
||||
(!empty($value['class']) ? ' class="'.$value['class'].'"' : '').
|
||||
(!empty($value['placeholder']) ? ' data-placeholder="'.$value['placeholder'].'"' : '').
|
||||
(!empty($value['required']) ? ' required="required"' : '').
|
||||
($allowempty ? ' data-allow-clear="true"' : '').
|
||||
(!empty($value['multiple']) ? ' multiple' : '');
|
||||
if(!empty($value['attributes']) && is_array($value['attributes']))
|
||||
|
|
|
@ -1161,6 +1161,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
(!empty($value['name']) ? ' name="'.$value['name'].'"' : '').
|
||||
(empty($value['class']) ? ' class="form-control"' : ' class="form-control '.$value['class'].'"').
|
||||
(!empty($value['placeholder']) ? ' data-placeholder="'.$value['placeholder'].'"' : '').
|
||||
(!empty($value['required']) ? ' required="required"' : '').
|
||||
($allowempty ? ' data-allow-clear="true"' : '').
|
||||
(!empty($value['multiple']) ? ' multiple' : '');
|
||||
if(!empty($value['attributes']) && is_array($value['attributes']))
|
||||
|
|
Loading…
Reference in New Issue
Block a user