diff --git a/app/Helpers/Admin/BoardConfig_helper.php b/app/Helpers/Admin/BoardConfig_helper.php index 34ded31..46fd941 100644 --- a/app/Helpers/Admin/BoardConfig_helper.php +++ b/app/Helpers/Admin/BoardConfig_helper.php @@ -22,7 +22,6 @@ function getFieldForm_BoardConfigHelper($field, $value, array $fieldFormOptions, case 'isreply': case 'isupload': case 'isdownload': - case 'status': $fieldFormOptions[$field] = [DEFAULTS['EMPTY'] => lang("Admin/BoardConfig.label.{$field}") . " 선택", ...$fieldFormOptions[$field]]; return form_dropdown($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], [...$attributes, 'class' => "select-field"]); // foreach ($fieldFormOptions[$field] as $key => $label) { @@ -31,6 +30,10 @@ function getFieldForm_BoardConfigHelper($field, $value, array $fieldFormOptions, // return implode(" ", $checkboxs); // return form_multiselect($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], [...$attributes]); break; + case 'status': + $fieldFormOptions[$field] = [DEFAULTS['EMPTY'] => lang("Admin/Board.label.{$field}") . " 선택", ...$fieldFormOptions[$field]]; + return form_dropdown($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], $attributes); + break; case 'updated_at': case 'created_at': return form_input($field, $value, [...$attributes, 'class' => 'calender']); diff --git a/app/Helpers/Admin/Board_helper.php b/app/Helpers/Admin/Board_helper.php index 31bd028..b3f8c01 100644 --- a/app/Helpers/Admin/Board_helper.php +++ b/app/Helpers/Admin/Board_helper.php @@ -17,7 +17,6 @@ function getFieldForm_BoardHelper($field, $value, array $fieldFormOptions, array switch ($field) { case "board_config_uid": case "user_uid": - case 'status': $fieldFormOptions[$field] = [DEFAULTS['EMPTY'] => lang("Admin/Board.label.{$field}") . " 선택", ...$fieldFormOptions[$field]]; return form_dropdown($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], [...$attributes, 'class' => "select-field"]); // foreach ($fieldFormOptions[$field] as $key => $label) { @@ -26,6 +25,10 @@ function getFieldForm_BoardHelper($field, $value, array $fieldFormOptions, array // return implode(" ", $checkboxs); // return form_multiselect($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], [...$attributes]); break; + case 'status': + $fieldFormOptions[$field] = [DEFAULTS['EMPTY'] => lang("Admin/Board.label.{$field}") . " 선택", ...$fieldFormOptions[$field]]; + return form_dropdown($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], $attributes); + break; case 'updated_at': case 'created_at': return form_input($field, $value, [...$attributes, 'class' => 'calender']); diff --git a/app/Helpers/Admin/UserSNS_helper.php b/app/Helpers/Admin/UserSNS_helper.php index fc1ec2d..ef0b36c 100644 --- a/app/Helpers/Admin/UserSNS_helper.php +++ b/app/Helpers/Admin/UserSNS_helper.php @@ -17,7 +17,6 @@ function getFieldForm_UserSNSHelper($field, $value, array $fieldFormOptions, arr $value = $value ?: DEFAULTS['EMPTY']; switch ($field) { case "user_uid": - case 'status': $fieldFormOptions[$field] = [DEFAULTS['EMPTY'] => lang("Admin/UserSNS.label.{$field}") . " 선택", ...$fieldFormOptions[$field]]; return form_dropdown($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], [...$attributes, 'class' => "select-field"]); // foreach ($fieldFormOptions[$field] as $key => $label) { @@ -26,6 +25,10 @@ function getFieldForm_UserSNSHelper($field, $value, array $fieldFormOptions, arr // return implode(" ", $checkboxs); // return form_multiselect($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], [...$attributes]); break; + case 'status': + $fieldFormOptions[$field] = [DEFAULTS['EMPTY'] => lang("Admin/Board.label.{$field}") . " 선택", ...$fieldFormOptions[$field]]; + return form_dropdown($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], $attributes); + break; case 'updated_at': case 'created_at': return form_input($field, $value, [...$attributes, 'class' => 'calender']); diff --git a/app/Helpers/Admin/User_helper.php b/app/Helpers/Admin/User_helper.php index 7168a83..3844bce 100644 --- a/app/Helpers/Admin/User_helper.php +++ b/app/Helpers/Admin/User_helper.php @@ -17,7 +17,6 @@ function getFieldForm_UserHelper($field, $value, array $fieldFormOptions, array $value = $value ?: DEFAULTS['EMPTY']; switch ($field) { case 'role': - case 'status': $fieldFormOptions[$field] = [DEFAULTS['EMPTY'] => lang("Admin/User.label.{$field}") . " 선택", ...$fieldFormOptions[$field]]; return form_dropdown($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], [...$attributes, 'class' => "select-field"]); // foreach ($fieldFormOptions[$field] as $key => $label) { @@ -26,6 +25,10 @@ function getFieldForm_UserHelper($field, $value, array $fieldFormOptions, array // return implode(" ", $checkboxs); // return form_multiselect($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], [...$attributes]); break; + case 'status': + $fieldFormOptions[$field] = [DEFAULTS['EMPTY'] => lang("Admin/Board.label.{$field}") . " 선택", ...$fieldFormOptions[$field]]; + return form_dropdown($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], $attributes); + break; case 'updated_at': case 'created_at': return form_input($field, $value, [...$attributes, 'class' => 'calender']);