From bb770a8d9df0501de68f7f78fe64ee38c62a7956 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 10 Apr 2008 11:37:45 -0500 Subject: [PATCH] granular permissions - setting user permissions Adjusted the user permissions editing page as follows: * Replaced table with a list * Implemented a tree control using the jQuery Treeview plugin * When CheckSpecificUserPermissions is ON, if a module flag has specific (i.e., children) permissions, allow them to be edited - this is where the tree control comes in. * Added some hooks and an initial stab at the CSS to style the permissions editor tree. Signed-off-by: Joshua Ferraro --- .../prog/en/css/staff-global.css | 17 ++- .../prog/en/modules/members/member-flags.tmpl | 116 +++++++++++++++--- .../prog/en/modules/tools/tools-home.tmpl | 30 +++++ 3 files changed, 147 insertions(+), 16 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index d38138b43a..0fe2548982 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -1549,4 +1549,19 @@ tr.transfered td { } .waitinghere { color : #669900; -} \ No newline at end of file +} + +/* Permissions Labels */ +label.permissioncode:before { + content: "("; +} +label.permissioncode:after { + content: ")"; +} +label.permissioncode { + font-style : italic; +} +span.permissiondesc { + font-weight : normal; +} + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tmpl index bee7b09ea3..13093e530e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tmpl @@ -1,6 +1,72 @@ Koha › Patrons › Set Privileges for <!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR NAME="firstname" --> +/css/treeview/jquery.treeview.css"/> + + + + + @@ -19,26 +85,46 @@ " />

Set Privileges for ,

- - + + - - - - -
FlagNameDescription
+ +
  • + +
  • + - " name="flag-" checked="checked" /> + " name="flag" value="" checked="checked" onchange="toggleChildren(this)" /> - " name="flag-" /> + " name="flag" value="" onchange="toggleChildren(this)" /> + + + + +
      -children"> + +
    • + + " + name="flag" value="" checked="checked" onchange="toggleParent(this)" /> + + " + name="flag" value="" onchange="toggleParent(this)" /> + + + +
    • + +
    +
  • + + -
    - - - -
    + + +
    ">Cancel
    diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tmpl index c93966ef91..2faa5cf11a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tmpl @@ -14,57 +14,87 @@
    +
    News
    Write news for the OPAC and staff interfaces
    + +
    Label and Patron Card Creator
    Create printable labels and barcodes from catalog data and patron cards from patron data
    + +
    Calendar
    Define days when the library is closed
    + +
    Comments
    Moderate patron comments
    +
    +
    Notices
    Define notices (print and email notification messages for overdues, etc.)
    + +
    Overdue notice/status triggers
    Set notice/status triggers for overdue items
    + +
    Log viewer
    Browse the system logs
    + +
    Inventory/stocktaking
    Perform inventory (stocktaking) of your catalogue
    +
    +
    Stage MARC Records For Import
    Stage MARC records into the reservoir.
    + +
    Manage Staged MARC Records
    Managed staged MARC records, including completing and reversing imports
    + +
    Export bibliographic and holdings
    Export bibliographic and holdings data
    + +
    Import patrons
    Import patron data
    + +
    Patrons (anonomize, bulk-delete)
    Delete old borrowers and anonymize circulation history (deletes borrower reading history)
    + +
    Upload patron images
    Upload patron images in batch or one at a time
    + +
    Task Scheduler
    Schedule tasks to run
    +
    -- 2.39.5