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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue (-2 / +18 lines)
Lines 196-203 export default { Link Here
196
                    message: agreement.name,
196
                    message: agreement.name,
197
                    accept_label: this.$__("Yes, delete"),
197
                    accept_label: this.$__("Yes, delete"),
198
                    cancel_label: this.$__("No, do not delete"),
198
                    cancel_label: this.$__("No, do not delete"),
199
                    inputs: [
200
                        {
201
                            id: "text_input",
202
                            type: "Text",
203
                            value: "this is dummy text",
204
                            required: true,
205
                            label: this.$__("Text input"),
206
                        },
207
                        {
208
                            id: "date_input",
209
                            type: "Date",
210
                            value: "2023-08-09",
211
                            required: true,
212
                            label: this.$__("Date input"),
213
                        },
214
                    ],
199
                },
215
                },
200
                () => {
216
                callback_result => {
217
                    console.log(callback_result)
201
                    const client = APIClient.erm
218
                    const client = APIClient.erm
202
                    client.agreements.delete(agreement.agreement_id).then(
219
                    client.agreements.delete(agreement.agreement_id).then(
203
                        success => {
220
                        success => {
204
- 

Return to bug 34497