View | Details | Raw Unified | Return to bug 15881
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt (-11 / +14 lines)
Lines 1-5 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Serials &rsaquo; Number patterns</title>
2
<title>Koha &rsaquo; Serials &rsaquo; Numbering patterns</title>
3
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'calendar.inc' %]
4
[% INCLUDE 'calendar.inc' %]
5
<script type="text/javascript">
5
<script type="text/javascript">
Lines 79-85 function show_blocking_subs() { Link Here
79
      [% IF (new or modify) %]
79
      [% IF (new or modify) %]
80
        <div class="yui-g">
80
        <div class="yui-g">
81
          [% IF (new) %]
81
          [% IF (new) %]
82
            <h1>New number pattern</h1>
82
            <h1>New numbering pattern</h1>
83
            [% IF (error_existing_numberpattern) %]
83
            [% IF (error_existing_numberpattern) %]
84
              <div class="dialog">
84
              <div class="dialog">
85
                <p>A pattern with this name already exists.</p>
85
                <p>A pattern with this name already exists.</p>
Lines 163-169 function show_blocking_subs() { Link Here
163
                  </tr>
163
                  </tr>
164
                  <tr>
164
                  <tr>
165
                    [% BLOCK numbering_select %]
165
                    [% BLOCK numbering_select %]
166
                      <select id="[% name %]" name="[% name %]" />
166
                      <select id="[% name %]" name="[% name %]">
167
                        <option value=""></option>
167
                        <option value=""></option>
168
                        [% IF (value == "dayname") %]
168
                        [% IF (value == "dayname") %]
169
                            <option selected="selected" value="dayname">Name of day</option>
169
                            <option selected="selected" value="dayname">Name of day</option>
Lines 193-199 function show_blocking_subs() { Link Here
193
            <fieldset class="action">
193
            <fieldset class="action">
194
              <input type="submit" value="Save" />
194
              <input type="submit" value="Save" />
195
              <input type="reset" value="Reset" />
195
              <input type="reset" value="Reset" />
196
              <input type="button" value="Cancel" onclick="window.location = '/cgi-bin/koha/serials/subscription-numberpatterns.pl';" />
196
              <a class="cancel" href="/cgi-bin/koha/serials/subscription-numberpatterns.pl">Cancel</a>
197
            </fieldset>
197
            </fieldset>
198
          </form>
198
          </form>
199
        </div>
199
        </div>
Lines 203-209 function show_blocking_subs() { Link Here
203
              <legend>Test prediction pattern</legend>
203
              <legend>Test prediction pattern</legend>
204
              <ol>
204
              <ol>
205
                <li>
205
                <li>
206
                  <label for="frequency">Frequency:</label>
206
                  <label for="frequency">Frequency: </label>
207
                  <select id="frequency">
207
                  <select id="frequency">
208
                    [% FOREACH frequency IN frequencies_loop %]
208
                    [% FOREACH frequency IN frequencies_loop %]
209
                      <option value="[% frequency.id %]">[% frequency.description %]</option>
209
                      <option value="[% frequency.id %]">[% frequency.description %]</option>
Lines 211-217 function show_blocking_subs() { Link Here
211
                  </select>
211
                  </select>
212
                </li>
212
                </li>
213
                <li>
213
                <li>
214
                  <label for="firstacquidate">First issue publication date</label>
214
                  <label for="firstacquidate">First issue publication date: </label>
215
                  <input type="text" id="firstacquidate" class="datepicker" size="10" />
215
                  <input type="text" id="firstacquidate" class="datepicker" size="10" />
216
                </li>
216
                </li>
217
                <li>
217
                <li>
Lines 224-230 function show_blocking_subs() { Link Here
224
                  <input type="text" id="sublength" size="3" />
224
                  <input type="text" id="sublength" size="3" />
225
                </li>
225
                </li>
226
                <li>
226
                <li>
227
                  <label for="locale">Locale:</label>
227
                  <label for="locale">Locale: </label>
228
                  <select id="locale" name="locale">
228
                  <select id="locale" name="locale">
229
                      <option value=""></option>
229
                      <option value=""></option>
230
                      [% FOREACH locale IN locales %]
230
                      [% FOREACH locale IN locales %]
Lines 266-272 function show_blocking_subs() { Link Here
266
          </form>
266
          </form>
267
        </div>
267
        </div>
268
      [% ELSE %]
268
      [% ELSE %]
269
        <h1>Number patterns</h1>
269
        <h1>Numbering patterns</h1>
270
        [% IF still_used %]
270
        [% IF still_used %]
271
            <div class="dialog">
271
            <div class="dialog">
272
                <p>
272
                <p>
Lines 293-299 function show_blocking_subs() { Link Here
293
                </form>
293
                </form>
294
            </div>
294
            </div>
295
        [% END %]
295
        [% END %]
296
        <a href="/cgi-bin/koha/serials/subscription-numberpatterns.pl?op=new">New numbering pattern</a>
296
297
        <div id="toolbar" class="btn-toolbar">
298
            <a class="btn btn-small" id="newnumberpattern" href="/cgi-bin/koha/serials/subscription-numberpatterns.pl?op=new"><i class="fa fa-plus"></i> New numbering pattern</a>
299
        </div>
300
297
        [% IF (numberpatterns_loop.size) %]
301
        [% IF (numberpatterns_loop.size) %]
298
          <table id="numberpatternst">
302
          <table id="numberpatternst">
299
            <thead>
303
            <thead>
Lines 321-327 function show_blocking_subs() { Link Here
321
            </tbody>
325
            </tbody>
322
          </table>
326
          </table>
323
        [% ELSE %]
327
        [% ELSE %]
324
          <p>There is no existing patterns.</p>
328
          <p>There are no existing numbering patterns.</p>
325
        [% END %]
329
        [% END %]
326
      [% END %]
330
      [% END %]
327
    </div>
331
    </div>
328
- 

Return to bug 15881