Merge pull request #2190 from phpsa/patch-1

fix: Update module edit form to allow number input
This commit is contained in:
Cüneyt Şentürk 2021-07-14 17:05:11 +03:00 committed by GitHub
commit d0f55bde29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@
@foreach($module->get('settings') as $field) @foreach($module->get('settings') as $field)
@php $type = $field['type']; @endphp @php $type = $field['type']; @endphp
@if (($type == 'textGroup') || ($type == 'emailGroup') || ($type == 'passwordGroup')) @if (($type == 'textGroup') || ($type == 'emailGroup') || ($type == 'passwordGroup') || ($type == 'numberGroup'))
{{ Form::$type($field['name'], trans($field['title']), $field['icon'], $field['attributes']) }} {{ Form::$type($field['name'], trans($field['title']), $field['icon'], $field['attributes']) }}
@elseif ($type == 'textareaGroup') @elseif ($type == 'textareaGroup')
{{ Form::$type($field['name'], trans($field['title'])) }} {{ Form::$type($field['name'], trans($field['title'])) }}