+[% USE KohaDates %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Serials › [% title | html %] › [% IF ( op ) %]Create routing list[% ELSE %]Edit routing list[% END %]</title>
+<title>[% IF ( op ) %]Create routing list[% ELSE %]Edit routing list[% END %] › [% title | html %] › Serials › Koha</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="ser_routing" class="ser">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'serials-search.inc' %]
-<div id="breadcrumbs">
- <a href="/cgi-bin/koha/mainpage.pl">Home</a>
- › <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
- [% UNLESS blocking_error %]
- › <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptionid | uri %]"><i>[% title | html %]</i></a>
- › [% IF ( op ) %]Create routing list[% ELSE %]Edit routing list[% END %]
- [% END %]
-</div>
-
-<div id="doc3" class="yui-t2">
-
- <div id="bd">
- <div id="yui-main">
- <div class="yui-b">
+<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
+ <ol>
+ <li>
+ <a href="/cgi-bin/koha/mainpage.pl">Home</a>
+ </li>
+
+ [% IF blocking_error %]
+ <li>
+ <a href="#" aria-current="page">
+ Serials
+ </a>
+ </li>
+
+ [% ELSE %]
+ <li>
+ <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
+ </li>
+ <li>
+ <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptionid | uri %]"><em>[% title | html %]</em></a>
+ </li>
+ <li>
+ <a href="#" aria-current="page">
+ [% IF ( op ) %]
+ Create routing list
+ [% ELSE %]
+ Edit routing list
+ [% END %]
+ </a>
+ </li>
+ [% END %]
+ </ol>
+</nav>
+<div class="main container-fluid">
+ <div class="row">
+ <div class="col-sm-10 col-sm-push-2">
+ <main>
[% INCLUDE 'blocking_errors.inc' %]
[% IF ( op ) %]
-<h1>Create routing list for <i>[% title | html %]</i></h1>
+<h1>Create routing list for <em>[% title | html %]</em></h1>
[% ELSE %]
-<h1>Edit routing list for <i>[% title | html %]</i></h1>
+<h1>Edit routing list for <em>[% title | html %]</em></h1>
[% END %]
<form method="post" action="routing.pl">
<ol>
<li><label for="date_selected">Issue: </label>
<select name="date_selected" id="date_selected">
-[% FOREACH date IN dates %]
-[% IF ( date.selected ) %]<option value="[% date.serialseq | html %] ([% date.publisheddate | html %])" selected="selected">[% date.serialseq | html %] ([% date.publisheddate | html %])</option>[% ELSE %]<option value="[% date.serialseq | html %] ([% date.publisheddate | html %])">[% date.serialseq | html %] ([% date.publisheddate | html %])</option>[% END %]
+ [% FOREACH date IN dates %]
+ [% IF ( date.selected ) %]
+ <option value="[% date.serialseq | html %] ([% date.publisheddate | html %])" selected="selected">[% date.serialseq | html %] ([% date.publisheddate | $KohaDates %])</option>
+ [% ELSE %]
+ <option value="[% date.serialseq | html %] ([% date.publisheddate | html %])">[% date.serialseq | html %] ([% date.publisheddate | $KohaDates %])</option>
+ [% END %]
[% END %]
</select> [% issue | html %]</li>
<td>
<select name="itemrank" class="itemrank" data-subscriptionid="[% subscriptionid | html %]" data-routingid="[% member.routingid | html %]">
[% rankings = [1 .. m_loop.size] %]
+ [% SET cur_rank = loop.count() %]
[% FOREACH r IN rankings %]
- [% IF r == member.ranking %]
+ [% IF r == cur_rank %]
<option selected="selected" value="[% r | html %]">[% r | html %]</option>
[% ELSE %]
<option value="[% r | html %]">[% r | html %]</option>
<p style="margin-left:10em;">
<a href="#" id="add_recipients"><i class="fa fa-plus"></i> Add recipients</a>
[% IF memberloop %]
- <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscriptionid | html %]&op=delete"><i class="fa fa-trash"></i> Delete all</a>
+ <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscriptionid | uri %]&op=delete"><i class="fa fa-trash"></i> Delete all</a>
[% END %]
</p>
</li>
<fieldset class="action"><input type="submit" name="submit" value="Save" /></fieldset>
</form>
+ </main>
+ </div> <!-- /.col-sm-10.col-sm-push-2 -->
-</div>
-</div>
-
-<div class="yui-b">
-[% INCLUDE 'serials-menu.inc' %]
-</div>
-</div>
-
+ <div class="col-sm-2 col-sm-pull-10">
+ <aside>
+ [% INCLUDE 'serials-menu.inc' %]
+ </aside>
+ </div> <!-- /.col-sm-2.col-sm-pull-10 -->
+ </div> <!-- /.row -->
[% MACRO jsinclude BLOCK %]
- <script type="text/javascript">
+ <script>
$(document).ready(function(){
$("#add_recipients").on("click",function(e){
e.preventDefault();