FEATURE: ugly commit - rewritten widgets, menu made more compact, added profile menu, few bugfixes etc. Sorry..

This commit is contained in:
Michal Kváček
2016-09-04 01:52:17 +02:00
parent 9c02c63704
commit 66caf7ce05
44 changed files with 1006 additions and 192 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('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,39 @@
<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 : '')}}" />
<label class="label-control">
@lang('widgets/htmlCode.code')
</label>
@include('admin.snippets.aceEditor', [
'name' => 'code',
'value' => old('code', isset($settings->code) ? $settings->code : ''),
'theme' => 'xcode',
'mode' => 'html'
])
<button type="submit" class="btn btn-primary">
@lang('widgets/htmlCode.save')
</button>
</form>
@@ -0,0 +1,9 @@
@extends('admin.layoutWithNavigation')
@section('pageHeading', @trans('widgets/htmlCode.new'))
@section('pageDescription', @trans($type->description))
@section('content')
@include('admin.widgets.htmlCode.form', ['action' => route('widgets.postNew', ['type' => $type])])
@stop