FEATURE: move template into own repository

This commit is contained in:
Michal Kváček
2017-08-24 02:51:49 +02:00
commit e9671314a5
23 changed files with 908 additions and 0 deletions
@@ -0,0 +1,15 @@
@extends('admin.layoutWithNavigation')
@section('pageHeading', @trans('widgets/htmlCode.edit', ['name' => $widget->name]))
@section('content')
<div class="col-lg-8">
@include('template::admin.widgets.onePageMenu.form', ['action' => route('widgets.postEdit', ['id' => $widget->id])])
</div>
<div class="col-lg-4">
<h3>@lang('widgets/menu.preview')</h3>
@widgetPreview($widget)
</div>
@stop
@@ -0,0 +1,27 @@
<form action="{{$action}}" method="POST">
{!! csrf_field() !!}
<label class="label-control">
@lang('template::widget/menu.form.name')
</label>
<input class="form-control" type="text" name="name" value="{{old('name', $widget->name)}}"
placeholder="@lang('template::widget/menu.form.name')" />
<label class="label-control">
@lang('template::widget/menu.form.description')
</label>
<input class="form-control" type="text" name="description" placeholder="@lang('template::widget/menu.form.description')"
value="{{old('description', $widget->description)}}" />
<label class="label-control">
@lang('template::widget/menu.form.containerClass')
</label>
<input class="form-control" type="text" name="containerClass" placeholder="@lang('template::widget/menu.form.containerClass')"
value="{{old('containerClass', isset($settings->containerClass) ? $settings->containerClass : '')}}" />
<button type="submit" class="btn btn-primary">
@lang('template::widget/menu.form.save')
</button>
</form>
@@ -0,0 +1,9 @@
@extends('admin.layoutWithNavigation')
@section('pageHeading', @trans('template::widget/menu.new'))
@section('pageDescription', @trans($type->description))
@section('content')
@include('template::admin.widgets.onePageMenu.form', ['action' => route('widgets.postNew', ['type' => $type->id])])
@stop