first commit
This commit is contained in:
10
resources/views/partials/form/checkbox_group.blade.php
Normal file
10
resources/views/partials/form/checkbox_group.blade.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<div class="form-group {{ $col }} {{ isset($attributes['required']) ? 'required' : '' }} {{ $errors->has($name) ? 'has-error' : '' }}">
|
||||
{!! Form::label($name, $text, ['class' => 'control-label']) !!}
|
||||
<br/>
|
||||
@foreach($items as $item)
|
||||
<div class="col-md-3">
|
||||
{{ Form::checkbox($name . '[]', $item->$id) }} {{ $item->$value }}
|
||||
</div>
|
||||
@endforeach
|
||||
{!! $errors->first($name, '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
18
resources/views/partials/form/delete_button.blade.php
Normal file
18
resources/views/partials/form/delete_button.blade.php
Normal file
@@ -0,0 +1,18 @@
|
||||
@php
|
||||
$page = explode('/', $url)[1];
|
||||
$text = $text ? $text : $page;
|
||||
@endphp
|
||||
|
||||
{!! Form::open([
|
||||
'id' => str_singular($page) . '-' . $item->$id,
|
||||
'method' => 'DELETE',
|
||||
'url' => [$url, $item->$id],
|
||||
'style' => 'display:inline'
|
||||
]) !!}
|
||||
{!! Form::button('<i class="fa fa-trash-o" aria-hidden="true"></i> ' . trans('general.delete'), array(
|
||||
'type' => 'button',
|
||||
'class' => 'btn btn-danger btn-xs',
|
||||
'title' => trans('general.delete'),
|
||||
'onclick' => 'confirmDelete("' . '#' . str_singular($page) . '-' . $item->$id . '", "' . trans_choice('general.' . $text, 2) . '", "' . trans('general.delete_confirm', ['name' => '<strong>' . $item->$value . '</strong>', 'type' => strtolower(trans_choice('general.' . $text, 1))]) . '", "' . trans('general.cancel') . '", "' . trans('general.delete') . '")'
|
||||
)) !!}
|
||||
{!! Form::close() !!}
|
||||
8
resources/views/partials/form/email_group.blade.php
Normal file
8
resources/views/partials/form/email_group.blade.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<div class="form-group {{ $col }} {{ isset($attributes['required']) ? 'required' : '' }} {{ $errors->has($name) ? 'has-error' : '' }}">
|
||||
{!! Form::label($name, $text, ['class' => 'control-label']) !!}
|
||||
<div class="input-group">
|
||||
<div class="input-group-addon"><i class="fa fa-{{ $icon }}"></i></div>
|
||||
{!! Form::email($name, $value, array_merge(['class' => 'form-control', 'placeholder' => trans('general.form.enter', ['field' => $text])], $attributes)) !!}
|
||||
</div>
|
||||
{!! $errors->first($name, '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
5
resources/views/partials/form/file_group.blade.php
Normal file
5
resources/views/partials/form/file_group.blade.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="form-group {{ $col }} {{ isset($attributes['required']) ? 'required' : '' }} {{ $errors->has($name) ? 'has-error' : '' }}" style="min-height: 59px">
|
||||
{!! Form::label($name, $text, ['class' => 'control-label']) !!}
|
||||
{!! Form::file($name, null, array_merge(['class' => 'form-control'], $attributes)) !!}
|
||||
{!! $errors->first($name, '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
8
resources/views/partials/form/password_group.blade.php
Normal file
8
resources/views/partials/form/password_group.blade.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<div class="form-group {{ $col }} {{ isset($attributes['required']) ? 'required' : '' }} {{ $errors->has($name) ? 'has-error' : '' }}">
|
||||
{!! Form::label($name, $text, ['class' => 'control-label']) !!}
|
||||
<div class="input-group">
|
||||
<div class="input-group-addon"><i class="fa fa-{{ $icon }}"></i></div>
|
||||
{!! Form::password($name, array_merge(['class' => 'form-control', 'placeholder' => trans('general.form.enter', ['field' => $text])], $attributes)) !!}
|
||||
</div>
|
||||
{!! $errors->first($name, '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
16
resources/views/partials/form/radio_group.blade.php
Normal file
16
resources/views/partials/form/radio_group.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<div class="form-group {{ $col }} {{ isset($attributes['required']) ? 'required' : '' }} {{ $errors->has($name) ? 'has-error' : '' }}">
|
||||
{!! Form::label($name, $text, ['class' => 'control-label']) !!}
|
||||
<div class="input-group">
|
||||
<div class="btn-group radio-inline" data-toggle="buttons">
|
||||
<label id="{{ $name }}_1" class="btn btn-default">
|
||||
{!! Form::radio($name, '1') !!}
|
||||
<span class="radiotext">{{ trans('general.yes') }}</span>
|
||||
</label>
|
||||
<label id="{{ $name }}_0" class="btn btn-default">
|
||||
{!! Form::radio($name, '0', true) !!}
|
||||
<span class="radiotext">{{ trans('general.no') }}</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
{!! $errors->first($name, '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
6
resources/views/partials/form/save_buttons.blade.php
Normal file
6
resources/views/partials/form/save_buttons.blade.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<div class="{{ $col }}">
|
||||
<div class="form-group no-margin">
|
||||
{!! Form::button('<span class="fa fa-save"></span> ' . trans('general.save'), ['type' => 'submit', 'class' => 'btn btn-success']) !!}
|
||||
<a href="{{ url($cancel) }}" class="btn btn-default"><span class="fa fa-times-circle"></span> {{ trans('general.cancel') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
8
resources/views/partials/form/select_group.blade.php
Normal file
8
resources/views/partials/form/select_group.blade.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<div class="form-group {{ $col }} {{ isset($attributes['required']) ? 'required' : '' }} {{ $errors->has($name) ? 'has-error' : ''}}">
|
||||
{!! Form::label($name, $text, ['class' => 'control-label']) !!}
|
||||
<div class="input-group">
|
||||
<div class="input-group-addon"><i class="fa fa-{{ $icon }}"></i></div>
|
||||
{!! Form::select($name, $values, $selected, array_merge(['class' => 'form-control', 'placeholder' => trans('general.form.select.field', ['field' => $text])], $attributes)) !!}
|
||||
</div>
|
||||
{!! $errors->first($name, '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
8
resources/views/partials/form/text_group.blade.php
Normal file
8
resources/views/partials/form/text_group.blade.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<div class="form-group {{ $col }} {{ isset($attributes['required']) ? 'required' : '' }} {{ $errors->has($name) ? 'has-error' : '' }}">
|
||||
{!! Form::label($name, $text, ['class' => 'control-label']) !!}
|
||||
<div class="input-group">
|
||||
<div class="input-group-addon"><i class="fa fa-{{ $icon }}"></i></div>
|
||||
{!! Form::text($name, $value, array_merge(['class' => 'form-control', 'placeholder' => trans('general.form.enter', ['field' => $text])], $attributes)) !!}
|
||||
</div>
|
||||
{!! $errors->first($name, '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
5
resources/views/partials/form/textarea_group.blade.php
Normal file
5
resources/views/partials/form/textarea_group.blade.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="form-group {{ $col }} {{ isset($attributes['required']) ? 'required' : '' }} {{ $errors->has($name) ? 'has-error' : '' }}">
|
||||
{!! Form::label($name, $text, ['class' => 'control-label']) !!}
|
||||
{!! Form::textarea($name, $value, array_merge(['class' => 'form-control', 'placeholder' => trans('general.form.enter', ['field' => $text])], $attributes)) !!}
|
||||
{!! $errors->first($name, '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
Reference in New Issue
Block a user