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
@@ -0,0 +1,33 @@
{!! csrf_field() !!}
<label class="label-control">
@lang('widgets/common.name')
</label>
<input class="form-control" type="text" name="name" value="{{old('name', $widget->name)}}"
placeholder="@lang('widgets/common.name')" />
<label class="label-control">
@lang('widgets/common.description')
</label>
<input class="form-control" type="text" name="description" placeholder="@lang('widgets/common.description')"
value="{{old('description', $widget->description)}}" />
<div class="row">
<div class="col-md-6"><label class="label-control">
@lang('widgets/common.containerClass')
</label>
<input class="form-control" type="text" name="containerClass" placeholder="@lang('widgets/common.containerClass')"
value="{{old('containerClass', $widget->container_class)}}" />
</div>
<div class="col-md-6">
<label class="label-control">
@lang('widgets/common.containerId')
</label>
<input class="form-control" type="text" name="containerId" placeholder="@lang('widgets/common.containerId')"
value="{{old('containerId', $widget->container_id)}}" />
</div>
</div>