Bug 32030: ERM - Add 'edit' and 'delete' shortcuts on the 'show' view

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-05-17 16:43:20 +02:00 committed by Tomas Cohen Arazi
parent 94ef7c6865
commit 1f8b2561b1
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 43 additions and 2 deletions

View file

@ -1,7 +1,22 @@
<template>
<div v-if="!this.initialized">Loading...</div>
<div v-else id="agreements_show">
<h2>Agreement #{{ agreement.agreement_id }}</h2>
<h2>
Agreement #{{ agreement.agreement_id }}
<span class="action_links">
<router-link
:to="`/cgi-bin/koha/erm/agreements/edit/${agreement.agreement_id}`"
title="Edit"
><i class="fa fa-pencil"></i
></router-link>
<router-link
:to="`/cgi-bin/koha/erm/agreements/delete/${agreement.agreement_id}`"
title="Delete"
><i class="fa fa-trash"></i
></router-link>
</span>
</h2>
<div>
<fieldset class="rows">
<ol>
@ -295,3 +310,9 @@ export default {
name: "AgreementsShow",
}
</script>
<style scoped>
.action_links a {
padding-left: .2em;
font-size: 11px;
}
</style>

View file

@ -1,7 +1,21 @@
<template>
<div v-if="!this.initialized">Loading...</div>
<div v-else id="licenses_show">
<h2>License #{{ license.license_id }}</h2>
<h2>
License #{{ license.license_id }}
<span class="action_links">
<router-link
:to="`/cgi-bin/koha/erm/licenses/edit/${license.license_id}`"
title="Edit"
><i class="fa fa-pencil"></i
></router-link>
<router-link
:to="`/cgi-bin/koha/erm/licenses/delete/${license.license_id}`"
title="Delete"
><i class="fa fa-trash"></i
></router-link>
</span>
</h2>
<div>
<fieldset class="rows">
<ol>
@ -113,3 +127,9 @@ export default {
name: "LicensesShow",
}
</script>
<style scoped>
.action_links a {
padding-left: 0.2em;
font-size: 11px;
}
</style>