web staff : dynamic alert/confirm dialogs
authorBill Erickson <berick@esilibrary.com>
Tue, 10 Dec 2013 14:47:19 +0000 (09:47 -0500)
committerBill Erickson <berick@esilibrary.com>
Tue, 10 Dec 2013 14:47:19 +0000 (09:47 -0500)
commitde6d5face1e70e34497e8d88326dd502298befac
treeac2e602e37de19f8c2dd7766206f386ffd2d36f1
parenta318027acdd5115e958281c6f7c1b34330493d71
web staff : dynamic alert/confirm dialogs

Create new services egAlertDialog and egConfirmDialog, which each load
a TT-based template on demand.  This allows us to re-use the templates
instead of having to include one template per alert type, which will
grow indefinitely.

Experimenting with embedding dynamic strings within the TT template, so
that they can be translated alongside other template strings.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/staff/circ/checkin/index.tt2
Open-ILS/src/templates/staff/parts/alert_dialog.tt2 [deleted file]
Open-ILS/src/templates/staff/parts/confirm_dialog.tt2 [deleted file]
Open-ILS/src/templates/staff/parts/t_alert_dialog.tt2 [new file with mode: 0644]
Open-ILS/src/templates/staff/parts/t_confirm_dialog.tt2 [new file with mode: 0644]
Open-ILS/web/js/ui/default/staff/circ/checkin/app.js
Open-ILS/web/js/ui/default/staff/services/ui.js