Update AUK edit
This commit is contained in:
@@ -19,22 +19,29 @@
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<form method="POST" action="{{ route('auks.update',$auk->id) }}">
|
||||
<form method="POST" action="{{ route('auks.update', $auk->id) }}">
|
||||
@csrf
|
||||
@method('PUT')
|
||||
<input type="hidden" id="id" name="id" value="{{ $auk->id }}">
|
||||
<div>
|
||||
<x-label for="name" value="{{ __('Title') }}" />
|
||||
<x-label for="c" value="{{ __('Title') }}" />
|
||||
|
||||
<x-input id="name" class="block mt-1 w-full" type="text" name="name"
|
||||
value="{{ $auk->name }}" required autofocus />
|
||||
<x-input id="auk_name" class="block mt-1 w-full" type="text" name="auk_name"
|
||||
value="{{ $auk->auk_name }}" required autofocus />
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<x-label for="number" value="{{ __('Number') }}" />
|
||||
<x-label for="auk_path" value="{{ __('Path') }}" />
|
||||
|
||||
<x-input id="number" class="block mt-1 w-full" type="text" name="number"
|
||||
value="{{ $auk->number }}" required />
|
||||
<x-input id="auk_path" class="block mt-1 w-full" type="text" name="auk_path"
|
||||
value="{{ $auk->auk_path }}" required />
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<x-label for="image_dir" value="{{ __('Image Dir') }}" />
|
||||
|
||||
<x-input id="image_dir" class="block mt-1 w-full" type="text" name="image_dir"
|
||||
value="{{ $auk->image_dir }}" required />
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@@ -44,12 +51,14 @@
|
||||
<option value="0">---</option>
|
||||
@foreach ($top_auks as $top_auk)
|
||||
@if ($auk->parent_id == $top_auk->id)
|
||||
<option value="{{ $top_auk->id }}" selected>{{ $top_auk->name }} ({{ $top_auk->number }})</option>
|
||||
<option value="{{ $top_auk->id }}" selected>{{ $top_auk->auk_name }}
|
||||
({{ $top_auk->auk_path }})</option>
|
||||
@else
|
||||
<option value="{{ $top_auk->id }}">{{ $top_auk->name }} ({{ $top_auk->number }})</option>
|
||||
<option value="{{ $top_auk->id }}">{{ $top_auk->auk_name }}
|
||||
({{ $top_auk->auk_path }})</option>
|
||||
@endif
|
||||
@if (count($top_auk->childs))
|
||||
@include('documents.optionChildSelected', [
|
||||
@include('auks.optionChildSelected', [
|
||||
'childs' => $top_auk->childs,
|
||||
'parent_id' => $top_auk->parent_id,
|
||||
'level' => 1,
|
||||
|
||||
Reference in New Issue
Block a user