webstaff: new directive: egEditFmRecord
authorGalen Charlton <gmc@esilibrary.com>
Fri, 10 Jun 2016 22:14:20 +0000 (18:14 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 18 Aug 2016 19:34:21 +0000 (15:34 -0400)
commiteabda938c992ae2269ec793eefd2ec0980f100ed
treefe6778d892c5ad1073bb0d1055e1627b27e9ed30
parentd271b796cebc71e916e85249c15c2484444a390b
webstaff: new directive: egEditFmRecord

This implements a generic IDL record editor widget:

<eg-edit-fm-record
  idl-class            = "xyz"
  mode                 = "update"
  record-id            = "223"
  hidden-fields        = "bar,baz"
  readonly-fields      = "quux"
  required-fields      = "foo"
  is-required-override = "bundle_of_custom_functions"
  on-save              = "on_save_handler"
  on-cancel            = "on_cancel"
></eg-edit-fm-record>

The mode can be either "create" or "update"; if it is "create",
then it is not necessary or desired to pass a record-id.

Currently eg-edit-fm-record expects to be invoked from
inside a uibModal.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/templates/staff/share/t_fm_record_editor.tt2 [new file with mode: 0644]
Open-ILS/web/js/ui/default/staff/services/fm_record_editor.js [new file with mode: 0644]