Skip to content
This repository was archived by the owner on Nov 25, 2024. It is now read-only.

Commit 4ea2da9

Browse files
author
Rainer Friederich
committed
- Remove add from header
- Show add button below the form
1 parent eed6ef3 commit 4ea2da9

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Diff for: dist/js/field.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: resources/js/components/NestedFormField.vue

+9
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@
6565
}}
6666
</p>
6767
</div>
68+
<div
69+
v-if="field.children && field.children.length > 0"
70+
class="flex flex-col items-center justify-center bg-40 "
71+
>
72+
<nested-form-add
73+
:field="field"
74+
class="px-4 py-4 my-4 text-white btn btn-default btn-primary w-16 cursor-pointer"
75+
/>
76+
</div>
6877
</div>
6978
</template>
7079

Diff for: resources/js/components/NestedFormHeader.vue

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<div class="flex">
77
<nested-form-view :child="child" class="mx-2" />
88
<nested-form-remove :child="child" :field="field" class="mx-2" />
9-
<nested-form-add :field="field" class="mx-2" />
109
</div>
1110
</div>
1211
</template>

0 commit comments

Comments
 (0)