[Koha-patches] [PATCH] Bug Fix : 2686
--- .../opac-tmpl/prog/en/modules/opac-shelves.tmpl| 37 +++- 1 files changed, 28 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl index 7e0db8e..4873e32 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl @@ -200,7 +200,8 @@ $.tablesorter.addParser({ div id=privateshelves class=tab-container style=display:none; !-- /TMPL_IF -- -!-- TMPL_IF NAME=loggedinusername -- + !-- TMPL_IF NAME=loggedinusername -- +a class=newshelf href=/cgi-bin/koha/opac-shelves.pl?shelves=1New List/a !-- TMPL_IF NAME=shelveslooppriv -- !-- TMPL_VAR name='pagination_bar'-- table @@ -240,11 +241,10 @@ $.tablesorter.addParser({ trtd colspan=4No Private Lists./td/tr !-- /TMPL_IF --!-- /shelveslooppriv -- /table -a class=newshelf href=/cgi-bin/koha/opac-shelves.pl?shelves=1New List/a + /div!-- /privateshelves -- !-- TMPL_ELSE --!-- /loggedinusername -- -diva href=/cgi-bin/koha/opac-user.plLog in/a to create new Lists./div + diva href=/cgi-bin/koha/opac-user.plLog in/a to create new Lists./div !-- /TMPL_IF --!-- /loggedinusername -- -/div!-- /privateshelves -- !-- TMPL_IF NAME=showpublicshelves -- div id=publicshelves class=tab-container style=display:block; @@ -254,16 +254,35 @@ $.tablesorter.addParser({ !-- TMPL_IF NAME=shelvesloop -- !-- TMPL_VAR name='pagination_bar'-- table -trthList Name/ththContents/ththType/th/tr +trthList Name/ththContents/ththType/ththnbsp;/th/tr !-- TMPL_LOOP NAME=shelvesloop -- !-- TMPL_IF NAME=toggle --tr class=highlight!--TMPL_ELSE--tr!-- /TMPL_IF -- tda href=opac-shelves.pl?viewshelf=!-- TMPL_VAR NAME=shelf --!-- TMPL_VAR NAME=shelfname ESCAPE=html --/a/td td!-- TMPL_VAR NAME=count -- item(s)/td td!-- TMPL_IF NAME=viewcategory1 --Private!-- /TMPL_IF -- -!-- TMPL_IF NAME=viewcategory2 --Public!-- /TMPL_IF -- -!-- TMPL_IF NAME=viewcategory3 --Open!-- /TMPL_IF -- -/td -/tr + !-- TMPL_IF NAME=viewcategory2 --Public!-- /TMPL_IF -- + !-- TMPL_IF NAME=viewcategory3 --Open!-- /TMPL_IF -- + /td +td +!-- TMPL_IF NAME=mine -- +form action=opac-shelves.pl method=get + input type=hidden name=shelfnumber value=!-- TMPL_VAR NAME=shelf -- / + input type=hidden name=op value=modif / + input type=submit class=editshelf value=Edit / +/form +form action=opac-shelves.pl method=post + input type=hidden name=shelves value=1 / + input type=hidden name=DEL-!-- TMPL_VAR NAME=shelf -- value=1 / + !-- TMPL_IF NAME=confirm -- + input type=hidden name=CONFIRM-!-- TMPL_VAR NAME=confirm -- value=1 / + input type=submit class=confirm value=Confirm / + !-- TMPL_ELSE -- + input type=submit class=deleteshelf onclick=return confirmDelete(_('Are you sure you want to remove this List?')); value=Delete / + !-- /TMPL_IF -- +/form + !-- /TMPL_IF --nbsp; +/td + /tr !-- /TMPL_LOOP -- /table !-- TMPL_ELSE -- -- 1.6.0.2 ___ Koha-patches mailing list Koha-patches@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-patches
[Koha-patches] [PATCH] Bug Fix : 2686
From: Laurent Henri-Damien [EMAIL PROTECTED](none) --- .../opac-tmpl/prog/en/modules/opac-shelves.tmpl| 27 +--- 1 files changed, 23 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl index ac0c7fd..317efeb 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl @@ -201,6 +201,7 @@ $.tablesorter.addParser({ !-- /TMPL_IF -- !-- TMPL_IF NAME=loggedinusername -- +a class=newshelf href=/cgi-bin/koha/opac-shelves.pl?shelves=1New List/a !-- TMPL_IF NAME=shelveslooppriv -- !-- TMPL_VAR name='pagination_bar'-- table @@ -239,11 +240,10 @@ $.tablesorter.addParser({ trtd colspan=4No Private Lists./td/tr !-- /TMPL_IF --!-- /shelveslooppriv -- /table - a class=newshelf href=/cgi-bin/koha/opac-shelves.pl?shelves=1New List/a + /div!-- /privateshelves -- !-- TMPL_ELSE --!-- /loggedinusername -- - diva href=/cgi-bin/koha/opac-user.plLog in/a to create new Lists./div + diva href=/cgi-bin/koha/opac-user.plLog in/a to create new Lists./div !-- /TMPL_IF --!-- /loggedinusername -- - /div!-- /privateshelves -- !-- TMPL_IF NAME=showpublicshelves -- div id=publicshelves class=tab-container style=display:block; @@ -253,7 +253,7 @@ $.tablesorter.addParser({ !-- TMPL_IF NAME=shelvesloop -- !-- TMPL_VAR name='pagination_bar'-- table -trthList Name/ththContents/ththType/th/tr +trthList Name/ththContents/ththType/ththnbsp;/th/tr !-- TMPL_LOOP NAME=shelvesloop -- !-- TMPL_IF NAME=toggle --tr class=highlight!--TMPL_ELSE--tr!-- /TMPL_IF -- tda href=opac-shelves.pl?viewshelf=!-- TMPL_VAR NAME=shelf --!-- TMPL_VAR NAME=shelfname ESCAPE=html --/a/td @@ -262,6 +262,25 @@ $.tablesorter.addParser({ !-- TMPL_IF NAME=viewcategory2 --Public!-- /TMPL_IF -- !-- TMPL_IF NAME=viewcategory3 --Open!-- /TMPL_IF -- /td +td +!-- TMPL_IF NAME=mine -- +form action=opac-shelves.pl method=get + input type=hidden name=shelfnumber value=!-- TMPL_VAR NAME=shelf -- / + input type=hidden name=op value=modif / + input type=submit class=editshelf value=Edit / +/form +form action=opac-shelves.pl method=post + input type=hidden name=shelves value=1 / + input type=hidden name=DEL-!-- TMPL_VAR NAME=shelf -- value=1 / + !-- TMPL_IF NAME=confirm -- + input type=hidden name=CONFIRM-!-- TMPL_VAR NAME=confirm -- value=1 / + input type=submit class=confirm value=Confirm / + !-- TMPL_ELSE -- + input type=submit class=deleteshelf onclick=return confirmDelete(_('Are you sure you want to remove this List?')); value=Delete / + !-- /TMPL_IF -- +/form + !-- /TMPL_IF --nbsp; +/td /tr !-- /TMPL_LOOP -- /table -- 1.6.0.2 ___ Koha-patches mailing list Koha-patches@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-patches