From 83f2c12b21c5fe6ecd5f0a217e532de85d17d3db Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 27 Oct 2007 14:14:50 -0500 Subject: [PATCH] Re-working virtual shelves interface to try to make it cleaner and make the steps more clear. Still a couple of bugs: some redirects need to change in the script (after adds, deletes, and edits), to match the changes in what displays at each step. Also, the toolbar delete button needs troubleshooting. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- .../prog/en/css/staff-global.css | 5 + .../en/includes/virtualshelves-toolbar.inc | 33 +++ .../en/modules/virtualshelves/shelves.tmpl | 189 ++++++++---------- 3 files changed, 124 insertions(+), 103 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc 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 0bbc5c0420..c42ef34e1d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -319,6 +319,7 @@ div.cmDiv .clickMenu li.more li a { background-image : none; padding-right : 0; + white-space : nowrap; } .clickMenu @@ -819,4 +820,8 @@ tr.expired td { span.expired { color : #990000; font-style : italic; +} + +div.help { + margin: .9em 0 0 0; } \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc new file mode 100644 index 0000000000..6594084e22 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc @@ -0,0 +1,33 @@ +
+ + +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl index 5b35a1384b..60db0fc0e4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl @@ -1,6 +1,7 @@ -Koha › <!-- TMPL_IF NAME="viewshelf" -->Virtual Shelves › Contents of <!-- TMPL_VAR NAME="shelfname" --><!-- TMPL_ELSE -->Virtual Shelves<!-- /TMPL_IF --> +Koha › <!-- TMPL_IF NAME="viewshelf" -->Virtual Shelves › Contents of <!-- TMPL_VAR NAME="shelfname" --><!-- TMPL_ELSE -->Virtual Shelves<!-- /TMPL_IF --><!-- TMPL_IF NAME="shelves" --> › Create New Virtual Shelf<!-- /TMPL_IF --><!-- TMPL_IF NAME="edit" --> › Edit virtual shelf <!-- TMPL_VAR name="shelfname"--><!-- /TMPL_IF --> + - + - + -
+
-
- +
+ +
+ - - -
-Contents of +
+
" /> - +
+Contents of - class="highlight"> + + + + + - +
@@ -97,12 +95,16 @@ function confirmDelete(s){  
" /> - /images/.gif" alt="" title="" /> + /../img/.gif" alt="" title="" /> @@ -125,30 +127,24 @@ function confirmDelete(s){ ">Holds
- - -

This shelf is empty.

- - " /> - - - - - + + - With selected items : - - - + + +
+ +
+
-
- Add an item to this shelf by barcode +
+ Add an item to
  1. @@ -161,10 +157,14 @@ function confirmDelete(s){
+
- +
+
+

A virtual shelf with that name already exists!

+

@@ -173,63 +173,44 @@ function confirmDelete(s){
- -

Create a new virtual shelf

- - - -
">
+
+ Create a new virtual shelf +
    +
  1. +
  2. Owner: " />
  3. +
-
    +
+ +

+ + + +
+
+
  • A private virtual shelf is managed by you and can be seen only by you.
  • A public virtual shelf can be seen by everybody, but managed only by you.
  • An open virtual shelf can be seen and managed by everybody.
  • -
-

- +
+
+
- - -
- -

Delete virtual shelves

- - - - - - - - - - - -
 Shelf nameContents
- " /> - - "> - - item(s) -
-
- - - -

- -
- - "> -

Edit virtual shelf ''

- - - - -
" />
">
+ " /> +
Edit virtual shelf +
    +
  1. " />
  2. +
  3. " />
  4. +
+ + +

+ +
+
+
  • A private virtual shelf is managed by you and can be seen only by you.
  • A public virtual shelf can be seen by everybody, but managed only by you.
  • A free virtual shelf can be seen and managed by everybody.
  • -
-

- - - - +
+
+ + +

Virtual shelves

@@ -266,20 +251,18 @@ function confirmDelete(s){ - - +
Private Public -Free +Open ">Edit 
">Edit =1" onclick="return confirmDelete('Are you sure you want to remove this virtual shelf?')">Delete 
-

- + + + +
-
- -
- + \ No newline at end of file -- 2.39.5