View | Details | Raw Unified | Return to bug 37274
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsShow.vue (-21 / +22 lines)
Lines 1-24 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_show">
3
    <div v-else id="agreements_show">
4
        <Toolbar>
5
            <ToolbarButton
6
                :to="{
7
                    name: 'AgreementsFormAddEdit',
8
                    params: { agreement_id: agreement.agreement_id },
9
                }"
10
                class="btn btn-default"
11
                icon="pencil"
12
                :title="$__('Edit')"
13
            />
14
            <a
15
                @click="
16
                    delete_agreement(agreement.agreement_id, agreement.name)
17
                "
18
                class="btn btn-default"
19
                ><font-awesome-icon icon="trash" /> {{ $__("Delete") }}</a
20
            >
21
        </Toolbar>
22
4
        <h2>
23
        <h2>
5
            {{ $__("Agreement #%s").format(agreement.agreement_id) }}
24
            {{ $__("Agreement #%s").format(agreement.agreement_id) }}
6
            <span class="action_links">
7
                <router-link
8
                    :to="{
9
                        name: 'AgreementsFormAddEdit',
10
                        params: { agreement_id: agreement.agreement_id },
11
                    }"
12
                    :title="$__('Edit')"
13
                    ><i class="fa fa-pencil"></i
14
                ></router-link>
15
                <a
16
                    @click="
17
                        delete_agreement(agreement.agreement_id, agreement.name)
18
                    "
19
                    ><i class="fa fa-trash"></i
20
                ></a>
21
            </span>
22
        </h2>
25
        </h2>
23
        <div>
26
        <div>
24
            <fieldset class="rows">
27
            <fieldset class="rows">
Lines 334-339 Link Here
334
<script>
337
<script>
335
import { inject } from "vue"
338
import { inject } from "vue"
336
import { APIClient } from "../../fetch/api-client.js"
339
import { APIClient } from "../../fetch/api-client.js"
340
import Toolbar from "../Toolbar.vue"
341
import ToolbarButton from "../ToolbarButton.vue"
337
342
338
export default {
343
export default {
339
    setup() {
344
    setup() {
Lines 420-434 export default { Link Here
420
            )
425
            )
421
        },
426
        },
422
    },
427
    },
428
    components: { Toolbar, ToolbarButton },
423
    name: "AgreementsShow",
429
    name: "AgreementsShow",
424
}
430
}
425
</script>
431
</script>
426
<style scoped>
432
<style scoped>
427
.action_links a {
428
    padding-left: 0.2em;
429
    font-size: 11px;
430
    cursor: pointer;
431
}
432
#agreement_documents ul {
433
#agreement_documents ul {
433
    padding-left: 0px;
434
    padding-left: 0px;
434
}
435
}
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesShow.vue (-22 / +23 lines)
Lines 1-25 Link Here
1
<template>
1
<template>
2
    <div v-if="!initialized">{{ $__("Loading") }}</div>
2
    <div v-if="!initialized">{{ $__("Loading") }}</div>
3
    <div v-else-if="erm_package" id="packages_show">
3
    <div v-else-if="erm_package" id="packages_show">
4
        <Toolbar>
5
            <ToolbarButton
6
                :to="{
7
                    name: 'EHoldingsLocalPackagesFormAddEdit',
8
                    params: { package_id: erm_package.package_id },
9
                }"
10
                class="btn btn-default"
11
                icon="pencil"
12
                :title="$__('Edit')"
13
            />
14
            <a
15
                @click="
16
                    delete_package(erm_package.package_id, erm_package.name)
17
                "
18
                class="btn btn-default"
19
                ><font-awesome-icon icon="trash" /> {{ $__("Delete") }}</a
20
            >
21
        </Toolbar>
22
4
        <h2>
23
        <h2>
5
            {{ $__("Package #%s").format(erm_package.package_id) }}
24
            {{ $__("Package #%s").format(erm_package.package_id) }}
6
            <span class="action_links">
7
                <router-link
8
                    :to="{
9
                        name: 'EHoldingsLocalPackagesFormAddEdit',
10
                        params: { package_id: erm_package.package_id },
11
                    }"
12
                    :title="$__('Edit')"
13
                    ><i class="fa fa-pencil"></i
14
                ></router-link>
15
16
                <a
17
                    @click="
18
                        delete_package(erm_package.package_id, erm_package.name)
19
                    "
20
                    ><i class="fa fa-trash"></i
21
                ></a>
22
            </span>
23
        </h2>
25
        </h2>
24
        <div>
26
        <div>
25
            <fieldset class="rows">
27
            <fieldset class="rows">
Lines 116-121 Link Here
116
import { inject } from "vue"
118
import { inject } from "vue"
117
import EHoldingsPackageTitlesList from "./EHoldingsLocalPackageTitlesList.vue"
119
import EHoldingsPackageTitlesList from "./EHoldingsLocalPackageTitlesList.vue"
118
import { APIClient } from "../../fetch/api-client.js"
120
import { APIClient } from "../../fetch/api-client.js"
121
import Toolbar from "../Toolbar.vue"
122
import ToolbarButton from "../ToolbarButton.vue"
119
123
120
export default {
124
export default {
121
    setup() {
125
    setup() {
Lines 200-215 export default { Link Here
200
    },
204
    },
201
    components: {
205
    components: {
202
        EHoldingsPackageTitlesList,
206
        EHoldingsPackageTitlesList,
207
        Toolbar,
208
        ToolbarButton,
203
    },
209
    },
204
    name: "EHoldingsLocalPackagesShow",
210
    name: "EHoldingsLocalPackagesShow",
205
}
211
}
206
</script>
212
</script>
207
<style scoped>
213
<style scoped>
208
.action_links a {
209
    padding-left: 0.2em;
210
    font-size: 11px;
211
    cursor: pointer;
212
}
213
fieldset.rows label {
214
fieldset.rows label {
214
    width: 25rem;
215
    width: 25rem;
215
}
216
}
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesShow.vue (-22 / +21 lines)
Lines 1-25 Link Here
1
<template>
1
<template>
2
    <div v-if="!initialized">{{ $__("Loading") }}</div>
2
    <div v-if="!initialized">{{ $__("Loading") }}</div>
3
    <div v-else-if="title" id="eholdings_title_show">
3
    <div v-else-if="title" id="eholdings_title_show">
4
        <Toolbar>
5
            <ToolbarButton
6
                :to="{
7
                    name: 'EHoldingsLocalTitlesFormAddEdit',
8
                    params: { title_id: title.title_id },
9
                }"
10
                class="btn btn-default"
11
                icon="pencil"
12
                :title="$__('Edit')"
13
            />
14
            <a
15
                @click="delete_title(title.title_id, title.publication_title)"
16
                class="btn btn-default"
17
                ><font-awesome-icon icon="trash" /> {{ $__("Delete") }}</a
18
            >
19
        </Toolbar>
20
4
        <h2>
21
        <h2>
5
            {{ $__("Title #%s").format(title.title_id) }}
22
            {{ $__("Title #%s").format(title.title_id) }}
6
            <span class="action_links">
7
                <router-link
8
                    :to="{
9
                        name: 'EHoldingsLocalTitlesFormAddEdit',
10
                        params: { title_id: title.title_id },
11
                    }"
12
                    :title="$__('Edit')"
13
                    ><i class="fa fa-pencil"></i
14
                ></router-link>
15
16
                <a
17
                    @click="
18
                        delete_title(title.title_id, title.publication_title)
19
                    "
20
                    ><i class="fa fa-trash"></i
21
                ></a>
22
            </span>
23
        </h2>
23
        </h2>
24
        <div>
24
        <div>
25
            <fieldset class="rows">
25
            <fieldset class="rows">
Lines 265-270 Link Here
265
import { inject } from "vue"
265
import { inject } from "vue"
266
import EHoldingsTitlePackagesList from "./EHoldingsLocalTitlePackagesList.vue"
266
import EHoldingsTitlePackagesList from "./EHoldingsLocalTitlePackagesList.vue"
267
import { APIClient } from "../../fetch/api-client.js"
267
import { APIClient } from "../../fetch/api-client.js"
268
import Toolbar from "../Toolbar.vue"
269
import ToolbarButton from "../ToolbarButton.vue"
268
270
269
export default {
271
export default {
270
    setup() {
272
    setup() {
Lines 363-378 export default { Link Here
363
    },
365
    },
364
    components: {
366
    components: {
365
        EHoldingsTitlePackagesList,
367
        EHoldingsTitlePackagesList,
368
        Toolbar,
369
        ToolbarButton,
366
    },
370
    },
367
    name: "EHoldingsLocalTitlesShow",
371
    name: "EHoldingsLocalTitlesShow",
368
}
372
}
369
</script>
373
</script>
370
<style scoped>
374
<style scoped>
371
.action_links a {
372
    padding-left: 0.2em;
373
    font-size: 11px;
374
    cursor: pointer;
375
}
376
fieldset.rows label {
375
fieldset.rows label {
377
    width: 25rem;
376
    width: 25rem;
378
}
377
}
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesShow.vue (-19 / +20 lines)
Lines 1-21 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="licenses_show">
3
    <div v-else id="licenses_show">
4
        <Toolbar>
5
            <ToolbarButton
6
                :to="{
7
                    name: 'LicensesFormAddEdit',
8
                    params: { license_id: license.license_id },
9
                }"
10
                class="btn btn-default"
11
                icon="pencil"
12
                :title="$__('Edit')"
13
            />
14
            <a
15
                @click="delete_license(license.license_id, license.name)"
16
                class="btn btn-default"
17
                ><font-awesome-icon icon="trash" /> {{ $__("Delete") }}</a
18
            >
19
        </Toolbar>
20
4
        <h2>
21
        <h2>
5
            {{ $__("License #%s").format(license.license_id) }}
22
            {{ $__("License #%s").format(license.license_id) }}
6
            <span class="action_links">
7
                <router-link
8
                    :to="{
9
                        name: 'LicensesFormAddEdit',
10
                        params: { license_id: license.license_id },
11
                    }"
12
                    :title="$__('Edit')"
13
                    ><i class="fa fa-pencil"></i
14
                ></router-link>
15
                <a @click="delete_license(license.license_id, license.name)"
16
                    ><i class="fa fa-trash"></i
17
                ></a>
18
            </span>
19
        </h2>
23
        </h2>
20
        <div>
24
        <div>
21
            <fieldset class="rows">
25
            <fieldset class="rows">
Lines 147-152 Link Here
147
<script>
151
<script>
148
import { inject } from "vue"
152
import { inject } from "vue"
149
import { APIClient } from "../../fetch/api-client.js"
153
import { APIClient } from "../../fetch/api-client.js"
154
import Toolbar from "../Toolbar.vue"
155
import ToolbarButton from "../ToolbarButton.vue"
150
156
151
export default {
157
export default {
152
    setup() {
158
    setup() {
Lines 227-242 export default { Link Here
227
            )
233
            )
228
        },
234
        },
229
    },
235
    },
230
    components: {},
236
    components: { Toolbar, ToolbarButton },
231
    name: "LicensesShow",
237
    name: "LicensesShow",
232
}
238
}
233
</script>
239
</script>
234
<style scoped>
240
<style scoped>
235
.action_links a {
236
    padding-left: 0.2em;
237
    font-size: 11px;
238
    cursor: pointer;
239
}
240
#license_documents ul {
241
#license_documents ul {
241
    padding-left: 0px;
242
    padding-left: 0px;
242
}
243
}
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersShow.vue (-27 / +29 lines)
Lines 1-34 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="usage_data_providers_show">
3
    <div v-else id="usage_data_providers_show">
4
        <Toolbar>
5
            <ToolbarButton
6
                :to="{
7
                    name: 'UsageStatisticsDataProvidersFormAddEdit',
8
                    params: {
9
                        usage_data_provider_id:
10
                            usage_data_provider.erm_usage_data_provider_id,
11
                    },
12
                }"
13
                class="btn btn-default"
14
                icon="pencil"
15
                :title="$__('Edit')"
16
            />
17
            <a
18
                @click="
19
                    delete_usage_data_provider(
20
                        usage_data_provider.erm_usage_data_provider_id,
21
                        usage_data_provider.name
22
                    )
23
                "
24
                class="btn btn-default"
25
                ><font-awesome-icon icon="trash" /> {{ $__("Delete") }}</a
26
            >
27
        </Toolbar>
28
4
        <h2>
29
        <h2>
5
            {{
30
            {{
6
                $__("Data provider #%s").format(
31
                $__("Data provider #%s").format(
7
                    usage_data_provider.erm_usage_data_provider_id
32
                    usage_data_provider.erm_usage_data_provider_id
8
                )
33
                )
9
            }}
34
            }}
10
            <span class="action_links">
11
                <router-link
12
                    :to="{
13
                        name: 'UsageStatisticsDataProvidersFormAddEdit',
14
                        params: {
15
                            usage_data_provider_id:
16
                                usage_data_provider.erm_usage_data_provider_id,
17
                        },
18
                    }"
19
                    :title="$__('Edit')"
20
                    ><i class="fa fa-pencil"></i
21
                ></router-link>
22
                <a
23
                    @click="
24
                        delete_usage_data_provider(
25
                            usage_data_provider.erm_usage_data_provider_id,
26
                            usage_data_provider.name
27
                        )
28
                    "
29
                    ><i class="fa fa-trash"></i
30
                ></a>
31
            </span>
32
        </h2>
35
        </h2>
33
        <div id="usage_data_providerstabs" class="toptabs numbered">
36
        <div id="usage_data_providerstabs" class="toptabs numbered">
34
            <ul class="nav nav-tabs" role="tablist">
37
            <ul class="nav nav-tabs" role="tablist">
Lines 123-128 Link Here
123
<script>
126
<script>
124
import { inject } from "vue"
127
import { inject } from "vue"
125
import { APIClient } from "../../fetch/api-client.js"
128
import { APIClient } from "../../fetch/api-client.js"
129
import Toolbar from "../Toolbar.vue"
130
import ToolbarButton from "../ToolbarButton.vue"
126
import UsageStatisticsDataProvidersFileImport from "./UsageStatisticsDataProvidersFileImport.vue"
131
import UsageStatisticsDataProvidersFileImport from "./UsageStatisticsDataProvidersFileImport.vue"
127
import UsageStatisticsDataProvidersCounterLogs from "./UsageStatisticsDataProvidersCounterLogs.vue"
132
import UsageStatisticsDataProvidersCounterLogs from "./UsageStatisticsDataProvidersCounterLogs.vue"
128
import UsageStatisticsDataProviderDetails from "./UsageStatisticsDataProviderDetails.vue"
133
import UsageStatisticsDataProviderDetails from "./UsageStatisticsDataProviderDetails.vue"
Lines 230-244 export default { Link Here
230
        UsageStatisticsDataProvidersCounterLogs,
235
        UsageStatisticsDataProvidersCounterLogs,
231
        UsageStatisticsDataProviderDetails,
236
        UsageStatisticsDataProviderDetails,
232
        UsageStatisticsProviderDataList,
237
        UsageStatisticsProviderDataList,
238
        Toolbar,
239
        ToolbarButton,
233
    },
240
    },
234
}
241
}
235
</script>
242
</script>
236
<style scoped>
243
<style scoped>
237
.action_links a {
238
    padding-left: 0.2em;
239
    font-size: 11px;
240
    cursor: pointer;
241
}
242
.active {
244
.active {
243
    cursor: pointer;
245
    cursor: pointer;
244
}
246
}
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/SettingsProcessingsShow.vue (-18 / +19 lines)
Lines 1-19 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="processing_show">
3
    <div v-else id="processing_show">
4
        <Toolbar>
5
            <ToolbarButton
6
                :to="{
7
                    name: 'SettingsProcessingsFormEdit',
8
                    params: { processing_id: processing.processing_id },
9
                }"
10
                class="btn btn-default"
11
                icon="pencil"
12
                :title="$__('Edit')"
13
            />
14
            <a @click="doDelete()" class="btn btn-default"
15
                ><font-awesome-icon icon="trash" /> {{ $__("Delete") }}</a
16
            >
17
        </Toolbar>
18
4
        <h2>
19
        <h2>
5
            {{ $__("Processing #%s").format(processing.processing_id) }}
20
            {{ $__("Processing #%s").format(processing.processing_id) }}
6
            <span class="action_links">
7
                <router-link
8
                    :to="{
9
                        name: 'SettingsProcessingsFormEdit',
10
                        params: { processing_id: processing.processing_id },
11
                    }"
12
                    :title="$__('Edit')"
13
                    ><i class="fa fa-pencil"></i
14
                ></router-link>
15
                <a @click="doDelete()"><i class="fa fa-trash"></i></a>
16
            </span>
17
        </h2>
21
        </h2>
18
        <div>
22
        <div>
19
            <fieldset class="rows">
23
            <fieldset class="rows">
Lines 86-91 Link Here
86
<script>
90
<script>
87
import { inject } from "vue"
91
import { inject } from "vue"
88
import { APIClient } from "../../fetch/api-client.js"
92
import { APIClient } from "../../fetch/api-client.js"
93
import Toolbar from "../Toolbar.vue"
94
import ToolbarButton from "../ToolbarButton.vue"
89
95
90
export default {
96
export default {
91
    setup() {
97
    setup() {
Lines 164-176 export default { Link Here
164
            )
170
            )
165
        },
171
        },
166
    },
172
    },
173
    components: { Toolbar, ToolbarButton },
167
    name: "ProcessingsShow",
174
    name: "ProcessingsShow",
168
}
175
}
169
</script>
176
</script>
170
<style scoped>
177
<style scoped></style>
171
.action_links a {
172
    padding-left: 0.2em;
173
    font-size: 11px;
174
    cursor: pointer;
175
}
176
</style>
(-)a/t/cypress/integration/ERM/Agreements_spec.ts (-2 / +2 lines)
Lines 555-561 describe("Agreement CRUD operations", () => { Link Here
555
        // AV's libs displayed
555
        // AV's libs displayed
556
        // Tables for periods and users
556
        // Tables for periods and users
557
    });
557
    });
558
    it("Delete agreement", () => {
558
    it.only("Delete agreement", () => {
559
        let agreement = cy.get_agreement();
559
        let agreement = cy.get_agreement();
560
        let agreements = [agreement];
560
        let agreements = [agreement];
561
561
Lines 633-639 describe("Agreement CRUD operations", () => { Link Here
633
            "Agreement #" + agreement.agreement_id
633
            "Agreement #" + agreement.agreement_id
634
        );
634
        );
635
635
636
        cy.get("#agreements_show .action_links .fa-trash").click();
636
        cy.get("#agreements_show #toolbar").contains("Delete").click();
637
        cy.get(".dialog.alert.confirmation h1").contains(
637
        cy.get(".dialog.alert.confirmation h1").contains(
638
            "remove this agreement"
638
            "remove this agreement"
639
        );
639
        );
(-)a/t/cypress/integration/ERM/DataProviders_spec.ts (-1 / +3 lines)
Lines 383-389 describe("Data provider CRUD operations", () => { Link Here
383
            "Data provider #" + dataProvider.erm_usage_data_provider_id
383
            "Data provider #" + dataProvider.erm_usage_data_provider_id
384
        );
384
        );
385
385
386
        cy.get("#usage_data_providers_show .action_links .fa-trash").click();
386
        cy.get("#usage_data_providers_show #toolbar")
387
            .contains("Delete")
388
            .click();
387
        cy.get(".dialog.alert.confirmation h1").contains(
389
        cy.get(".dialog.alert.confirmation h1").contains(
388
            "remove this data provider"
390
            "remove this data provider"
389
        );
391
        );
(-)a/t/cypress/integration/ERM/Licenses_spec.ts (-1 / +1 lines)
Lines 352-358 describe("License CRUD operations", () => { Link Here
352
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
352
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
353
        cy.get("#licenses_show h2").contains("License #" + license.license_id);
353
        cy.get("#licenses_show h2").contains("License #" + license.license_id);
354
354
355
        cy.get("#licenses_show .action_links .fa-trash").click();
355
        cy.get("#licenses_show #toolbar").contains("Delete").click();
356
        cy.get(".dialog.alert.confirmation h1").contains("remove this license");
356
        cy.get(".dialog.alert.confirmation h1").contains("remove this license");
357
        cy.contains("Yes, delete").click();
357
        cy.contains("Yes, delete").click();
358
358
(-)a/t/cypress/integration/ERM/Packages_spec.ts (-1 / +1 lines)
Lines 351-357 describe("Package CRUD operations", () => { Link Here
351
            "Package #" + erm_package.package_id
351
            "Package #" + erm_package.package_id
352
        );
352
        );
353
353
354
        cy.get("#packages_show .action_links .fa-trash").click();
354
        cy.get("#packages_show #toolbar").contains("Delete").click();
355
        cy.get(".dialog.alert.confirmation h1").contains("remove this package");
355
        cy.get(".dialog.alert.confirmation h1").contains("remove this package");
356
        cy.contains("Yes, delete").click();
356
        cy.contains("Yes, delete").click();
357
357
(-)a/t/cypress/integration/ERM/Titles_spec.ts (-2 / +1 lines)
Lines 514-520 describe("Title CRUD operations", () => { Link Here
514
            "Title #" + erm_title.title_id
514
            "Title #" + erm_title.title_id
515
        );
515
        );
516
516
517
        cy.get("#eholdings_title_show .action_links .fa-trash").click();
517
        cy.get("#eholdings_title_show #toolbar").contains("Delete").click();
518
        cy.get(".dialog.alert.confirmation h1").contains("remove this title");
518
        cy.get(".dialog.alert.confirmation h1").contains("remove this title");
519
        cy.contains("Yes, delete").click();
519
        cy.contains("Yes, delete").click();
520
520
521
- 

Return to bug 37274