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>
Fri, 4 Aug 2017 17:04:56 +0000 (13:04 -0400)
commit135d8ceb1979e58ae3a564be60c601fa030e0068
treebe56d5295a94bd11fa9beb24012a6326975d6134
parentf390ad28b1df0ac4227a085e7b04527ed7b935b0
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