FEATURE: move selectbox for type of custom field

This commit is contained in:
Michal Kváček
2016-01-27 00:24:59 +01:00
parent 9e86530cf6
commit 4b5a78b320
2 changed files with 18 additions and 19 deletions
@@ -2,7 +2,7 @@
{!! csrf_field() !!}
<div class="row">
<div class="large-6 columns">
<div class="large-12 columns">
<label>
@lang('admin/customFields.name')
<input type="text" placeholder="@lang('admin/customFields.name')" value="{{old('name')}}" name="name">
@@ -14,23 +14,6 @@
@endif
</label>
</div>
<div class="large-6 columns">
<label>
@lang('admin/customFields.type')
<select name="type">
@foreach($types as $type => $translation)
<option value="{{$type}}"@if(old('type') == $type) selected @endif>@lang($translation)</option>
@endforeach
</select>
@if (isset($errors) && $errors->has('type'))
<div class="callout alert">
{{ $errors->first('type') }}
</div>
@endif
</label>
</div>
</div>
<div class="row">
<div class="large-6 columns">
@@ -43,6 +26,22 @@
<div class="large-6 columns">
<label>
@lang('admin/customFields.type')
<select name="type">
@foreach($types as $type => $translation)
<option value="{{$type}}"@if(old('type') == $type) selected @endif>@lang($translation)</option>
@endforeach
</select>
@if (isset($errors) && $errors->has('type'))
<div class="callout alert">
{{ $errors->first('type') }}
</div>
@endif
</label>
<label>
@lang('admin/customFields.resource')
@@ -16,7 +16,7 @@
<ul class="tabs" data-tabs id="customFieldsOverview">
<?php $isFirst = true?>
@foreach($usedResources as $i => $resource)
<li class="tabs-title @if($isFirst)is-active @endif"><a href="#customFieldResource{{$resource}}">@lang($resources[$resource]){{key($usedResources)}}</a></li>
<li class="tabs-title @if($isFirst)is-active @endif"><a href="#customFieldResource{{$resource}}">@lang($resources[$resource])</a></li>
<?php $isFirst = false?>
@endforeach
</ul>