|
@@ -5,27 +5,27 @@
|
|
@endforeach
|
|
@endforeach
|
|
@endif
|
|
@endif
|
|
@foreach ($form['sets'] as $set)
|
|
@foreach ($form['sets'] as $set)
|
|
- @if (isset($set['info']))
|
|
|
|
|
|
+ @if ($set['info'])
|
|
@foreach ($set['info'] as $key => $cur)
|
|
@foreach ($set['info'] as $key => $cur)
|
|
- <p class="f-finfo"> @if (empty($cur['html'])){{ $cur['value'] }} @else{!! $cur['value'] !!} @endif</p>
|
|
|
|
|
|
+ <p class="f-finfo"> @if ($cur['html']){!! $cur['value'] !!} @else{{ $cur['value'] }} @endif</p>
|
|
@endforeach
|
|
@endforeach
|
|
- @elseif (isset($set['fields']))
|
|
|
|
- <fieldset @if (isset($set['id'])) id="{{ $set['id'] }}" @endif @if (isset($set['class'])) class="f-fs-{!! implode(' f-fs-', (array) $set['class']) !!}" @endif>
|
|
|
|
- @if (isset($set['legend']))
|
|
|
|
|
|
+ @elseif ($set['fields'])
|
|
|
|
+ <fieldset @if ($set['id']) id="{{ $set['id'] }}" @endif @if ($set['class']) class="f-fs-{!! implode(' f-fs-', (array) $set['class']) !!}" @endif>
|
|
|
|
+ @if ($set['legend'])
|
|
<legend>{!! $set['legend'] !!}</legend>
|
|
<legend>{!! $set['legend'] !!}</legend>
|
|
@endif
|
|
@endif
|
|
@foreach ($set['fields'] as $key => $cur)
|
|
@foreach ($set['fields'] as $key => $cur)
|
|
@if ('info' === $cur['type'])
|
|
@if ('info' === $cur['type'])
|
|
- <p class="f-child6"> @if (empty($cur['html'])){{ $cur['value'] }} @else{!! $cur['value'] !!} @endif</p>
|
|
|
|
|
|
+ <p class="f-child6"> @if ($cur['html']){!! $cur['value'] !!} @else{{ $cur['value'] }} @endif</p>
|
|
@else
|
|
@else
|
|
- <dl @if (isset($cur['dl'])) class="f-field-{!! implode(' f-field-', (array) $cur['dl']) !!}" @endif>
|
|
|
|
- <dt> @if (isset($cur['title']))<label class="f-child1 @if (! empty($cur['required'])) f-req @endif" @if (is_string($key) && 'radio' !== $cur['type']) for="id-{{ $key }}" @endif>{!! $cur['title'] !!}</label> @endif</dt>
|
|
|
|
|
|
+ <dl @if ($cur['dl']) class="f-field-{!! implode(' f-field-', (array) $cur['dl']) !!}" @endif>
|
|
|
|
+ <dt> @if ($cur['title'])<label class="f-child1 @if ($cur['required']) f-req @endif" @if (is_string($key) && 'radio' !== $cur['type']) for="id-{{ $key }}" @endif>{!! $cur['title'] !!}</label> @endif</dt>
|
|
<dd>
|
|
<dd>
|
|
@if ('text' === $cur['type'])
|
|
@if ('text' === $cur['type'])
|
|
- <input @if (! empty($cur['required'])) required @endif @if (! empty($cur['disabled'])) disabled @endif @if (isset($cur['autofocus'])) autofocus @endif class="f-ctrl" id="id-{{ $key }}" name="{{ $key }}" type="text" @if (! empty($cur['maxlength'])) maxlength="{{ $cur['maxlength'] }}" @endif @if (isset($cur['pattern'])) pattern="{{ $cur['pattern'] }}" @endif @if (isset($cur['value'])) value="{{ $cur['value'] }}" @endif>
|
|
|
|
|
|
+ <input @if ($cur['required']) required @endif @if ($cur['disabled']) disabled @endif @if ($cur['autofocus']) autofocus @endif class="f-ctrl" id="id-{{ $key }}" name="{{ $key }}" type="text" @if ($cur['maxlength']) maxlength="{{ $cur['maxlength'] }}" @endif @if ($cur['pattern']) pattern="{{ $cur['pattern'] }}" @endif @if (isset($cur['value'])) value="{{ $cur['value'] }}" @endif>
|
|
@elseif ('textarea' === $cur['type'])
|
|
@elseif ('textarea' === $cur['type'])
|
|
- <textarea @if (! empty($cur['required'])) required @endif @if (! empty($cur['disabled'])) disabled @endif @if (isset($cur['autofocus'])) autofocus @endif class="f-ctrl" id="id-{{ $key }}" name="{{ $key }}">{{ $cur['value'] or '' }}</textarea>
|
|
|
|
- @if (isset($cur['bb']))
|
|
|
|
|
|
+ <textarea @if ($cur['required']) required @endif @if ($cur['disabled']) disabled @endif @if ($cur['autofocus']) autofocus @endif class="f-ctrl" id="id-{{ $key }}" name="{{ $key }}">{{ $cur['value'] or '' }}</textarea>
|
|
|
|
+ @if ($cur['bb'])
|
|
<ul class="f-child5">
|
|
<ul class="f-child5">
|
|
@foreach ($cur['bb'] as $val)
|
|
@foreach ($cur['bb'] as $val)
|
|
<li><span><a href="{!! $val[0] !!}">{!! $val[1] !!}</a> {!! $val[2] !!}</span></li>
|
|
<li><span><a href="{!! $val[0] !!}">{!! $val[1] !!}</a> {!! $val[2] !!}</span></li>
|
|
@@ -33,7 +33,7 @@
|
|
</ul>
|
|
</ul>
|
|
@endif
|
|
@endif
|
|
@elseif ('select' === $cur['type'])
|
|
@elseif ('select' === $cur['type'])
|
|
- <select @if (! empty($cur['required'])) required @endif @if (! empty($cur['disabled'])) disabled @endif @if (isset($cur['autofocus'])) autofocus @endif class="f-ctrl" id="id-{{ $key }}" name="{{ $key }}">
|
|
|
|
|
|
+ <select @if ($cur['required']) required @endif @if ($cur['disabled']) disabled @endif @if ($cur['autofocus']) autofocus @endif class="f-ctrl" id="id-{{ $key }}" name="{{ $key }}">
|
|
@if (null === ($count = null) && is_array(reset($cur['options'])) && 1 === count(reset($cur['options'])) && $count = 0) @endif
|
|
@if (null === ($count = null) && is_array(reset($cur['options'])) && 1 === count(reset($cur['options'])) && $count = 0) @endif
|
|
@foreach ($cur['options'] as $v => $option)
|
|
@foreach ($cur['options'] as $v => $option)
|
|
@if (is_array($option))
|
|
@if (is_array($option))
|
|
@@ -43,7 +43,7 @@
|
|
@endif
|
|
@endif
|
|
<optgroup label="{{ $option[0] }}">
|
|
<optgroup label="{{ $option[0] }}">
|
|
@else
|
|
@else
|
|
- <option value="{{ $option[0] }}" @if ($option[0] == $cur['value']) selected @endif @if (isset($option[2])) disabled @endif>{{ $option[1] }}</option>
|
|
|
|
|
|
+ <option value="{{ $option[0] }}" @if ($option[0] == $cur['value']) selected @endif @if ($option[2]) disabled @endif>{{ $option[1] }}</option>
|
|
@endif
|
|
@endif
|
|
@else
|
|
@else
|
|
<option value="{{ $v }}" @if ($v == $cur['value']) selected @endif>{{ $option }}</option>
|
|
<option value="{{ $v }}" @if ($v == $cur['value']) selected @endif>{{ $option }}</option>
|
|
@@ -54,7 +54,7 @@
|
|
@endif
|
|
@endif
|
|
</select>
|
|
</select>
|
|
@elseif ('multiselect' === $cur['type'])
|
|
@elseif ('multiselect' === $cur['type'])
|
|
- <select @if (! empty($cur['required'])) required @endif @if (! empty($cur['disabled'])) disabled @endif @if (isset($cur['autofocus'])) autofocus @endif @if (! empty($cur['size'])) size="{{ $cur['size'] }}" @endif multiple class="f-ctrl" id="id-{{ $key }}" name="{{ $key }}[]">
|
|
|
|
|
|
+ <select @if ($cur['required']) required @endif @if ($cur['disabled']) disabled @endif @if ($cur['autofocus']) autofocus @endif @if ($cur['size']) size="{{ $cur['size'] }}" @endif multiple class="f-ctrl" id="id-{{ $key }}" name="{{ $key }}[]">
|
|
@if (null === ($count = null) && is_array(reset($cur['options'])) && 1 === count(reset($cur['options'])) && $count = 0) @endif
|
|
@if (null === ($count = null) && is_array(reset($cur['options'])) && 1 === count(reset($cur['options'])) && $count = 0) @endif
|
|
@foreach ($cur['options'] as $v => $option)
|
|
@foreach ($cur['options'] as $v => $option)
|
|
@if (is_array($option))
|
|
@if (is_array($option))
|
|
@@ -64,7 +64,7 @@
|
|
@endif
|
|
@endif
|
|
<optgroup label="{{ $option[0] }}">
|
|
<optgroup label="{{ $option[0] }}">
|
|
@else
|
|
@else
|
|
- <option value="{{ $option[0] }}" @if ((is_array($cur['value']) && in_array($option[0], $cur['value'])) || $option[0] == $cur['value']) selected @endif @if (isset($option[2])) disabled @endif>{{ $option[1] }}</option>
|
|
|
|
|
|
+ <option value="{{ $option[0] }}" @if ((is_array($cur['value']) && in_array($option[0], $cur['value'])) || $option[0] == $cur['value']) selected @endif @if ($option[2]) disabled @endif>{{ $option[1] }}</option>
|
|
@endif
|
|
@endif
|
|
@else
|
|
@else
|
|
<option value="{{ $v }}" @if ((is_array($cur['value']) && in_array($v, $cur['value'])) || $v == $cur['value']) selected @endif>{{ $option }}</option>
|
|
<option value="{{ $v }}" @if ((is_array($cur['value']) && in_array($v, $cur['value'])) || $v == $cur['value']) selected @endif>{{ $option }}</option>
|
|
@@ -75,19 +75,19 @@
|
|
@endif
|
|
@endif
|
|
</select>
|
|
</select>
|
|
@elseif ('number' === $cur['type'])
|
|
@elseif ('number' === $cur['type'])
|
|
- <input @if (! empty($cur['required'])) required @endif @if (! empty($cur['disabled'])) disabled @endif @if (isset($cur['autofocus'])) autofocus @endif class="f-ctrl" id="id-{{ $key }}" name="{{ $key }}" type="number" min="{{ $cur['min'] }}" max="{{ $cur['max'] }}" @if (isset($cur['value'])) value="{{ $cur['value'] }}" @endif>
|
|
|
|
|
|
+ <input @if ($cur['required']) required @endif @if ($cur['disabled']) disabled @endif @if ($cur['autofocus']) autofocus @endif class="f-ctrl" id="id-{{ $key }}" name="{{ $key }}" type="number" min="{{ $cur['min'] }}" max="{{ $cur['max'] }}" @if (isset($cur['value'])) value="{{ $cur['value'] }}" @endif>
|
|
@elseif ('checkbox' === $cur['type'])
|
|
@elseif ('checkbox' === $cur['type'])
|
|
- <label class="f-child2"><input @if (isset($cur['autofocus'])) autofocus @endif @if (! empty($cur['disabled'])) disabled @endif type="checkbox" id="id-{{ $key }}" name="{{ $key }}" value="{{ $cur['value'] or '1' }}" @if (! empty($cur['checked'])) checked @endif>{!! $cur['label'] !!}</label>
|
|
|
|
|
|
+ <label class="f-child2"><input @if ($cur['autofocus']) autofocus @endif @if ($cur['disabled']) disabled @endif type="checkbox" id="id-{{ $key }}" name="{{ $key }}" value="{{ $cur['value'] or '1' }}" @if ($cur['checked']) checked @endif>{!! $cur['label'] !!}</label>
|
|
@elseif ('radio' === $cur['type'])
|
|
@elseif ('radio' === $cur['type'])
|
|
@foreach ($cur['values'] as $v => $n)
|
|
@foreach ($cur['values'] as $v => $n)
|
|
- <label class="f-label"><input @if (isset($cur['autofocus'])) autofocus @endif @if (! empty($cur['disabled'])) disabled @endif type="radio" id="id-{{ $key }}-{{ $v }}" name="{{ $key }}" value="{{ $v }}" @if ($v == $cur['value']) checked @endif>{{ $n }}</label>
|
|
|
|
|
|
+ <label class="f-label"><input @if ($cur['autofocus']) autofocus @endif @if ($cur['disabled']) disabled @endif type="radio" id="id-{{ $key }}-{{ $v }}" name="{{ $key }}" value="{{ $v }}" @if ($v == $cur['value']) checked @endif>{{ $n }}</label>
|
|
@endforeach
|
|
@endforeach
|
|
@elseif ('password' === $cur['type'])
|
|
@elseif ('password' === $cur['type'])
|
|
- <input @if (! empty($cur['required'])) required @endif @if (! empty($cur['disabled'])) disabled @endif @if (isset($cur['autofocus'])) autofocus @endif class="f-ctrl" id="id-{{ $key }}" name="{{ $key }}" type="password" @if (! empty($cur['maxlength'])) maxlength="{{ $cur['maxlength'] }}" @endif @if (isset($cur['pattern'])) pattern="{{ $cur['pattern'] }}" @endif @if (isset($cur['value'])) value="{{ $cur['value'] }}" @endif>
|
|
|
|
|
|
+ <input @if ($cur['required']) required @endif @if ($cur['disabled']) disabled @endif @if ($cur['autofocus']) autofocus @endif class="f-ctrl" id="id-{{ $key }}" name="{{ $key }}" type="password" @if ($cur['maxlength']) maxlength="{{ $cur['maxlength'] }}" @endif @if ($cur['pattern']) pattern="{{ $cur['pattern'] }}" @endif @if (isset($cur['value'])) value="{{ $cur['value'] }}" @endif>
|
|
@elseif ('btn' === $cur['type'])
|
|
@elseif ('btn' === $cur['type'])
|
|
- <a class="f-btn @if (! empty($cur['disabled'])) f-disabled @endif" href="{!! $cur['link'] !!}" @if (! empty($cur['disabled'])) tabindex="-1" @endif>{{ $cur['value'] }}</a>
|
|
|
|
|
|
+ <a class="f-btn @if ($cur['disabled']) f-disabled @endif" href="{!! $cur['link'] !!}" @if ($cur['disabled']) tabindex="-1" @endif>{{ $cur['value'] }}</a>
|
|
@endif
|
|
@endif
|
|
- @if (isset($cur['info']))
|
|
|
|
|
|
+ @if ($cur['info'])
|
|
<p class="f-child4">{!! $cur['info'] !!}</p>
|
|
<p class="f-child4">{!! $cur['info'] !!}</p>
|
|
@endif
|
|
@endif
|
|
</dd>
|
|
</dd>
|
|
@@ -100,9 +100,9 @@
|
|
<p class="f-btns">
|
|
<p class="f-btns">
|
|
@foreach ($form['btns'] as $key => $cur)
|
|
@foreach ($form['btns'] as $key => $cur)
|
|
@if ('submit' === $cur['type'])
|
|
@if ('submit' === $cur['type'])
|
|
- <input class="f-btn @if(isset($cur['class'])) {{ $cur['class'] }} @endif" type="{{ $cur['type'] }}" name="{{ $key }}" value="{{ $cur['value'] }}" @if (isset($cur['accesskey'])) accesskey="{{ $cur['accesskey'] }}" @endif>
|
|
|
|
|
|
+ <input class="f-btn @if($cur['class']) {{ $cur['class'] }} @endif" type="{{ $cur['type'] }}" name="{{ $key }}" value="{{ $cur['value'] }}" @if (isset($cur['accesskey'])) accesskey="{{ $cur['accesskey'] }}" @endif>
|
|
@elseif ('btn'=== $cur['type'])
|
|
@elseif ('btn'=== $cur['type'])
|
|
- <a class="f-btn @if(isset($cur['class'])) {{ $cur['class'] }} @endif" data-name="{{ $key }}" href="{!! $cur['link'] !!}" @if (isset($cur['accesskey'])) accesskey="{{ $cur['accesskey'] }}" @endif>{{ $cur['value'] }}</a>
|
|
|
|
|
|
+ <a class="f-btn @if($cur['class']) {{ $cur['class'] }} @endif" data-name="{{ $key }}" href="{!! $cur['link'] !!}" @if (isset($cur['accesskey'])) accesskey="{{ $cur['accesskey'] }}" @endif>{{ $cur['value'] }}</a>
|
|
@endif
|
|
@endif
|
|
@endforeach
|
|
@endforeach
|
|
</p>
|
|
</p>
|