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:
parent
94ef7c6865
commit
1f8b2561b1
2 changed files with 43 additions and 2 deletions
|
@ -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>
|
|
@ -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>
|
Loading…
Reference in a new issue