Mercurial > packages > magicforger
comparison src/Generator/View/stubs/create_edit.stub @ 34:f65ab84ee47f default
merge with codex
| author | luka |
|---|---|
| date | Wed, 10 Sep 2025 21:00:47 -0400 |
| parents | 8dd668020310 |
| children |
comparison
equal
deleted
inserted
replaced
| 10:a9ff874afdbd | 34:f65ab84ee47f |
|---|---|
| 1 <x-app-layout> | |
| 2 <x-slot name="header"> | |
| 3 <h2 class="fw-semibold fs-4 text-dark"> | |
| 4 {{ isset($item) ? 'Edit' : 'Create' }} {{ ucfirst('{{ modelVariable }}') }} | |
| 5 </h2> | |
| 6 </x-slot> | |
| 7 | |
| 8 <div class="py-5"> | |
| 9 <div class="container"> | |
| 10 <div class="bg-white shadow-sm rounded p-4"> | |
| 11 <form method="POST" action="{{ isset($item) ? route('{{ tableName }}.update', $item) : route('{{ tableName }}.store') }}"> | |
| 12 @csrf | |
| 13 @if (isset($item)) | |
| 14 @method('PUT') | |
| 15 @endif | |
| 16 | |
| 17 {{ fieldsInsertPoint }} | |
| 18 | |
| 19 <div class="d-flex justify-content-end"> | |
| 20 <a href="{{ route('{{ tableName }}.index') }}" | |
| 21 class="btn btn-secondary me-2">Back</a> | |
| 22 <button type="submit" class="btn btn-primary"> | |
| 23 {{ isset($item) ? 'Update' : 'Create' }} | |
| 24 </button> | |
| 25 </div> | |
| 26 </form> | |
| 27 </div> | |
| 28 </div> | |
| 29 </div> | |
| 30 </x-app-layout> |
