update create AUK
This commit is contained in:
@@ -23,17 +23,24 @@
|
||||
@csrf
|
||||
<!-- Document name -->
|
||||
<div>
|
||||
<x-label for="name" :value="__('Title')" />
|
||||
<x-label for="auk_name" :value="__('Title')" />
|
||||
|
||||
<x-input id="name" class="block mt-1 w-full" type="text" name="name"
|
||||
:value="old('name')" required autofocus />
|
||||
<x-input id="auk_name" class="block mt-1 w-full" type="text" name="auk_name"
|
||||
:value="old('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="old('number')" required />
|
||||
<x-input id="auk_path" class="block mt-1 w-full" type="text" name="auk_path"
|
||||
:value="old('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="old('image_dir')" required />
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@@ -42,7 +49,7 @@
|
||||
<x-select id="parent_id" class="block mt-1 w-full" name="parent_id" required>
|
||||
<option value="0">---</option>
|
||||
@foreach ($top_auks as $auks)
|
||||
<option value="{{ $auks->id }}">{{ $auks->name }} ({{ $auks->number }})</option>
|
||||
<option value="{{ $auks->id }}">{{ $auks->auk_name }} ({{ $auks->auk_path }})</option>
|
||||
@if (count($auks->childs))
|
||||
@include('auks.optionChild', [
|
||||
'childs' => $auks->childs,
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
<th class="p-2 border border-gray-200">
|
||||
{{ __('Path') }}
|
||||
</th>
|
||||
<th class="p-2 border border-gray-200">
|
||||
{{ __('Image Dir') }}
|
||||
</th>
|
||||
<th class="p-2 border border-gray-200">
|
||||
{{ __('Actions') }}
|
||||
</th>
|
||||
@@ -45,6 +48,7 @@
|
||||
<tr class="border border-gray-200">
|
||||
<td class="p-2 border border-gray-200">{{ $top_auk->auk_name }}</td>
|
||||
<td class="p-2 border border-gray-200">{{ $top_auk->auk_path }}</td>
|
||||
<td class="p-2 border border-gray-200">{{ $top_auk->image_dir }}</td>
|
||||
<td class="p-2 border border-gray-200">
|
||||
<div class="text-center">
|
||||
@include('auks.actions', ['auk' => $top_auk])
|
||||
@@ -65,7 +69,7 @@
|
||||
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="3" class="p-2 border border-gray-200 text-center">No AUKs!</td>
|
||||
<td colspan="4" class="p-2 border border-gray-200 text-center">No AUKs!</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</table>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@foreach ($childs as $child)
|
||||
<option value="{{ $child->id }}">{{ str_pad('', $level, '-') . ' ' . $child->name }}</option>
|
||||
<option value="{{ $child->id }}">{{ str_pad('', $level, '-') . ' ' . $child->auk_name }} ({{ $child->auk_path }})</option>
|
||||
@if (count($child->childs))
|
||||
@include('documents.optionChild', [
|
||||
'childs' => $child->childs,
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
@foreach ($childs as $child)
|
||||
<tr>
|
||||
<td class="p-2 border border-gray-200">
|
||||
{{ str_pad('', $level, '-') . ' ' . $child->name }}
|
||||
{{ str_pad('', $level, '-') . ' ' . $child->auk_name }}
|
||||
</td>
|
||||
<td class="p-2 border border-gray-200">
|
||||
{{ $child->number }}
|
||||
{{ $child->auk_path }}
|
||||
</td>
|
||||
<td class="p-2 border border-gray-200">
|
||||
{{ $child->image_dir }}
|
||||
</td>
|
||||
<td class="p-2 border border-gray-200">
|
||||
@include('auks.actions', ['auk' => $child])
|
||||
|
||||
Reference in New Issue
Block a user