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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/add-modify.tt (-25 / +23 lines)
Lines 1-28 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Tools &rsaquo; Patron lists &rsaquo; New list</title>
2
<title>Koha &rsaquo; Tools &rsaquo; Patron lists &rsaquo;
3
    [% IF list.patron_list_id %]
4
        Modify patron list
5
    [% ELSE %]
6
        New patron list
7
    [% END %]
8
</title>
3
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
4
5
<script type="text/javascript">
6
//<![CDATA[
7
8
function CheckForm() {
9
  if ( !$("#list-name").val() ) {
10
    alert( _("Name is a required field!")  );
11
    return false;
12
  }
13
14
  return true;
15
}
16
17
//]]>
18
</script>
19
20
</head>
10
</head>
21
11
22
<body id="patlist_add_modify" class="pat patlist">
12
<body id="patlist_add_modify" class="pat patlist">
23
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
24
[% INCLUDE 'cat-search.inc' %]
14
[% INCLUDE 'cat-search.inc' %]
25
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="lists.pl">Patron lists</a> &rsaquo; Add / modify list</div>
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="lists.pl">Patron lists</a> &rsaquo;
16
    [% IF list.patron_list_id %]
17
        Modify patron list
18
    [% ELSE %]
19
        New patron list
20
    [% END %]
21
</div>
26
22
27
23
28
<div class="yui-t7">
24
<div class="yui-t7">
Lines 35-41 function CheckForm() { Link Here
35
            [% END %]
31
            [% END %]
36
        </h1>
32
        </h1>
37
33
38
        <form method="post" onsubmit="return CheckForm()">
34
        <form method="post" action="/cgi-bin/koha/patron_lists/add-modify.pl" class="validated">
39
            <fieldset class="rows">
35
            <fieldset class="rows">
40
36
41
                <legend>
37
                <legend>
Lines 48-55 function CheckForm() { Link Here
48
44
49
                <ol>
45
                <ol>
50
                    <li>
46
                    <li>
51
                        <label class="required" for="name">Name:</label>
47
                        <label class="required" for="list-name">Name:</label>
52
                        <input id="list-name" name="name" type="text" value="[% list.name %]" />
48
                        <input id="list-name" name="name" type="text" class="required" required="required" value="[% list.name %]" />
53
                    </li>
49
                    </li>
54
50
55
                    <li>
51
                    <li>
Lines 59-68 function CheckForm() { Link Here
59
55
60
            </fieldset>
56
            </fieldset>
61
57
62
            <input type="hidden" name="patron_list_id" value="[% list.patron_list_id %]" />
58
            <fieldset class="action">
63
            <input type="submit" class="btn" value="Save" />
59
                <input type="hidden" name="patron_list_id" value="[% list.patron_list_id %]" />
64
            <a href="lists.pl" class="cancel">Cancel</a>
60
                <input type="submit" value="Save" />
61
                <a href="lists.pl" class="cancel">Cancel</a>
62
            </fieldset>
65
        </form>
63
        </form>
66
    </div>
64
    </div>
67
</div>
65
68
[% INCLUDE 'intranet-bottom.inc' %]
66
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt (-1 / +1 lines)
Lines 152-156 $(document).ready(function() { Link Here
152
            <input type="submit" value="Remove selected patrons" />
152
            <input type="submit" value="Remove selected patrons" />
153
        </form>
153
        </form>
154
    </div>
154
    </div>
155
</div>
155
156
[% INCLUDE 'intranet-bottom.inc' %]
156
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt (-5 / +7 lines)
Lines 32-43 Link Here
32
32
33
<div class="yui-t7">
33
<div class="yui-t7">
34
    <div class="yui-main">
34
    <div class="yui-main">
35
        <h1>Your patron lists</h1>
36
35
37
        <div class="btn-group">
36
        <div id="toolbar" class="btn-toolbar">
38
            <a class="btn btn-small" href="add-modify.pl"><i class="fa fa-plus"></i> New patron list</a>
37
            <div class="btn-group">
38
                <a class="btn btn-small" href="add-modify.pl"><i class="fa fa-plus"></i> New patron list</a>
39
            </div>
39
        </div>
40
        </div>
40
41
42
        <h1>Your patron lists</h1>
43
41
        [% IF ( lists ) %]
44
        [% IF ( lists ) %]
42
45
43
        <table id="patron-lists-table">
46
        <table id="patron-lists-table">
Lines 75-79 Link Here
75
           <div class="dialog message">There are no patron lists.</div>
78
           <div class="dialog message">There are no patron lists.</div>
76
        [% END %]
79
        [% END %]
77
    </div>
80
    </div>
78
</div>
81
79
[% INCLUDE 'intranet-bottom.inc' %]
82
[% INCLUDE 'intranet-bottom.inc' %]
80
- 

Return to bug 15925