From d17d3a2ef002bdfd61282cec926d56827ce24854 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 23 May 2017 02:50:27 -0700 Subject: [PATCH] Dept views --- resources/views/departments/edit.blade.php | 35 ++++++++++++++ resources/views/departments/index.blade.php | 51 ++++++++++++++++++++ resources/views/departments/view.blade.php | 53 +++++++++++++++++++++ 3 files changed, 139 insertions(+) create mode 100644 resources/views/departments/edit.blade.php create mode 100644 resources/views/departments/index.blade.php create mode 100644 resources/views/departments/view.blade.php diff --git a/resources/views/departments/edit.blade.php b/resources/views/departments/edit.blade.php new file mode 100644 index 0000000000..c061ab42b0 --- /dev/null +++ b/resources/views/departments/edit.blade.php @@ -0,0 +1,35 @@ +@extends('layouts/edit-form', [ + 'createText' => trans('admin/departments/table.create') , + 'updateText' => trans('admin/departments/table.update'), + 'helpTitle' => trans('admin/departments/table.about_locations_title'), + 'helpText' => trans('admin/departments/table.about_locations'), + 'formAction' => ($item) ? route('departments.update', ['department' => $item->id]) : route('departments.store'), +]) + +{{-- Page content --}} +@section('inputFields') + @include ('partials.forms.edit.name', ['translated_name' => trans('admin/departments/table.name')]) + + +
+ +
+ {{ Form::select('manager_id', $manager_list , Input::old('manager_id', $item->manager_id), array('class'=>'select2', 'style'=>'width:350px')) }} + {!! $errors->first('manager_id', ':message') !!} +
+
+ + +
+ +
+ {{ Form::select('location_id', $location_list , Input::old('location_id', $item->location_id), array('class'=>'select2', 'style'=>'width:350px')) }} + {!! $errors->first('location_id', ':message') !!} +
+
+ + + +@stop + diff --git a/resources/views/departments/index.blade.php b/resources/views/departments/index.blade.php new file mode 100644 index 0000000000..784c110004 --- /dev/null +++ b/resources/views/departments/index.blade.php @@ -0,0 +1,51 @@ +@extends('layouts/default') + +{{-- Page title --}} +@section('title') + {{ trans('general.departments') }} + @parent +@stop + +@section('header_right') + + {{ trans('general.create') }} +@stop +{{-- Page content --}} +@section('content') +
+
+
+
+
+ + + + + + + + + + + + +
{{ trans('general.id') }}{{ trans('admin/departments/table.name') }}{{ trans('admin/departments/table.manager') }}{{ trans('general.users') }}{{ trans('admin/departments/table.location') }}{{ trans('table.actions') }}
+
+
+
+
+
+ +@stop + +@section('moar_scripts') + @include ('partials.bootstrap-table', ['exportFile' => 'locations-export', 'search' => true]) + +@stop diff --git a/resources/views/departments/view.blade.php b/resources/views/departments/view.blade.php new file mode 100644 index 0000000000..1fdcc0840e --- /dev/null +++ b/resources/views/departments/view.blade.php @@ -0,0 +1,53 @@ +@extends('layouts/default') + +{{-- Page title --}} +@section('title') + + {{ $department->name }} + {{ trans('general.department') }} + @parent +@stop + +@section('header_right') + {{ trans('admin/departments/table.update') }} +@stop + +{{-- Page content --}} +@section('content') + +
+
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+ +@stop + +@section('moar_scripts') + @include ('partials.bootstrap-table', + ['exportFile' => 'departments-users-export', + 'search' => true, + 'columns' => \App\Presenters\UserPresenter::dataTableLayout() +]) + +@stop