LP#1708291: improvements to egEditFmRecord
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 10 May 2017 21:36:44 +0000 (17:36 -0400)
committerKathy Lussier <klussier@masslnc.org>
Wed, 30 Aug 2017 18:43:36 +0000 (14:43 -0400)
commit5fdb986dd8d65bac118f115a73f88d1c34442994
tree5d5ed843233e4e051c429c71c2bba784e58d36a2
parent03b86156bacebf94da1052d7f28ffb592563f4fd
LP#1708291: improvements to egEditFmRecord

egEditFmRecord now knows how to specify that a custom Angular template
be used to supply the input widget for a given field; the initial use
of this will be allowing the prediction pattern template editor to be
used to set the pattern in a pattern template. The customFieldTemplates
attribute is used for this purpose.

This patch also teaches egEditFmRecord when to allow an org unit
selector to default to the workstation OU. The orgDefaultAllowed
attribute is used for this purpose.

Finally, a fixes a bug that ensures that the Save button is active
only when the entire form is valid.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/staff/share/t_fm_record_editor.tt2
Open-ILS/web/js/ui/default/staff/services/fm_record_editor.js