Added a new userfield type "preset-list" (closes #239)

This commit is contained in:
Bernd Bestel
2019-05-07 21:24:59 +02:00
parent 8504eb9b38
commit 338c6c0a9d
7 changed files with 45 additions and 1 deletions

View File

@@ -45,7 +45,7 @@
</div>
<div class="form-group">
<label for="entity">{{ $__t('Type') }}</label>
<label for="type">{{ $__t('Type') }}</label>
<select required class="form-control" id="type" name="type">
<option></option>
@foreach($userfieldTypes as $userfieldType)
@@ -55,6 +55,11 @@
<div class="invalid-feedback">{{ $__t('A type is required') }}</div>
</div>
<div class="form-group d-none">
<label for="config">{{ $__t('Configuration') }} <span id="config-hint" class="small text-muted"></span></label>
<textarea class="form-control" rows="10" id="config" name="config">@if($mode == 'edit'){{ $userfield->config }}@endif</textarea>
</div>
<div class="form-group">
<div class="form-check">
<input type="hidden" name="show_as_column_in_tables" value="0">