79 lines
2.5 KiB
PHP
79 lines
2.5 KiB
PHP
<form method="POST" action="{{route('customfields.newPost')}}">
|
|
{!! csrf_field() !!}
|
|
|
|
<div class="row">
|
|
<div class="large-6 columns">
|
|
<label>
|
|
@lang('admin/customFields.name')
|
|
<input type="text" placeholder="@lang('admin/customFields.name')" name="name">
|
|
|
|
@if (isset($errors) && $errors->has('name'))
|
|
<div class="callout alert">
|
|
{{ $errors->first('name') }}
|
|
</div>
|
|
@endif
|
|
</label>
|
|
</div>
|
|
<div class="large-6 columns">
|
|
<label>
|
|
@lang('admin/customFields.type')
|
|
|
|
<select name="type">
|
|
@foreach($types as $type => $translation)
|
|
<option value="{{$type}}">@lang($translation)</option>
|
|
@endforeach
|
|
</select>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="large-6 columns">
|
|
<label>
|
|
@lang('admin/customFields.description')
|
|
|
|
<textarea rows="5" name="description" placeholder="@lang('admin/customFields.description')"></textarea>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="large-6 columns">
|
|
<label>
|
|
@lang('admin/customFields.required')
|
|
|
|
<input type="checkbox" placeholder="@lang('admin/customFields.required')" name="required">
|
|
</label>
|
|
|
|
<label>
|
|
@lang('admin/customFields.defaultValue')
|
|
|
|
<input type="text" placeholder=" @lang('admin/customFields.defaultValue')" defaultValue">
|
|
</label>
|
|
|
|
<label>
|
|
@lang('admin/customFields.regExp')
|
|
|
|
<input type="text" placeholder="@lang('admin/customFields.regExp')" name="regExp">
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="large-6 columns">
|
|
<label>
|
|
@lang('admin/customFields.minLength')
|
|
|
|
<input type="text" placeholder="@lang('admin/customFields.minLength')"name="minLength">
|
|
</label>
|
|
</div>
|
|
<div class="large-6 columns">
|
|
<label>
|
|
@lang('admin/customFields.maxLength')
|
|
|
|
<input type="text" placeholder="@lang('admin/customFields.maxLength')"name="maxLength">
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<label>
|
|
<button type="submit" class="button success">@lang('admin/customFields.createNew')</button>
|
|
</label>
|
|
</form>
|