From: Bill Erickson Date: Tue, 21 Jan 2014 22:47:41 +0000 (-0500) Subject: LP#1269911 composite attributes admin UI X-Git-Tag: sprint4-merge-nov22~2286 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c33b7cf919db4eb087502322ad3b82572bb54f65;p=working%2FEvergreen.git LP#1269911 composite attributes admin UI New interface for managing composite record attribute definitions: /eg/conify/global/config/composite_attr_entry_definition/ The UI for a coded value map is accessed from an existing coded value via a new "Manage" link column in the CCVM table. The UI allows staff to build tree-shaped boolean composite definitions for CCVMs in terms of existing CCVMs. Additionally, the record attribute definition UI now has a link from each definition to the coded value map page for the attribute. Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander Signed-off-by: Dan Wells --- diff --git a/Open-ILS/src/templates/conify/global/config/coded_value_map.tt2 b/Open-ILS/src/templates/conify/global/config/coded_value_map.tt2 index 3d30089026..329a432b48 100644 --- a/Open-ILS/src/templates/conify/global/config/coded_value_map.tt2 +++ b/Open-ILS/src/templates/conify/global/config/coded_value_map.tt2 @@ -48,12 +48,14 @@ if (id && isComposite) { return "Manage"; + + id + "'>[% l('Manage') %]"; } else { return ""; } } + var cradName = '[% ctx.page_args.0 %]'; + openils.Util.addOnLoad( function() { @@ -88,6 +90,9 @@ // ^-- why is this not working? } ); + + // if a crad is already selected via URL, fetch the ccvm's + if (cradName) w.attr('value', cradName); } ); diff --git a/Open-ILS/src/templates/conify/global/config/composite_attr_entry_definition.tt2 b/Open-ILS/src/templates/conify/global/config/composite_attr_entry_definition.tt2 new file mode 100644 index 0000000000..53be5786ca --- /dev/null +++ b/Open-ILS/src/templates/conify/global/config/composite_attr_entry_definition.tt2 @@ -0,0 +1,100 @@ +[% WRAPPER base.tt2 %] + + +

[% l('Composite Attribute Entry Definitions') %]

+ +

+
[% l('Record Attribute: ') %]
+
[% l('Coded Value: ') %]
+

+ + + +

[% l('Composite Data Expression') %]

+
+ +

+ [% l('Composite Data Tree') %] +
[% l('New Tree') %]
+
[% l('Delete Tree') %]
+
[% l('Save Changes') %]
+

+ + + + + + + + +
+ + + + [% l('Delete') %][% l('Add Child') %]
+ + + + + + + + +[% END %] + diff --git a/Open-ILS/src/templates/conify/global/config/record_attr_definition.tt2 b/Open-ILS/src/templates/conify/global/config/record_attr_definition.tt2 index fbe101200a..aa32f0836e 100644 --- a/Open-ILS/src/templates/conify/global/config/record_attr_definition.tt2 +++ b/Open-ILS/src/templates/conify/global/config/record_attr_definition.tt2 @@ -18,11 +18,34 @@ query="{name: '*'}" fmClass='crad' showPaginator='true' - editOnEnter='true'/> + editOnEnter='true'> + + + [% l('Coded Value Maps') %] + +