"Fossies" - the Fresh Open Source Software Archive

Member "koha-19.11.15/koha-tmpl/intranet-tmpl/prog/en/includes/clubs-table.inc" (23 Feb 2021, 5189 Bytes) of package /linux/misc/koha-19.11.15.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) fasm source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "clubs-table.inc" see the Fossies "Dox" file reference documentation.

    1 <table id="clubs-table" class="selections-table">
    2     <thead>
    3         <tr>
    4             <th>Name</th>
    5             <th>Template</th>
    6             <th>Description</th>
    7             [% UNLESS destination == 'holds' %]
    8                 <th>Public enrollment</th>
    9                 <th>Email required</th>
   10             [% END %]
   11             <th>Library</th>
   12             <th>Start date</th>
   13             <th>End date</th>
   14             <th>Enrolled patrons</th>
   15             [% UNLESS destination == 'holds' %]
   16                 <th>&nbsp;</th>
   17             [% END %]
   18         </tr>
   19     </thead>
   20     <tbody>
   21         [% FOREACH c IN clubs %]
   22             [% IF destination == 'holds' %]
   23                 [% IF multi_hold %]
   24                     [% SET data_url = "/cgi-bin/koha/reserve/request.pl?club=" _ c.id _ "&amp;multi_hold=1&amp;biblionumbers=" _ biblionumbers %]
   25                 [% ELSE %]
   26                     [% SET data_url = "/cgi-bin/koha/reserve/request.pl?club=" _ c.id _ "&amp;biblionumber=" _ biblionumber %]
   27                 [% END %]
   28                 <tr class="clickable" data-url="[% data_url | html %]">
   29             [% ELSE %]
   30                 <tr>
   31             [% END %]
   32                 <td><a href="[% data_url | url %]">[% c.name | html %]</a></td>
   33                 <td>[% c.club_template.name | html %]</td>
   34                 <td>[% c.description | html %]</td>
   35                 [% UNLESS destination == 'holds' %]
   36                     <td>
   37                         [% IF c.club_template.is_enrollable_from_opac %]
   38                             Yes
   39                         [% ELSE %]
   40                             No
   41                         [% END %]
   42                     </td>
   43                     <td>
   44                         [% IF c.club_template.is_email_required %]
   45                             Yes
   46                         [% ELSE %]
   47                             No
   48                         [% END %]
   49                     </td>
   50                 [% END %]
   51                 <td>[% Branches.GetName( c.branchcode ) | html %]</td>
   52                 <td>
   53                     [% IF c.date_start %]
   54                         [% c.date_start | $KohaDates %]
   55                     [% END %]
   56                 </td>
   57                 <td>
   58                     [% IF c.date_end %]
   59                         [% c.date_end | $KohaDates %]
   60                     [% END %]
   61                 </td>
   62                 <td>
   63                     [% c.club_enrollments.count | html %]
   64                 </td>
   65                 [% UNLESS destination == 'holds' %]
   66                     <td class="actions">
   67                         <div class="dropdown">
   68                             <a class="btn btn-default btn-xs dropdown-toggle" id="clubactions[% c.id | html %]" role="button" data-toggle="dropdown" href="#">
   69                                 Actions <b class="caret"></b>
   70                             </a>
   71                             <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="clubactions[% c.id | html %]">
   72                                 [% IF ( c.club_enrollments.count ) %]
   73                                     <li>
   74                                         <a href="club-enrollments.pl?id=[% c.id | uri %]">
   75                                             <i class="fa fa-list-ul"></i> Enrollments
   76                                         </a>
   77                                     </li>
   78                                 [% ELSE %]
   79                                     <li class="disabled">
   80                                         <a href="#" data-toggle="tooltip" data-placement="left" title="There are no enrollments for this club yet">
   81                                             <i class="fa fa-list-ul"></i> Enrollments
   82                                         </a>
   83                                     </li>
   84                                 [% END %]
   85                                 [% IF CAN_user_clubs_edit_clubs %]
   86                                     <li>
   87                                         <a href="clubs-add-modify.pl?id=[% c.id | uri %]">
   88                                             <i class="fa fa-pencil"></i> Edit
   89                                         </a>
   90                                     </li>
   91                                     <li>
   92                                         <a href="#" onclick='ConfirmDeleteClub([% c.id | html %], "[% c.name | html %]", $(this) ); return false;'>
   93                                             <i class="fa fa-trash"></i> Delete
   94                                         </a>
   95                                     </li>
   96                                 [% END %]
   97                                 [% IF ( c.club_enrollments.count ) %]
   98                                     <li>
   99                                         <a href="#" onclick="SearchToHold([% c.id | html %])">
  100                                             <i class="fa fa-search"></i> Search to hold
  101                                         </a>
  102                                     </li>
  103                                 [% END %]
  104                             </ul>
  105                         </div>
  106                     </td>
  107                 [% END %]
  108             </tr>
  109         [% END %]
  110     </tbody>
  111 </table> <!-- /.clubs-table -->