mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 14:09:43 -08:00
36 lines
1.6 KiB
PHP
36 lines
1.6 KiB
PHP
@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')])
|
|
|
|
<!-- Manager -->
|
|
<div class="form-group {{ $errors->has('manager_id') ? 'has-error' : '' }}">
|
|
<label class="col-md-3 control-label" for="manager_id">{{ trans('admin/users/table.manager') }}</label>
|
|
<div class="col-md-8">
|
|
{{ Form::select('manager_id', $manager_list , Input::old('manager_id', $item->manager_id), array('class'=>'select2', 'style'=>'width:350px')) }}
|
|
{!! $errors->first('manager_id', '<span class="alert-msg">:message</span>') !!}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Location -->
|
|
<div class="form-group {{ $errors->has('location_id') ? 'has-error' : '' }}">
|
|
<label class="col-md-3 control-label" for="location_id">{{ trans('admin/departments/table.location') }}
|
|
</label>
|
|
<div class="col-md-8">
|
|
{{ Form::select('location_id', $location_list , Input::old('location_id', $item->location_id), array('class'=>'select2', 'style'=>'width:350px')) }}
|
|
{!! $errors->first('location_id', '<span class="alert-msg">:message</span>') !!}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|
|
|