-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathfull-form.blade.php
52 lines (36 loc) · 1.88 KB
/
full-form.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{{'@'}}extends('brackets/admin-ui::admin.layout.default')
{{'@'}}section('title', trans('admin.{{ $modelLangFormat }}.actions.edit', ['name' => ${{ $modelVariableName }}->{{$modelTitle}}]))
{{'@'}}section('body')
<div class="container-xl">
<div class="card">
@if($hasTranslatable)<{{ $modelJSName }}-form
:action="'{{'{{'}} route('{{ $route }}', ['{{ $modelVariableName }}' => ${{ $modelVariableName }}]) }}'"
:data="{{'{{'}} ${{ $modelVariableName }}->toJsonAllLocales() }}"
:locales="@{{ json_encode($locales) }}"
:send-empty-locales="false"
v-cloak
inline-template>
@else<{{ $modelJSName }}-form
:action="'{{'{{'}} route('{{ $route }}', ['{{ $modelVariableName }}' => ${{ $modelVariableName }}]) }}'"
:data="{{'{{'}} ${{ $modelVariableName }}->toJson() }}"
v-cloak
inline-template>
@endif
<form class="form-horizontal" method="post" {{'@'}}submit.prevent="onSubmit" :action="action">
<div class="card-header">
<i class="fa fa-plus"></i> {{'{{'}} trans('admin.{{ $modelLangFormat }}.actions.edit', ['name' => ${{ $modelVariableName }}->{{$modelTitle}}]) }}
</div>
<div class="card-body">
@include('brackets/admin-generator::form')
</div>
<div class="card-footer">
<button type="submit" class="btn btn-primary">
<i class="fa" :class="submiting ? 'fa-spinner' : 'fa-download'"></i>
@{{ trans('brackets/admin-ui::admin.btn.save') }}
</button>
</div>
</form>
</{{ $modelJSName }}-form>
</div>
</div>
{{'@'}}endsection