Lines 1-32
Link Here
|
1 |
<template> |
1 |
<template> |
2 |
<div v-if="!initialized">{{ $__("Loading") }}</div> |
2 |
<div v-if="!initialized">{{ $__("Loading") }}</div> |
3 |
<div v-else id="vendor_add"> |
3 |
<template v-else> |
4 |
<h1 v-if="vendor.id"> |
4 |
<h1 v-if="vendor.id"> |
5 |
{{ $__("Edit vendor #%s").format(vendor.id) }} |
5 |
{{ $__("Edit vendor #%s").format(vendor.id) }} |
6 |
</h1> |
6 |
</h1> |
7 |
<h1 v-else>{{ $__("Add vendor") }}</h1> |
7 |
<h1 v-else>{{ $__("Add vendor") }}</h1> |
8 |
<div> |
8 |
<form @submit="onSubmit($event)" id="add_vendor"> |
9 |
<form @submit="onSubmit($event)"> |
9 |
<Toolbar :sticky="true"> |
10 |
<VendorDetails :vendor="vendor" /> |
10 |
<ButtonSubmit :text="$__('Save')" /> |
11 |
<VendorContacts :vendor="vendor" /> |
11 |
<ToolbarButton |
12 |
<VendorInterfaces :vendor="vendor" /> |
12 |
:to="{ name: 'VendorList' }" |
13 |
<VendorOrderingInformation |
13 |
:title="$__('Cancel')" |
14 |
:vendor="vendor" |
14 |
icon="times" |
15 |
:verifyDiscountValue="verifyDiscountValue" |
15 |
> |
16 |
:discountValid="discountValid" |
16 |
</ToolbarButton> |
17 |
/> |
17 |
</Toolbar> |
18 |
<fieldset class="action"> |
18 |
<VendorDetails :vendor="vendor" /> |
19 |
<ButtonSubmit /> |
19 |
<VendorContacts :vendor="vendor" /> |
20 |
<router-link |
20 |
<VendorInterfaces :vendor="vendor" /> |
21 |
:to="{ name: 'VendorList' }" |
21 |
<VendorOrderingInformation |
22 |
role="button" |
22 |
:vendor="vendor" |
23 |
class="cancel" |
23 |
:verifyDiscountValue="verifyDiscountValue" |
24 |
>{{ $__("Cancel") }}</router-link |
24 |
:discountValid="discountValid" |
25 |
> |
25 |
/> |
26 |
</fieldset> |
26 |
</form> |
27 |
</form> |
27 |
</template> |
28 |
</div> |
|
|
29 |
</div> |
30 |
</template> |
28 |
</template> |
31 |
|
29 |
|
32 |
<script> |
30 |
<script> |
Lines 37-42
import VendorDetails from "./VendorDetails.vue";
Link Here
|
37 |
import VendorContacts from "./VendorContacts.vue"; |
35 |
import VendorContacts from "./VendorContacts.vue"; |
38 |
import VendorOrderingInformation from "./VendorOrderingInformation.vue"; |
36 |
import VendorOrderingInformation from "./VendorOrderingInformation.vue"; |
39 |
import VendorInterfaces from "./VendorInterfaces.vue"; |
37 |
import VendorInterfaces from "./VendorInterfaces.vue"; |
|
|
38 |
import Toolbar from "../Toolbar.vue"; |
39 |
import ToolbarButton from "../ToolbarButton.vue"; |
40 |
|
40 |
|
41 |
export default { |
41 |
export default { |
42 |
data() { |
42 |
data() { |
Lines 193-198
export default {
Link Here
|
193 |
VendorContacts, |
193 |
VendorContacts, |
194 |
VendorOrderingInformation, |
194 |
VendorOrderingInformation, |
195 |
VendorInterfaces, |
195 |
VendorInterfaces, |
|
|
196 |
Toolbar, |
197 |
ToolbarButton, |
196 |
}, |
198 |
}, |
197 |
name: "VendorFormAdd", |
199 |
name: "VendorFormAdd", |
198 |
}; |
200 |
}; |