diff --git a/src/Views/admin/configuration/common/paginate.blade.php b/src/Views/admin/configuration/common/paginate.blade.php index c3227ab5..1b2942ba 100644 --- a/src/Views/admin/configuration/common/paginate.blade.php +++ b/src/Views/admin/configuration/common/paginate.blade.php @@ -1,3 +1,3 @@ - + diff --git a/src/Views/admin/configuration/create.blade.php b/src/Views/admin/configuration/create.blade.php index d5a18e06..89c9f311 100644 --- a/src/Views/admin/configuration/create.blade.php +++ b/src/Views/admin/configuration/create.blade.php @@ -1,89 +1,75 @@ -@extends($master) +@extends('ticketit::layouts.master') +@section('page', trans('ticketit::admin.config-create-subtitle')) -@section('page') - {{ trans('ticketit::admin.config-create-subtitle') }} +@section('ticketit_header') +{!! link_to_route( + $setting->grab('admin_route').'.configuration.index', + trans('ticketit::admin.btn-back'), null, + ['class' => 'btn btn-secondary']) +!!} @stop -@section('content') - @include('ticketit::shared.header') -
-
-

{{ trans('ticketit::admin.config-create-title') }} -
- {!! link_to_route( - $setting->grab('admin_route').'.configuration.index', - trans('ticketit::admin.btn-back'), null, - ['class' => 'btn btn-default']) - !!} -
-

-
-
-
-{!! CollectiveForm::open(['route' => $setting->grab('admin_route').'.configuration.store']) !!} +@section('ticketit_content') + {!! CollectiveForm::open(['route' => $setting->grab('admin_route').'.configuration.store']) !!} - -
- {!! CollectiveForm::label('slug', trans('ticketit::admin.config-edit-slug') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 control-label']) !!} -
- {!! CollectiveForm::text('slug', null, ['class' => 'form-control']) !!} -
+ +
+ {!! CollectiveForm::label('slug', trans('ticketit::admin.config-edit-slug') . trans('ticketit::admin.colon'), ['class' => 'col-sm-3 col-form-label']) !!} +
+ {!! CollectiveForm::text('slug', null, ['class' => 'form-control']) !!}
+
- -
- {!! CollectiveForm::label('default', trans('ticketit::admin.config-edit-default') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 control-label']) !!} -
- {!! CollectiveForm::text('default', null, ['class' => 'form-control']) !!} -
+ +
+ {!! CollectiveForm::label('default', trans('ticketit::admin.config-edit-default') . trans('ticketit::admin.colon'), ['class' => 'col-sm-3 col-form-label']) !!} +
+ {!! CollectiveForm::text('default', null, ['class' => 'form-control']) !!}
+
- -
- {!! CollectiveForm::label('value', trans('ticketit::admin.config-edit-value') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 control-label']) !!} -
- {!! CollectiveForm::text('value', null, ['class' => 'form-control']) !!} -
+ +
+ {!! CollectiveForm::label('value', trans('ticketit::admin.config-edit-value') . trans('ticketit::admin.colon'), ['class' => 'col-sm-3 col-form-label']) !!} +
+ {!! CollectiveForm::text('value', null, ['class' => 'form-control']) !!}
+
- -
- {!! CollectiveForm::label('lang', trans('ticketit::admin.config-edit-language') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 control-label']) !!} -
- {!! CollectiveForm::text('lang', null, ['class' => 'form-control']) !!} - -
+ +
+ {!! CollectiveForm::label('lang', trans('ticketit::admin.config-edit-language') . trans('ticketit::admin.colon'), ['class' => 'col-sm-3 col-form-label']) !!} +
+ {!! CollectiveForm::text('lang', null, ['class' => 'form-control']) !!} +
+
- -
-
- {!! CollectiveForm::submit(trans('ticketit::admin.btn-submit'), ['class' => 'btn btn-primary']) !!} -
+ +
+
+ {!! CollectiveForm::submit(trans('ticketit::admin.btn-submit'), ['class' => 'btn btn-primary']) !!}
- - {!! CollectiveForm::close() !!}
-
- -
- +@section('footer') + +@append \ No newline at end of file diff --git a/src/Views/admin/configuration/edit.blade.php b/src/Views/admin/configuration/edit.blade.php index 4ebc18d5..4477ff96 100644 --- a/src/Views/admin/configuration/edit.blade.php +++ b/src/Views/admin/configuration/edit.blade.php @@ -1,131 +1,116 @@ -@extends($master) +@extends('ticketit::layouts.master') -@section('page') - {{ trans('ticketit::admin.config-edit-subtitle') }} +@section('page', trans('ticketit::admin.config-edit-subtitle')) + +@section('ticketit_header') +{!! link_to_route( + $setting->grab('admin_route').'.configuration.index', + trans('ticketit::admin.btn-back'), null, + ['class' => 'btn btn-secondary']) +!!} @stop -@section('content') - @include('ticketit::shared.header') -
-
-

{{ trans('ticketit::admin.config-edit-title') }} -
- {!! link_to_route( - $setting->grab('admin_route').'.configuration.index', - trans('ticketit::admin.btn-back'), null, - ['class' => 'btn btn-default']) - !!} - {{-- - {!! link_to_route( - $setting->grab('admin_route').'.configuration.create', - trans('ticketit::admin.btn-create-new-config'), null, - ['class' => 'btn btn-primary']) - !!} - --}} +@section('ticketit_content') + {!! CollectiveForm::model($configuration, ['route' => [$setting->grab('admin_route').'.configuration.update', $configuration->id], 'method' => 'patch']) !!} + + + @if(trans("ticketit::settings." . $configuration->slug) != ("ticketit::settings." . $configuration->slug) && trans("ticketit::settings." . $configuration->slug)) +
+
{!! trans("ticketit::settings." . $configuration->slug) !!}
+
+ @endif + + +
+ {!! CollectiveForm::label('id', trans('ticketit::admin.config-edit-id') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 col-form-label']) !!} +
+ {!! CollectiveForm::text('id', null, ['class' => 'form-control', 'disabled']) !!}
-

-
-
-
-{!! CollectiveForm::model($configuration, ['route' => [$setting->grab('admin_route').'.configuration.update', $configuration->id], 'method' => 'patch']) !!} - - - @if(trans("ticketit::settings." . $configuration->slug) != ("ticketit::settings." . $configuration->slug) && trans("ticketit::settings." . $configuration->slug)) -
-
{!! trans("ticketit::settings." . $configuration->slug) !!}
-
- @endif - - -
- {!! CollectiveForm::label('id', trans('ticketit::admin.config-edit-id') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 control-label']) !!} -
- {!! CollectiveForm::text('id', null, ['class' => 'form-control', 'disabled']) !!} -
-
- - -
- {!! CollectiveForm::label('slug', trans('ticketit::admin.config-edit-slug') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 control-label']) !!} -
- {!! CollectiveForm::text('slug', null, ['class' => 'form-control', 'disabled']) !!} -
-
- -
- {!! CollectiveForm::label('default', trans('ticketit::admin.config-edit-default') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 control-label']) !!} -
- @if(!$default_serialized) - {!! CollectiveForm::text('default', null, ['class' => 'form-control', 'disabled']) !!} - @else -
{{var_export(unserialize($configuration->default), true)}}
- @endif -
-
- - - -
- {!! CollectiveForm::label('value', trans('ticketit::admin.config-edit-value') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 control-label']) !!} -
- @if(!$should_serialize) - {!! CollectiveForm::text('value', null, ['class' => 'form-control']) !!} - @else - {!! CollectiveForm::textarea('value', var_export(unserialize($configuration->value), true), ['class' => 'form-control']) !!} - @endif -
-
- - -
- {!! CollectiveForm::label('serialize', trans('ticketit::admin.config-edit-should-serialize') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 control-label']) !!} -
- {!! CollectiveForm::checkbox('serialize', 1, $should_serialize, ['class' => 'form-control', 'onchange' => 'changeSerialize(this)',]) !!} - @lang('ticketit::admin.config-edit-eval-warning') eval('$value = serialize(' . $value . ');') -
+
+ + +
+ {!! CollectiveForm::label('slug', trans('ticketit::admin.config-edit-slug') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 col-form-label']) !!} +
+ {!! CollectiveForm::text('slug', null, ['class' => 'form-control', 'disabled']) !!} +
+
+ +
+ {!! CollectiveForm::label('default', trans('ticketit::admin.config-edit-default') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 col-form-label']) !!} +
+ @if(!$default_serialized) + {!! CollectiveForm::text('default', null, ['class' => 'form-control', 'disabled']) !!} + @else +
{{var_export(unserialize($configuration->default), true)}}
+ @endif +
+
+ + + +
+ {!! CollectiveForm::label('value', trans('ticketit::admin.config-edit-value') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 col-form-label']) !!} +
+ @if(!$should_serialize) + {!! CollectiveForm::text('value', null, ['class' => 'form-control']) !!} + @else + {!! CollectiveForm::textarea('value', var_export(unserialize($configuration->value), true), ['class' => 'form-control']) !!} + @endif +
+
+ + +
+ {!! CollectiveForm::label('serialize', trans('ticketit::admin.config-edit-should-serialize') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 col-form-label']) !!} +
+ {!! CollectiveForm::checkbox('serialize', 1, $should_serialize, ['class' => 'form-control', 'onchange' => 'changeSerialize(this)',]) !!} + @lang('ticketit::admin.config-edit-eval-warning') eval('$value = serialize(' . $value . ');')
+
- -
- {!! CollectiveForm::label('password', trans('ticketit::admin.config-edit-reenter-password') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 control-label']) !!} -
- {!! CollectiveForm::password('password', ['class' => 'form-control']) !!} -
+ +
+ {!! CollectiveForm::label('password', trans('ticketit::admin.config-edit-reenter-password') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 col-form-label']) !!} +
+ {!! CollectiveForm::password('password', ['class' => 'form-control']) !!}
+
- -
- {!! CollectiveForm::label('lang', trans('ticketit::admin.config-edit-language') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 control-label']) !!} -
- {!! CollectiveForm::text('lang', null, ['class' => 'form-control']) !!} -
-
- - -
-
- {!! CollectiveForm::submit(trans('ticketit::admin.btn-submit'), ['class' => 'btn btn-primary']) !!} -
-
- - {!! CollectiveForm::close() !!} + +
+ {!! CollectiveForm::label('lang', trans('ticketit::admin.config-edit-language') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 col-form-label']) !!} +
+ {!! CollectiveForm::text('lang', null, ['class' => 'form-control']) !!} +
+
+ + +
+
+ {!! CollectiveForm::submit(trans('ticketit::admin.btn-submit'), ['class' => 'btn btn-primary']) !!} +
-
-
+ + {!! CollectiveForm::close() !!} +