Stubbed index and edit for maintenance types

This commit is contained in:
snipe
2026-05-18 11:08:48 +01:00
parent 30dbf1698b
commit 1967b3b7a7
2 changed files with 61 additions and 0 deletions
@@ -0,0 +1,33 @@
@extends('layouts/default')
{{-- Page title --}}
@section('title')
@if ($item->id)
{{ trans('admin/maintenance_types/general.update') }}
@else
{{ trans('admin/maintenance_types/general.create') }}
@endif
@parent
@stop
@section('header_right')
<a href="{{ URL::previous() }}" class="btn btn-primary pull-right">
{{ trans('general.back') }}
</a>
@stop
{{-- Page content --}}
@section('content')
<x-container class="col-md-6 col-md-offset-3">
<x-form :$item route="{{ $item->id ? route('maintenance-types.update', $item->id) : route('maintenance-types.store') }}">
<x-box>
<x-form.row
:label="trans('general.name')"
:$item
name="name"
required="true"
/>
</x-box>
</x-form>
</x-container>
@stop
@@ -0,0 +1,28 @@
@extends('layouts/default')
{{-- Page title --}}
@section('title')
{{ trans('admin/maintenance_types/general.maintenance_types') }}
@parent
@stop
{{-- Page content --}}
@section('content')
<x-container>
<x-box>
<x-table
name="maintenancetype"
buttons="maintenanceTypeButtons"
fixed_right_number="1"
fixed_number="1"
api_url="{{ route('api.maintenance-types.index') }}"
:presenter="\App\Presenters\MaintenanceTypePresenter::dataTableLayout()"
export_filename="export-maintenance-types-{{ date('Y-m-d') }}"
/>
</x-box>
</x-container>
@stop
@section('moar_scripts')
@include ('partials.bootstrap-table')
@stop