FEATURE: include commont parts of widget forms

This commit is contained in:
Michal Kváček
2016-10-11 16:24:16 +02:00
parent dee5060a24
commit ce058ae824
8 changed files with 52 additions and 46 deletions
@@ -1,25 +1,5 @@
<form action="{{$action}}" method="POST">
{!! csrf_field() !!}
<label class="label-control">
@lang('widgets/htmlCode.name')
</label>
<input class="form-control" type="text" name="name" value="{{old('name', $widget->name)}}"
placeholder="@lang('widgets/htmlCode.name')" />
<label class="label-control">
@lang('widgets/htmlCode.description')
</label>
<input class="form-control" type="text" name="description" placeholder="@lang('widgets/htmlCode.description')"
value="{{old('description', $widget->description)}}" />
<label class="label-control">
@lang('widgets/htmlCode.containerClass')
</label>
<input class="form-control" type="text" name="containerClass" placeholder="@lang('widgets/htmlCode.containerClass')"
value="{{old('containerClass', isset($settings->containerClass) ? $settings->containerClass : '')}}" />
@include('admin.widgets.snippets.commonForm')
<label class="label-control">
@lang('widgets/htmlCode.code')