Skip to content
Browse files

Bug 8122 - Followup Add a link to new library group creation from emp…

…ty groups message

Set outside tables the "no group defined" message.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
  • Loading branch information...
1 parent a67caa2 commit 5247c7e973911a00eaf51b47cd8481749155fa36 @joubu joubu committed with PaulPoulain May 22, 2012
Showing with 33 additions and 23 deletions.
  1. +33 −23 koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt
View
56 koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt
@@ -269,30 +269,40 @@ tinyMCE.init({
[% IF ( branchcategories ) %]
[% FOREACH branchcategorie IN branchcategories %]
<h3>Group(s): [% IF ( branchcategorie.properties ) %]Properties[% ELSE %][% IF ( branchcategorie.searchdomain ) %]Search domain[% END %][% END %]</h3>
- <table>
- <tr>
- <th>Name</th>
- <th>Code</th>
- <th>Description</th>
- <th>&nbsp;</th>
- <th>&nbsp;</th>
- </tr>
-[% IF ( branchcategorie.catloop ) %][% FOREACH catloo IN branchcategorie.catloop %]
- <tr>
- <td>[% catloo.categoryname %]</td>
- <td>[% catloo.categorycode %]</td>
- <td>[% catloo.codedescription %]</td>
- <td><a href="[% catloo.action %]?op=editcategory&amp;categorycode=[% catloo.categorycode |url %]">Edit</a>
- </td>
- <td><a href="[% catloo.action %]?op=delete_category&amp;categorycode=[% catloo.categorycode |url %]">Delete</a>
- </td>
- </tr>
- [% END %][% ELSE %]<tr><td colspan="5">No [% IF ( branchcategorie.properties ) %]properties[% ELSIF ( branchcategorie.searchdomain ) %]search domain[% END %] defined. <a href="/cgi-bin/koha/admin/branches.pl?op=editcategory">Add a new group</a>.</td></tr>[% END %]
- </table>
- [% END %]
+ [% IF ( branchcategorie.catloop ) %]
+ <table>
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Code</th>
+ <th>Description</th>
+ <th>&nbsp;</th>
+ <th>&nbsp;</th>
+ </tr>
+ </thead>
+ <tbody>
+ [% FOREACH catloo IN branchcategorie.catloop %]
+ <tr>
+ <td>[% catloo.categoryname %]</td>
+ <td>[% catloo.categorycode %]</td>
+ <td>[% catloo.codedescription %]</td>
+ <td>
+ <a href="[% catloo.action %]?op=editcategory&amp;categorycode=[% catloo.categorycode |url %]">Edit</a>
+ </td>
+ <td>
+ <a href="[% catloo.action %]?op=delete_category&amp;categorycode=[% catloo.categorycode |url %]">Delete</a>
+ </td>
+ </tr>
+ [% END %]
+ </tbody>
+ </table>
[% ELSE %]
- <p>No groups defined.</p>
- [% END %] <!-- NAME="branchcategories" -->
+ No [% IF ( branchcategorie.properties ) %]properties[% ELSIF ( branchcategorie.searchdomain ) %]search domain[% END %] defined. <a href="/cgi-bin/koha/admin/branches.pl?op=editcategory">Add a new group</a>.
+ [% END %]
+ [% END %]
+ [% ELSE %]
+ <p>No groups defined.</p>
+ [% END %] <!-- NAME="branchcategories" -->
[% END %]
[% IF ( editcategory ) %]

0 comments on commit 5247c7e

Please sign in to comment.
Something went wrong with that request. Please try again.