Lines 1-7
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="agreements_list"> |
3 |
<div v-else id="agreements_list"> |
4 |
<Toolbar v-if="!embedded" :options="this.toolbar_options" /> |
4 |
<Toolbar v-if="!embedded"> |
|
|
5 |
<ToolbarButton |
6 |
:to="{ name: 'AgreementsFormAdd' }" |
7 |
icon="plus" |
8 |
:title="$__('New agreement')" |
9 |
/> |
10 |
</Toolbar> |
5 |
<fieldset v-if="agreement_count > 0" class="filters"> |
11 |
<fieldset v-if="agreement_count > 0" class="filters"> |
6 |
<label for="expired_filter">{{ $__("Filter by expired") }}:</label> |
12 |
<label for="expired_filter">{{ $__("Filter by expired") }}:</label> |
7 |
<input |
13 |
<input |
Lines 52-57
Link Here
|
52 |
<script> |
58 |
<script> |
53 |
import flatPickr from "vue-flatpickr-component" |
59 |
import flatPickr from "vue-flatpickr-component" |
54 |
import Toolbar from "../Toolbar.vue" |
60 |
import Toolbar from "../Toolbar.vue" |
|
|
61 |
import ToolbarButton from "../ToolbarButton.vue" |
55 |
import { inject, ref, reactive } from "vue" |
62 |
import { inject, ref, reactive } from "vue" |
56 |
import { APIClient } from "../../fetch/api-client.js" |
63 |
import { APIClient } from "../../fetch/api-client.js" |
57 |
import { storeToRefs } from "pinia" |
64 |
import { storeToRefs } from "pinia" |
Lines 150-162
export default {
Link Here
|
150 |
}, |
157 |
}, |
151 |
before_route_entered: false, |
158 |
before_route_entered: false, |
152 |
building_table: false, |
159 |
building_table: false, |
153 |
toolbar_options: [ |
|
|
154 |
{ |
155 |
to: "AgreementsFormAdd", |
156 |
icon: "plus", |
157 |
button_title: this.$__("New agreement"), |
158 |
}, |
159 |
], |
160 |
} |
160 |
} |
161 |
}, |
161 |
}, |
162 |
beforeRouteEnter(to, from, next) { |
162 |
beforeRouteEnter(to, from, next) { |
Lines 353-359
export default {
Link Here
|
353 |
} |
353 |
} |
354 |
}, |
354 |
}, |
355 |
}, |
355 |
}, |
356 |
components: { flatPickr, Toolbar, KohaTable }, |
356 |
components: { flatPickr, Toolbar, ToolbarButton, KohaTable }, |
357 |
props: { |
357 |
props: { |
358 |
embedded: { |
358 |
embedded: { |
359 |
type: Boolean, |
359 |
type: Boolean, |