From: senator Date: Wed, 13 Apr 2011 22:04:10 +0000 (-0400) Subject: Add an autogrid-based interface for CRUD ops on vms objects, with links to the tree... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=752e696bba75275c8e6330ff8fe7444318b9e21f;p=evergreen%2Fmasslnc.git Add an autogrid-based interface for CRUD ops on vms objects, with links to the tree editor --- diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js index ecbdf953e1..9e5be71670 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js @@ -640,6 +640,13 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { */ return autoWidget.getDisplayString(); - } + }; + + openils.widget.AutoGrid.orgUnitGetter = function(rowIndex, item) { + if (!item) return ""; + return fieldmapper.aou.findOrgUnit( + this.grid.store.getValue(item, this.field) + ).shortname(); + }; } diff --git a/Open-ILS/web/templates/default/vandelay/match_set.tt2 b/Open-ILS/web/templates/default/vandelay/match_set.tt2 index fe5def0109..0d59f54d96 100644 --- a/Open-ILS/web/templates/default/vandelay/match_set.tt2 +++ b/Open-ILS/web/templates/default/vandelay/match_set.tt2 @@ -1,59 +1,94 @@ -[% WRAPPER 'default/base.tt2' %] -[% ctx.page_title = 'Vandelay Match Set' %] - -

[% ctx.page_title %]

- - - - - - - - - - -
-
-
- - - -
-
-
-
+[% WRAPPER default/base.tt2 %] +[% ctx.page_title = 'Vandelay Match Sets' %] +
+
+
[% ctx.page_title %]
-
+ +
-
    - -
    -
    Your Expression
    -
    +
    + Show sets owned at or below: +
    + + + + + + + +
    +
    -
    - + + + [% END %] diff --git a/Open-ILS/web/templates/default/vandelay/match_set_tree.tt2 b/Open-ILS/web/templates/default/vandelay/match_set_tree.tt2 new file mode 100644 index 0000000000..0cec41c826 --- /dev/null +++ b/Open-ILS/web/templates/default/vandelay/match_set_tree.tt2 @@ -0,0 +1,62 @@ +[% WRAPPER 'default/base.tt2' %] +[% ctx.page_title = 'Vandelay Match Set Editor' %] + +

    [% ctx.page_title %]

    + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
      +
      + +
      +
      Your Expression
      +
      +
      +
      +
      + +[% END %]