fix option select custom field
This commit is contained in:
parent
eb970b257a
commit
c9778e71b9
@ -23,7 +23,7 @@ switch ($action) {
|
||||
if(!empty($_POST['name'][$n])){
|
||||
$datas[] = [
|
||||
'order' => $_POST['order'][$n],
|
||||
'name' => $_POST['name'][$n],
|
||||
'name' => Text::alphanumeric(strtolower(str_replace(" ", "_", $_POST['name'][$n])), "_"),
|
||||
'type' => $_POST['type'][$n],
|
||||
'placeholder' => $_POST['placeholder'][$n],
|
||||
'value' => $_POST['value'][$n],
|
||||
|
@ -911,5 +911,9 @@
|
||||
"Don_t_have_an_account_": "Don't have an account?",
|
||||
"You_do_not_have_permission_to_access_this_page_in_demo_mode": "You do not have permission to access this page in demo mode",
|
||||
"Custom_Fields": "Custom Fields",
|
||||
"New_Field": "New Field"
|
||||
"New_Field": "New Field",
|
||||
"Data_Change": "Data Change",
|
||||
"Photo": "Photo",
|
||||
"Home_Address": "Home Address",
|
||||
"Email_Address": "Email Address"
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{if $register}
|
||||
<div class="form-group">
|
||||
<label>{ucwords($field['name'])}</label>
|
||||
<label>{ucwords(str_replace('_',' ', $field['name']))}</label>
|
||||
{if $field['type'] == 'option'}
|
||||
<select class="form-control" {if $field['required'] == 1} required{/if} name="{$field['name']}" style="width: 100%">
|
||||
{assign var="opts" value=explode(',', $field['value'])}
|
||||
@ -18,7 +18,7 @@
|
||||
</div>
|
||||
{else}
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">{ucwords($field['name'])}</label>
|
||||
<label class="col-md-3 control-label">{ucwords(str_replace('_',' ', $field['name']))}</label>
|
||||
<div class="col-md-9">
|
||||
{if $field['type'] == 'option'}
|
||||
<select class="form-control" {if $field['required'] == 1} required{/if} name="{$field['name']}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user