FEATURE: prepare widget for displaying menu on onepage templates
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
@extends('admin.layoutWithNavigation')
|
||||
|
||||
@section('pageHeading', @trans('widgets/htmlCode.edit', ['name' => $widget->name]))
|
||||
|
||||
@section('content')
|
||||
<div class="col-lg-8">
|
||||
@include('admin.widgets.htmlCode.form', ['action' => route('widgets.postEdit', ['id' => $widget->id])])
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<h3>@lang('widgets/htmlCode.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
|
||||
|
||||
Reference in New Issue
Block a user