Lines 47-60
Link Here
|
47 |
</transition> |
47 |
</transition> |
48 |
<div v-if="!initialized">{{ $__("Loading") }}</div> |
48 |
<div v-if="!initialized">{{ $__("Loading") }}</div> |
49 |
<div v-else id="trains_show"> |
49 |
<div v-else id="trains_show"> |
50 |
<div id="toolbar" class="btn-toolbar"> |
50 |
<Toolbar> |
51 |
<router-link |
51 |
<ToolbarButton |
52 |
v-if="train.closed_on == null" |
52 |
v-if="train.closed_on == null" |
53 |
:to="`/cgi-bin/koha/preservation/trains/${train.train_id}/items/add`" |
53 |
:to="`/cgi-bin/koha/preservation/trains/${train.train_id}/items/add`" |
54 |
class="btn btn-default" |
54 |
class="btn btn-default" |
55 |
><font-awesome-icon icon="plus" /> |
55 |
icon="plus" |
56 |
{{ $__("Add items") }}</router-link |
56 |
:title="$__('Add items')" |
57 |
> |
57 |
/> |
58 |
<span |
58 |
<span |
59 |
v-else |
59 |
v-else |
60 |
class="btn btn-default" |
60 |
class="btn btn-default" |
Lines 63-74
Link Here
|
63 |
> |
63 |
> |
64 |
<font-awesome-icon icon="plus" /> {{ $__("Add items") }} |
64 |
<font-awesome-icon icon="plus" /> {{ $__("Add items") }} |
65 |
</span> |
65 |
</span> |
66 |
<router-link |
66 |
<ToolbarButton |
67 |
:to="`/cgi-bin/koha/preservation/trains/edit/${train.train_id}`" |
67 |
:to="`/cgi-bin/koha/preservation/trains/edit/${train.train_id}`" |
68 |
class="btn btn-default" |
68 |
class="btn btn-default" |
69 |
><font-awesome-icon icon="pencil" /> |
69 |
icon="pencil" |
70 |
{{ $__("Edit") }}</router-link |
70 |
:title="$__('Edit')" |
71 |
> |
71 |
/> |
72 |
<a @click="deleteTrain(train)" class="btn btn-default" |
72 |
<a @click="deleteTrain(train)" class="btn btn-default" |
73 |
><font-awesome-icon icon="trash" /> {{ $__("Delete") }}</a |
73 |
><font-awesome-icon icon="trash" /> {{ $__("Delete") }}</a |
74 |
> |
74 |
> |
Lines 90-96
Link Here
|
90 |
@click="receiveTrain" |
90 |
@click="receiveTrain" |
91 |
><font-awesome-icon icon="inbox" /> {{ $__("Receive") }}</a |
91 |
><font-awesome-icon icon="inbox" /> {{ $__("Receive") }}</a |
92 |
> |
92 |
> |
93 |
</div> |
93 |
</Toolbar> |
94 |
<h2> |
94 |
<h2> |
95 |
{{ $__("Train #%s").format(train.train_id) }} |
95 |
{{ $__("Train #%s").format(train.train_id) }} |
96 |
</h2> |
96 |
</h2> |
Lines 213-218
Link Here
|
213 |
import { inject, createVNode, render } from "vue" |
213 |
import { inject, createVNode, render } from "vue" |
214 |
import { APIClient } from "../../fetch/api-client" |
214 |
import { APIClient } from "../../fetch/api-client" |
215 |
import { useDataTable } from "../../composables/datatables" |
215 |
import { useDataTable } from "../../composables/datatables" |
|
|
216 |
import Toolbar from "../Toolbar.vue" |
217 |
import ToolbarButton from "../ToolbarButton.vue" |
216 |
|
218 |
|
217 |
export default { |
219 |
export default { |
218 |
setup() { |
220 |
setup() { |
Lines 547-552
export default {
Link Here
|
547 |
}) |
549 |
}) |
548 |
}, |
550 |
}, |
549 |
}, |
551 |
}, |
|
|
552 |
components: { Toolbar, ToolbarButton }, |
550 |
name: "TrainsShow", |
553 |
name: "TrainsShow", |
551 |
} |
554 |
} |
552 |
</script> |
555 |
</script> |