added date field to module settings #1522
This commit is contained in:
parent
1ab43bb472
commit
a2bd4758ad
@ -33,6 +33,8 @@
|
|||||||
{{ Form::$type($field['name'], trans($field['title']), $field['items'], $field['value'], $field['id'], $field['attributes']) }}
|
{{ Form::$type($field['name'], trans($field['title']), $field['items'], $field['value'], $field['id'], $field['attributes']) }}
|
||||||
@elseif ($type == 'fileGroup')
|
@elseif ($type == 'fileGroup')
|
||||||
{{ Form::$type($field['name'], trans($field['title']), $field['attributes']) }}
|
{{ Form::$type($field['name'], trans($field['title']), $field['attributes']) }}
|
||||||
|
@elseif ($type == 'dateGroup')
|
||||||
|
{{ Form::$type($field['name'], trans($field['title']), $field['icon'], array_merge(['id' => $field['name'], 'date-format' => 'Y-m-d', 'autocomplete' => 'off'], $field['attributes']), Date::parse($setting[$field['name']] ?? now())->toDateString()) }}
|
||||||
@elseif ($type == 'accountSelectGroup')
|
@elseif ($type == 'accountSelectGroup')
|
||||||
{{ Form::selectGroup($field['name'], trans_choice('general.accounts', 1), 'university', $accounts, setting($module->getAlias() . '.' . $field['name']), $field['attributes']) }}
|
{{ Form::selectGroup($field['name'], trans_choice('general.accounts', 1), 'university', $accounts, setting($module->getAlias() . '.' . $field['name']), $field['attributes']) }}
|
||||||
@elseif ($type == 'categorySelectGroup')
|
@elseif ($type == 'categorySelectGroup')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user