LP#1708291: improvements to egEditFmRecord
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 10 May 2017 21:36:44 +0000 (17:36 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 29 Aug 2017 19:26:48 +0000 (15:26 -0400)
commitcb6adc1ccf38f3cb15f809f9d828956c88afa398
tree2b2dd8a7bd909d5fa6a485c0989154a42a31bda7
parent2083b12787ba59b86ebf25e4c8000128d2086bc2
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>
Open-ILS/src/templates/staff/share/t_fm_record_editor.tt2
Open-ILS/web/js/ui/default/staff/services/fm_record_editor.js