|
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" /> |
4 |
<Toolbar v-if="!embedded" :options="this.toolbar_options" /> |
| 5 |
<fieldset v-if="agreement_count > 0" class="filters"> |
5 |
<fieldset v-if="agreement_count > 0" class="filters"> |
| 6 |
<label for="expired_filter">{{ $__("Filter by expired") }}:</label> |
6 |
<label for="expired_filter">{{ $__("Filter by expired") }}:</label> |
| 7 |
<input |
7 |
<input |
|
Lines 50-56
Link Here
|
| 50 |
|
50 |
|
| 51 |
<script> |
51 |
<script> |
| 52 |
import flatPickr from "vue-flatpickr-component" |
52 |
import flatPickr from "vue-flatpickr-component" |
| 53 |
import Toolbar from "./AgreementsToolbar.vue" |
53 |
import Toolbar from "../Toolbar.vue" |
| 54 |
import { inject, ref, reactive } from "vue" |
54 |
import { inject, ref, reactive } from "vue" |
| 55 |
import { APIClient } from "../../fetch/api-client.js" |
55 |
import { APIClient } from "../../fetch/api-client.js" |
| 56 |
import { storeToRefs } from "pinia" |
56 |
import { storeToRefs } from "pinia" |
|
Lines 147-152
export default {
Link Here
|
| 147 |
}, |
147 |
}, |
| 148 |
}, |
148 |
}, |
| 149 |
}, |
149 |
}, |
|
|
150 |
before_route_entered: false, |
| 151 |
building_table: false, |
| 152 |
toolbar_options: [ |
| 153 |
{ |
| 154 |
to: "AgreementsFormAdd", |
| 155 |
button_title: "New agreement", |
| 156 |
}, |
| 157 |
], |
| 150 |
} |
158 |
} |
| 151 |
}, |
159 |
}, |
| 152 |
beforeRouteEnter(to, from, next) { |
160 |
beforeRouteEnter(to, from, next) { |