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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt (-26 / +27 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
    [% INCLUDE 'doc-head-open.inc' %]
4
    [% INCLUDE 'doc-head-open.inc' %]
4
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Batches &rsaquo; [% IF batch_id %]Edit ([% batch_id %])[% ELSE %]New[% END %]</title>
5
    <title>[% t('Koha › Tools › Patron card creator › Batches ›') %] [% IF batch_id %][% t('Edit (') %][% batch_id %])[% ELSE %][% t('New') %][% END %]</title>
5
    [% INCLUDE 'doc-head-close.inc' %]
6
    [% INCLUDE 'doc-head-close.inc' %]
6
    [% Asset.css("css/datatables.css") %]
7
    [% Asset.css("css/datatables.css") %]
7
</head>
8
</head>
Lines 10-23 Link Here
10
    [% INCLUDE 'header.inc' %]
11
    [% INCLUDE 'header.inc' %]
11
    [% INCLUDE 'cat-search.inc' %]
12
    [% INCLUDE 'cat-search.inc' %]
12
    <div id="breadcrumbs">
13
    <div id="breadcrumbs">
13
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
14
        <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
14
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
15
        <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
15
        <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a> &rsaquo;
16
        <a href="/cgi-bin/koha/patroncards/home.pl">[% t('Patron card creator') %]</a> ›
16
        <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=batch">Batches</a> &rsaquo;
17
        <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=batch">[% t('Batches') %]</a> ›
17
        [% IF batch_id %]
18
        [% IF batch_id %]
18
            Edit ([% batch_id %])
19
            [% t('Edit (') %][% batch_id %])
19
        [% ELSE %]
20
        [% ELSE %]
20
            New
21
            [% t('New') %]
21
        [% END %]
22
        [% END %]
22
    </div>
23
    </div>
23
    <div id="doc3" class="yui-t2">
24
    <div id="doc3" class="yui-t2">
Lines 33-53 Link Here
33
34
34
                [% IF ( duplicate_message ) %]
35
                [% IF ( duplicate_message ) %]
35
                    <div class="dialog message">
36
                    <div class="dialog message">
36
                        <strong>Duplicate patrons removed from batch number [% batch_id %]: [% duplicate_count %]</strong>
37
                        <strong>[% t('Duplicate patrons removed from batch number') %] [% batch_id %]: [% duplicate_count %]</strong>
37
                    </div>
38
                    </div>
38
                [% END %]
39
                [% END %]
39
40
40
                    [% INCLUDE 'patroncards-errors.inc' %]
41
                    [% INCLUDE 'patroncards-errors.inc' %]
41
                    <div id="manage-patroncard-batches">
42
                    <div id="manage-patroncard-batches">
42
                        <div class="hint">Current library: [% LoginBranchname %]</div>
43
                        <div class="hint">[% t('Current library:') %] [% LoginBranchname %]</div>
43
                            <form name="add_by_bor_num" action="/cgi-bin/koha/patroncards/edit-batch.pl" method="post">
44
                            <form name="add_by_bor_num" action="/cgi-bin/koha/patroncards/edit-batch.pl" method="post">
44
                                <div>
45
                                <div>
45
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
46
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
46
                                    <ol><li>
47
                                    <ol><li>
47
                                    <input type="hidden" name="op" value="add" />
48
                                    <input type="hidden" name="op" value="add" />
48
                                    <input type="hidden" name="batch_id" value="[% batch_id %]" />
49
                                    <input type="hidden" name="batch_id" value="[% batch_id %]" />
49
                                    <label for="bor_num_list">Add by borrowernumber(s):
50
                                    <label for="bor_num_list">[% t('Add by borrowernumber(s):') %]
50
                                        <br /> <span class="hint">One borrowernumber per line.</span>
51
                                        <br /> <span class="hint">[% t('One borrowernumber per line.') %]</span>
51
                                    </label>
52
                                    </label>
52
                                    <textarea rows="5" id="bor_num_list" name="bor_num_list" tabindex="1" class="focus"></textarea>
53
                                    <textarea rows="5" id="bor_num_list" name="bor_num_list" tabindex="1" class="focus"></textarea>
53
                                    </li></ol>
54
                                    </li></ol>
Lines 55-70 Link Here
55
                                </div>
56
                                </div>
56
                            </form>
57
                            </form>
57
                            <div id="batch-manage" class="action">
58
                            <div id="batch-manage" class="action">
58
                                <a class="btn btn-default btn-sm" id="additems" href="#"><i class="fa fa-plus"></i> Add patron(s)</a>[% IF ( table_loop ) %]
59
                                <a class="btn btn-default btn-sm" id="additems" href="#"><i class="fa fa-plus"></i> [% t('Add patron(s)') %]</a>[% IF ( table_loop ) %]
59
                                <a class="btn btn-default btn-sm" id="removeitems" href="#"><i class="fa fa-trash"></i> Remove selected patrons</a>
60
                                <a class="btn btn-default btn-sm" id="removeitems" href="#"><i class="fa fa-trash"></i> [% t('Remove selected patrons') %]</a>
60
                                <a class="btn btn-default btn-sm" id="deletebatch" href="#"><i class="fa fa-minus-square"></i> Delete batch</a>
61
                                <a class="btn btn-default btn-sm" id="deletebatch" href="#"><i class="fa fa-minus-square"></i> [% t('Delete batch') %]</a>
61
                                <a class="btn btn-default btn-sm" id="deduplicate" href="#"><i class="fa fa-minus"></i> Remove duplicates</a>
62
                                <a class="btn btn-default btn-sm" id="deduplicate" href="#"><i class="fa fa-minus"></i> [% t('Remove duplicates') %]</a>
62
                                <a class="btn btn-default btn-sm" id="exportitems" href="#"><i class="fa fa-share-square-o"></i> Export selected card(s)</a>
63
                                <a class="btn btn-default btn-sm" id="exportitems" href="#"><i class="fa fa-share-square-o"></i> [% t('Export selected card(s)') %]</a>
63
                                <a class="btn btn-default btn-sm" id="exportbatch" href="#"><i class="fa fa-share-square-o"></i> Export card batch</a>[% END %]
64
                                <a class="btn btn-default btn-sm" id="exportbatch" href="#"><i class="fa fa-share-square-o"></i> [% t('Export card batch') %]</a>[% END %]
64
                            </div>
65
                            </div>
65
                            [% IF ( table_loop ) %]
66
                            [% IF ( table_loop ) %]
66
                            <form name="items" class="checkboxed">
67
                            <form name="items" class="checkboxed">
67
                                <h2>Patrons in batch number [% batch_id %]</h2>
68
                                <h2>[% t('Patrons in batch number') %] [% batch_id %]</h2>
68
                                <table id="batcht">
69
                                <table id="batcht">
69
                                    [% FOREACH table_loo IN table_loop %]
70
                                    [% FOREACH table_loo IN table_loop %]
70
                                        [% IF ( table_loo.header_fields ) %]
71
                                        [% IF ( table_loo.header_fields ) %]
Lines 73-85 Link Here
73
                                                    [% FOREACH header_field IN table_loo.header_fields %]
74
                                                    [% FOREACH header_field IN table_loo.header_fields %]
74
                                                        [% SWITCH header_field.field_label -%]
75
                                                        [% SWITCH header_field.field_label -%]
75
                                                            [% CASE "Summary" -%]
76
                                                            [% CASE "Summary" -%]
76
                                                                <th>Borrower name</th>
77
                                                                <th>[% t('Borrower name') %]</th>
77
                                                            [% CASE "Borrower Number" %]
78
                                                            [% CASE "Borrower Number" %]
78
                                                                <th>Borrower number</th>
79
                                                                <th>[% t('Borrower number') %]</th>
79
                                                            [% CASE "Actions " %]
80
                                                            [% CASE "Actions " %]
80
                                                                <th>Actions</th>
81
                                                                <th>[% t('Actions') %]</th>
81
                                                            [% CASE "Select" -%]
82
                                                            [% CASE "Select" -%]
82
                                                                <th>Select</th>
83
                                                                <th>[% t('Select') %]</th>
83
                                                            [% CASE %]
84
                                                            [% CASE %]
84
                                                                <th>[% header_field.field_label %]</th>
85
                                                                <th>[% header_field.field_label %]</th>
85
                                                        [% END -%]
86
                                                        [% END -%]
Lines 92-99 Link Here
92
                                                [% FOREACH text_field IN table_loo.text_fields %]
93
                                                [% FOREACH text_field IN table_loo.text_fields %]
93
                                                    [% IF ( text_field.select_field ) %]
94
                                                    [% IF ( text_field.select_field ) %]
94
                                                        <td>
95
                                                        <td>
95
                                                            <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/patroncards/edit-batch.pl?op=remove&amp;batch_id=[% batch_id %]&amp;label_id=[% text_field.field_value %]"><i class="fa fa-trash"></i> Delete</a>
96
                                                            <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/patroncards/edit-batch.pl?op=remove&batch_id=[% batch_id %]&label_id=[% text_field.field_value %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
96
                                                            <a class="btn btn-default btn-xs export" href="#" data-batch-id="[% batch_id %]" data-label-id="[% text_field.field_value %]"><i class="fa fa-share-square-o"></i> Export</a>
97
                                                            <a class="btn btn-default btn-xs export" href="#" data-batch-id="[% batch_id %]" data-label-id="[% text_field.field_value %]"><i class="fa fa-share-square-o"></i> [% t('Export') %]</a>
97
                                                        </td>
98
                                                        </td>
98
                                                        <td><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td>
99
                                                        <td><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td>
99
                                                    [% ELSE %]
100
                                                    [% ELSE %]
Lines 110-117 Link Here
110
                                <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
111
                                <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
111
                                <ol><li>
112
                                <ol><li>
112
                                    <div class="dialog message">
113
                                    <div class="dialog message">
113
                                        <h4>There are no patrons in this batch yet</h4>
114
                                        <h4>[% t('There are no patrons in this batch yet') %]</h4>
114
                                        <p>Add patrons by borrowernumber using the text area above or leave empty to add via patron search.</p>
115
                                        <p>[% t('Add patrons by borrowernumber using the text area above or leave empty to add via patron search.') %]</p>
115
                                    </div>
116
                                    </div>
116
                                </li></ol>
117
                                </li></ol>
117
                                </fieldset>
118
                                </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt (-76 / +77 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
    [% INCLUDE 'doc-head-open.inc' %]
3
    [% INCLUDE 'doc-head-open.inc' %]
3
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Layout &rsaquo; [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %]</title>
4
    <title>[% t('Koha › Tools › Patron card creator › Layout ›') %] [% IF ( layout_id ) %][% t('Edit (') %][% layout_id %])[% ELSE %][% t('New') %][% END %]</title>
4
    [% INCLUDE 'doc-head-close.inc' %]
5
    [% INCLUDE 'doc-head-close.inc' %]
5
</head>
6
</head>
6
7
Lines 8-18 Link Here
8
    [% INCLUDE 'header.inc' %]
9
    [% INCLUDE 'header.inc' %]
9
    [% INCLUDE 'cat-search.inc' %]
10
    [% INCLUDE 'cat-search.inc' %]
10
    <div id="breadcrumbs">
11
    <div id="breadcrumbs">
11
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
12
        <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
12
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
13
        <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
13
        <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a> &rsaquo;
14
        <a href="/cgi-bin/koha/patroncards/home.pl">[% t('Patron card creator') %]</a> ›
14
        <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=layout">Layouts</a> &rsaquo;
15
        <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=layout">[% t('Layouts') %]</a> ›
15
        [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %]
16
        [% IF ( layout_id ) %][% t('Edit (') %][% layout_id %])[% ELSE %][% t('New') %][% END %]
16
    </div>
17
    </div>
17
    <div id="doc3" class="yui-t2">
18
    <div id="doc3" class="yui-t2">
18
        <div id="bd">
19
        <div id="bd">
Lines 30-47 Link Here
30
                <div class="yui-g">
31
                <div class="yui-g">
31
                <div class="yui-g first">
32
                <div class="yui-g first">
32
                        <fieldset class="rows">
33
                        <fieldset class="rows">
33
                            <legend>[% IF ( layout_id ) %]Edit[% ELSE %]Create[% END %] patron card text layout</legend>
34
                            <legend>[% IF ( layout_id ) %][% t('Edit') %][% ELSE %][% t('Create') %][% END %] [% t('patron card text layout') %]</legend>
34
                            <ol>
35
                            <ol>
35
                                <li>
36
                                <li>
36
                                <fieldset>
37
                                <fieldset>
37
                                <legend>General settings</legend>
38
                                <legend>[% t('General settings') %]</legend>
38
                                <ol>
39
                                <ol>
39
                                <li>
40
                                <li>
40
                                    <label for="layout_name">Layout name: </label>
41
                                    <label for="layout_name">[% t('Layout name:') %] </label>
41
                                    <input type="text" name="layout_name" id="layout_name" size="20" value="[% layout_name %]" />
42
                                    <input type="text" name="layout_name" id="layout_name" size="20" value="[% layout_name %]" />
42
                                </li>
43
                                </li>
43
                                <li>
44
                                <li>
44
                                    <label for="units">Units: </label>
45
                                    <label for="units">[% t('Units:') %] </label>
45
                                    <select id="units" name="units">
46
                                    <select id="units" name="units">
46
                                    [% FOREACH unit IN units %]
47
                                    [% FOREACH unit IN units %]
47
                                        [% IF ( unit.selected ) %]
48
                                        [% IF ( unit.selected ) %]
Lines 55-87 Link Here
55
                                    </select>
56
                                    </select>
56
                                </li>
57
                                </li>
57
                                <li>
58
                                <li>
58
                                    <label for="page_side">Page side: </label>
59
                                    <label for="page_side">[% t('Page side:') %] </label>
59
                                    [% IF ( page_side ) %]
60
                                    [% IF ( page_side ) %]
60
                                    <input type="radio" name="page_side" id="page_side" value="F" />Front
61
                                    <input type="radio" name="page_side" id="page_side" value="F" />[% t('Front') %]
61
                                    <input type="radio" name="page_side" id="page_side" value="B" checked="checked" />Back
62
                                    <input type="radio" name="page_side" id="page_side" value="B" checked="checked" />[% t('Back') %]
62
                                    [% ELSE %]
63
                                    [% ELSE %]
63
                                    <input type="radio" name="page_side" id="page_side" value="F" checked="checked" />Front
64
                                    <input type="radio" name="page_side" id="page_side" value="F" checked="checked" />[% t('Front') %]
64
                                    <input type="radio" name="page_side" id="page_side" value="B" />Back
65
                                    <input type="radio" name="page_side" id="page_side" value="B" />[% t('Back') %]
65
                                    [% END %]
66
                                    [% END %]
66
                                </li>
67
                                </li>
67
                                <li>
68
                                <li>
68
                                    <label for="guide_box">Guide box:</label>
69
                                    <label for="guide_box">[% t('Guide box:') %]</label>
69
                                    [% IF ( guide_box ) %]
70
                                    [% IF ( guide_box ) %]
70
                                    <input type="radio" name="guide_box" id="guide_box" value="1" checked="checked" />On
71
                                    <input type="radio" name="guide_box" id="guide_box" value="1" checked="checked" />[% t('On') %]
71
                                    <input type="radio" name="guide_box" id="guide_box" value="0" />Off
72
                                    <input type="radio" name="guide_box" id="guide_box" value="0" />[% t('Off') %]
72
                                    [% ELSE %]
73
                                    [% ELSE %]
73
                                    <input type="radio" name="guide_box" id="guide_box" value="1" />On
74
                                    <input type="radio" name="guide_box" id="guide_box" value="1" />[% t('On') %]
74
                                    <input type="radio" name="guide_box" id="guide_box" value="0" checked="checked" />Off
75
                                    <input type="radio" name="guide_box" id="guide_box" value="0" checked="checked" />[% t('Off') %]
75
                                    [% END %]
76
                                    [% END %]
76
                                </li>
77
                                </li>
77
                                <li>
78
                                <li>
78
                                    <label for="guide_grid">Guide grid:</label>
79
                                    <label for="guide_grid">[% t('Guide grid:') %]</label>
79
                                    [% IF ( guide_grid ) %]
80
                                    [% IF ( guide_grid ) %]
80
                                    <input type="radio" name="guide_grid" id="guide_grid" value="1" checked="checked" />On
81
                                    <input type="radio" name="guide_grid" id="guide_grid" value="1" checked="checked" />[% t('On') %]
81
                                    <input type="radio" name="guide_grid" id="guide_grid" value="0" />Off
82
                                    <input type="radio" name="guide_grid" id="guide_grid" value="0" />[% t('Off') %]
82
                                    [% ELSE %]
83
                                    [% ELSE %]
83
                                    <input type="radio" name="guide_grid" id="guide_grid" value="1" />On
84
                                    <input type="radio" name="guide_grid" id="guide_grid" value="1" />[% t('On') %]
84
                                    <input type="radio" name="guide_grid" id="guide_grid" value="0" checked="checked" />Off
85
                                    <input type="radio" name="guide_grid" id="guide_grid" value="0" checked="checked" />[% t('Off') %]
85
                                    [% END %]
86
                                    [% END %]
86
                                </li>
87
                                </li>
87
                                </ol>
88
                                </ol>
Lines 89-111 Link Here
89
                                </li>
90
                                </li>
90
                                <li>
91
                                <li>
91
                                    <fieldset>
92
                                    <fieldset>
92
                                    <legend>Text fields</legend>
93
                                    <legend>[% t('Text fields') %]</legend>
93
                                    <ol>
94
                                    <ol>
94
                                        <li>
95
                                        <li>
95
                                            <fieldset>
96
                                            <fieldset>
96
                                            [% IF ( field_1 ) %]
97
                                            [% IF ( field_1 ) %]
97
                                            <legend><input type="checkbox" name="field_1_enable" id="field_1_enable" value="1" checked="checked" /> Field 1</legend>
98
                                            <legend><input type="checkbox" name="field_1_enable" id="field_1_enable" value="1" checked="checked" /> [% t('Field 1') %]</legend>
98
                                            [% ELSE %]
99
                                            [% ELSE %]
99
                                            <legend><input type="checkbox" name="field_1_enable" id="field_1_enable" value="1" /> Field 1</legend>
100
                                            <legend><input type="checkbox" name="field_1_enable" id="field_1_enable" value="1" /> [% t('Field 1') %]</legend>
100
                                            [% END %]
101
                                            [% END %]
101
                                            <div id="field_1_select" style="display: none;">
102
                                            <div id="field_1_select" style="display: none;">
102
                                            <ol>
103
                                            <ol>
103
                                            <li>
104
                                            <li>
104
                                                <label for="field_1_text">Text: </label>
105
                                                <label for="field_1_text">[% t('Text:') %] </label>
105
                                                <input type="text" name="field_1_text" id="field_1_text" size="60" value="[% field_1_text |html %]" />
106
                                                <input type="text" name="field_1_text" id="field_1_text" size="60" value="[% field_1_text |html %]" />
106
                                            </li>
107
                                            </li>
107
                                            <li>
108
                                            <li>
108
                                                <label for="field_1_font">Font: </label>
109
                                                <label for="field_1_font">[% t('Font:') %] </label>
109
                                                <select name="field_1_font" id="field_1_font">
110
                                                <select name="field_1_font" id="field_1_font">
110
                                                    [% FOREACH field_1_fon IN field_1_font %]
111
                                                    [% FOREACH field_1_fon IN field_1_font %]
111
                                                    [% IF ( field_1_fon.selected ) %]
112
                                                    [% IF ( field_1_fon.selected ) %]
Lines 117-128 Link Here
117
                                                </select>
118
                                                </select>
118
                                            </li>
119
                                            </li>
119
                                            <li>
120
                                            <li>
120
                                                <label for="field_1_font_size">Font size: </label>
121
                                                <label for="field_1_font_size">[% t('Font size:') %] </label>
121
                                                <input type="text" name="field_1_font_size" id="field_1_font_size" size="2" value="[% field_1_font_size |html %]" />
122
                                                <input type="text" name="field_1_font_size" id="field_1_font_size" size="2" value="[% field_1_font_size |html %]" />
122
                                                <span class="font_unit"> pt</span>
123
                                                <span class="font_unit"> [% t('pt') %]</span>
123
                                            </li>
124
                                            </li>
124
                                            <li>
125
                                            <li>
125
                                                <label for="field_1_text_alignment">Text alignment: </label>
126
                                                <label for="field_1_text_alignment">[% t('Text alignment:') %] </label>
126
                                                <select name="field_1_text_alignment" id="field_1_text_alignment">
127
                                                <select name="field_1_text_alignment" id="field_1_text_alignment">
127
                                                    [% FOREACH field_1_text_alignmen IN field_1_text_alignment %]
128
                                                    [% FOREACH field_1_text_alignmen IN field_1_text_alignment %]
128
                                                    [% IF ( field_1_text_alignmen.selected ) %]
129
                                                    [% IF ( field_1_text_alignmen.selected ) %]
Lines 134-144 Link Here
134
                                                </select>
135
                                                </select>
135
                                            </li>
136
                                            </li>
136
                                            <li>
137
                                            <li>
137
                                                <label for="field_1_llx">Lower left X coordinate: </label>
138
                                                <label for="field_1_llx">[% t('Lower left X coordinate:') %] </label>
138
                                                <input type="text" name="field_1_llx" id="field_1_llx" size="2" value="[% field_1_llx |html %]" />
139
                                                <input type="text" name="field_1_llx" id="field_1_llx" size="2" value="[% field_1_llx |html %]" />
139
                                            </li>
140
                                            </li>
140
                                            <li>
141
                                            <li>
141
                                                <label for="field_1_lly">Lower left Y coordinate: </label>
142
                                                <label for="field_1_lly">[% t('Lower left Y coordinate:') %] </label>
142
                                                <input type="text" name="field_1_lly" id="field_1_lly" size="2" value="[% field_1_lly |html %]" />
143
                                                <input type="text" name="field_1_lly" id="field_1_lly" size="2" value="[% field_1_lly |html %]" />
143
                                            </li>
144
                                            </li>
144
                                            </ol>
145
                                            </ol>
Lines 148-165 Link Here
148
                                        <li>
149
                                        <li>
149
                                            <fieldset>
150
                                            <fieldset>
150
                                            [% IF ( field_2 ) %]
151
                                            [% IF ( field_2 ) %]
151
                                            <legend><input type="checkbox" name="field_2_enable" id="field_2_enable" value="1" checked="checked"/> Field 2</legend>
152
                                            <legend><input type="checkbox" name="field_2_enable" id="field_2_enable" value="1" checked="checked" /> [% t('Field 2') %]</legend>
152
                                            [% ELSE %]
153
                                            [% ELSE %]
153
                                            <legend><input type="checkbox" name="field_2_enable" id="field_2_enable" value="1" /> Field 2</legend>
154
                                            <legend><input type="checkbox" name="field_2_enable" id="field_2_enable" value="1" /> [% t('Field 2') %]</legend>
154
                                            [% END %]
155
                                            [% END %]
155
                                            <div id="field_2_select" style="display: none;">
156
                                            <div id="field_2_select" style="display: none;">
156
                                            <ol>
157
                                            <ol>
157
                                            <li>
158
                                            <li>
158
                                                <label for="field_2_text">Text: </label>
159
                                                <label for="field_2_text">[% t('Text:') %] </label>
159
                                                <input type="text" name="field_2_text" id="field_2_text" size="60" value="[% field_2_text |html %]" />
160
                                                <input type="text" name="field_2_text" id="field_2_text" size="60" value="[% field_2_text |html %]" />
160
                                            </li>
161
                                            </li>
161
                                            <li>
162
                                            <li>
162
                                                <label for="field_2_font">Font: </label>
163
                                                <label for="field_2_font">[% t('Font:') %] </label>
163
                                                <select name="field_2_font" id="field_2_font">
164
                                                <select name="field_2_font" id="field_2_font">
164
                                                    [% FOREACH field_2_fon IN field_2_font %]
165
                                                    [% FOREACH field_2_fon IN field_2_font %]
165
                                                    [% IF ( field_2_fon.selected ) %]
166
                                                    [% IF ( field_2_fon.selected ) %]
Lines 171-182 Link Here
171
                                                </select>
172
                                                </select>
172
                                            </li>
173
                                            </li>
173
                                            <li>
174
                                            <li>
174
                                                <label for="field_2_font_size">Font size: </label>
175
                                                <label for="field_2_font_size">[% t('Font size:') %] </label>
175
                                                <input type="text" name="field_2_font_size" id="field_2_font_size" size="2" value="[% field_2_font_size |html %]" />
176
                                                <input type="text" name="field_2_font_size" id="field_2_font_size" size="2" value="[% field_2_font_size |html %]" />
176
                                                <span class="font_unit"> pt</span>
177
                                                <span class="font_unit"> [% t('pt') %]</span>
177
                                            </li>
178
                                            </li>
178
                                            <li>
179
                                            <li>
179
                                                <label for="field_2_text_alignment">Text alignment: </label>
180
                                                <label for="field_2_text_alignment">[% t('Text alignment:') %] </label>
180
                                                <select name="field_2_text_alignment" id="field_2_text_alignment">
181
                                                <select name="field_2_text_alignment" id="field_2_text_alignment">
181
                                                    [% FOREACH field_2_text_alignmen IN field_2_text_alignment %]
182
                                                    [% FOREACH field_2_text_alignmen IN field_2_text_alignment %]
182
                                                    [% IF ( field_2_text_alignmen.selected ) %]
183
                                                    [% IF ( field_2_text_alignmen.selected ) %]
Lines 188-198 Link Here
188
                                                </select>
189
                                                </select>
189
                                            </li>
190
                                            </li>
190
                                            <li>
191
                                            <li>
191
                                                <label for="field_2_llx">Lower left X coordinate: </label>
192
                                                <label for="field_2_llx">[% t('Lower left X coordinate:') %] </label>
192
                                                <input type="text" name="field_2_llx" id="field_2_llx" size="2" value="[% field_2_llx |html %]" />
193
                                                <input type="text" name="field_2_llx" id="field_2_llx" size="2" value="[% field_2_llx |html %]" />
193
                                            </li>
194
                                            </li>
194
                                            <li>
195
                                            <li>
195
                                                <label for="field_2_lly">Lower left Y coordinate: </label>
196
                                                <label for="field_2_lly">[% t('Lower left Y coordinate:') %] </label>
196
                                                <input type="text" name="field_2_lly" id="field_2_lly" size="2" value="[% field_2_lly |html %]" />
197
                                                <input type="text" name="field_2_lly" id="field_2_lly" size="2" value="[% field_2_lly |html %]" />
197
                                            </li>
198
                                            </li>
198
                                            </ol>
199
                                            </ol>
Lines 202-219 Link Here
202
                                        <li>
203
                                        <li>
203
                                            <fieldset>
204
                                            <fieldset>
204
                                            [% IF ( field_3 ) %]
205
                                            [% IF ( field_3 ) %]
205
                                            <legend><input type="checkbox" name="field_3_enable" id="field_3_enable" value="1" checked="checked"/> Field 3</legend>
206
                                            <legend><input type="checkbox" name="field_3_enable" id="field_3_enable" value="1" checked="checked" /> [% t('Field 3') %]</legend>
206
                                            [% ELSE %]
207
                                            [% ELSE %]
207
                                            <legend><input type="checkbox" name="field_3_enable" id="field_3_enable" value="0" /> Field 3</legend>
208
                                            <legend><input type="checkbox" name="field_3_enable" id="field_3_enable" value="0" /> [% t('Field 3') %]</legend>
208
                                            [% END %]
209
                                            [% END %]
209
                                            <div id="field_3_select" style="display: none;">
210
                                            <div id="field_3_select" style="display: none;">
210
                                            <ol>
211
                                            <ol>
211
                                            <li>
212
                                            <li>
212
                                                <label for="field_3_text">Text: </label>
213
                                                <label for="field_3_text">[% t('Text:') %] </label>
213
                                                <input type="text" name="field_3_text" id="field_3_text" size="60" value="[% field_3_text |html %]" />
214
                                                <input type="text" name="field_3_text" id="field_3_text" size="60" value="[% field_3_text |html %]" />
214
                                            </li>
215
                                            </li>
215
                                            <li>
216
                                            <li>
216
                                                <label for="field_3_font">Font: </label>
217
                                                <label for="field_3_font">[% t('Font:') %] </label>
217
                                                <select name="field_3_font" id="field_3_font">
218
                                                <select name="field_3_font" id="field_3_font">
218
                                                    [% FOREACH field_3_fon IN field_3_font %]
219
                                                    [% FOREACH field_3_fon IN field_3_font %]
219
                                                    [% IF ( field_3_fon.selected ) %]
220
                                                    [% IF ( field_3_fon.selected ) %]
Lines 225-236 Link Here
225
                                                </select>
226
                                                </select>
226
                                            </li>
227
                                            </li>
227
                                            <li>
228
                                            <li>
228
                                                <label for="field_3_font_size">Font size: </label>
229
                                                <label for="field_3_font_size">[% t('Font size:') %] </label>
229
                                                <input type="text" name="field_3_font_size" id="field_3_font_size" size="2" value="[% field_3_font_size |html %]" />
230
                                                <input type="text" name="field_3_font_size" id="field_3_font_size" size="2" value="[% field_3_font_size |html %]" />
230
                                                <span class="font_unit"> pt</span>
231
                                                <span class="font_unit"> [% t('pt') %]</span>
231
                                            </li>
232
                                            </li>
232
                                            <li>
233
                                            <li>
233
                                                <label for="field_3_text_alignment">Text alignment: </label>
234
                                                <label for="field_3_text_alignment">[% t('Text alignment:') %] </label>
234
                                                <select name="field_3_text_alignment" id="field_3_text_alignment">
235
                                                <select name="field_3_text_alignment" id="field_3_text_alignment">
235
                                                    [% FOREACH field_3_text_alignmen IN field_3_text_alignment %]
236
                                                    [% FOREACH field_3_text_alignmen IN field_3_text_alignment %]
236
                                                    [% IF ( field_3_text_alignmen.selected ) %]
237
                                                    [% IF ( field_3_text_alignmen.selected ) %]
Lines 242-252 Link Here
242
                                                </select>
243
                                                </select>
243
                                            </li>
244
                                            </li>
244
                                            <li>
245
                                            <li>
245
                                                <label for="field_3_llx">Lower left X coordinate: </label>
246
                                                <label for="field_3_llx">[% t('Lower left X coordinate:') %] </label>
246
                                                <input type="text" name="field_3_llx" id="field_3_llx" size="2" value="[% field_3_llx |html %]" />
247
                                                <input type="text" name="field_3_llx" id="field_3_llx" size="2" value="[% field_3_llx |html %]" />
247
                                            </li>
248
                                            </li>
248
                                            <li>
249
                                            <li>
249
                                                <label for="field_3_lly">Lower left Y coordinate: </label>
250
                                                <label for="field_3_lly">[% t('Lower left Y coordinate:') %] </label>
250
                                                <input type="text" name="field_3_lly" id="field_3_lly" size="2" value="[% field_3_lly |html %]" />
251
                                                <input type="text" name="field_3_lly" id="field_3_lly" size="2" value="[% field_3_lly |html %]" />
251
                                            </li>
252
                                            </li>
252
                                            </ol>
253
                                            </ol>
Lines 261-267 Link Here
261
                </div>
262
                </div>
262
                <div class="yui-g">
263
                <div class="yui-g">
263
                    <fieldset class="rows">
264
                    <fieldset class="rows">
264
                    <legend>[% IF ( layout_id ) %]Edit[% ELSE %]Create[% END %] patron card graphic layout</legend>
265
                    <legend>[% IF ( layout_id ) %][% t('Edit') %][% ELSE %][% t('Create') %][% END %] [% t('patron card graphic layout') %]</legend>
265
                    <ol>
266
                    <ol>
266
<!--
267
<!--
267
                            <li>
268
                            <li>
Lines 277-286 Link Here
277
-->
278
-->
278
                        <li>
279
                        <li>
279
                            <fieldset>
280
                            <fieldset>
280
                                <legend>Barcode</legend>
281
                                <legend>[% t('Barcode') %]</legend>
281
                                <ol>
282
                                <ol>
282
                                <li>
283
                                <li>
283
                                    <label for="barcode_print">Print card number as barcode: </label>
284
                                    <label for="barcode_print">[% t('Print card number as barcode:') %] </label>
284
                                    [% IF ( barcode_print ) %]
285
                                    [% IF ( barcode_print ) %]
285
                                    <input type="checkbox" name="barcode_print" id="barcode_print" value="1" checked="checked" />
286
                                    <input type="checkbox" name="barcode_print" id="barcode_print" value="1" checked="checked" />
286
                                    [% ELSE %]
287
                                    [% ELSE %]
Lines 291-313 Link Here
291
                                <div id="barcode_param" style="display: none;">
292
                                <div id="barcode_param" style="display: none;">
292
                                <ol>
293
                                <ol>
293
                                <li>
294
                                <li>
294
                                    <label for="barcode_llx">Lower left X coordinate: </label>
295
                                    <label for="barcode_llx">[% t('Lower left X coordinate:') %] </label>
295
                                    <input type="text" name="barcode_llx" id="barcode_llx" size="2" value="[% barcode_llx |html %]" />
296
                                    <input type="text" name="barcode_llx" id="barcode_llx" size="2" value="[% barcode_llx |html %]" />
296
                                </li>
297
                                </li>
297
                                <li>
298
                                <li>
298
                                    <label for="barcode_lly">Lower left Y coordinate: </label>
299
                                    <label for="barcode_lly">[% t('Lower left Y coordinate:') %] </label>
299
                                    <input type="text" name="barcode_lly" id="barcode_lly" size="2" value="[% barcode_lly |html %]" />
300
                                    <input type="text" name="barcode_lly" id="barcode_lly" size="2" value="[% barcode_lly |html %]" />
300
                                </li>
301
                                </li>
301
                                <li>
302
                                <li>
302
                                    <label for="barcode_height_scale">Scale height (relative to card): </label>
303
                                    <label for="barcode_height_scale">[% t('Scale height (relative to card):') %] </label>
303
                                    <input type="text" name="barcode_height_scale" id="barcode_height_scale" size="2" value="[% barcode_height_scale |html %]" />
304
                                    <input type="text" name="barcode_height_scale" id="barcode_height_scale" size="2" value="[% barcode_height_scale |html %]" />
304
                                </li>
305
                                </li>
305
                                <li>
306
                                <li>
306
                                    <label for="barcode_width_scale">Scale width (relative to card): </label>
307
                                    <label for="barcode_width_scale">[% t('Scale width (relative to card):') %] </label>
307
                                    <input type="text" name="barcode_width_scale" id="barcode_width_scale" size="2" value="[% barcode_width_scale |html %]" />
308
                                    <input type="text" name="barcode_width_scale" id="barcode_width_scale" size="2" value="[% barcode_width_scale |html %]" />
308
                                </li>
309
                                </li>
309
                                <li>
310
                                <li>
310
                                    <label for="barcode_type">Barcode type: </label>
311
                                    <label for="barcode_type">[% t('Barcode type:') %] </label>
311
                                    <select name="barcode_type" id="barcode_type">
312
                                    <select name="barcode_type" id="barcode_type">
312
                                        [% FOREACH barcode_typ IN barcode_type %]
313
                                        [% FOREACH barcode_typ IN barcode_type %]
313
                                        [% IF ( barcode_typ.selected ) %]
314
                                        [% IF ( barcode_typ.selected ) %]
Lines 319-325 Link Here
319
                                    </select>
320
                                    </select>
320
                                </li>
321
                                </li>
321
                                <li>
322
                                <li>
322
                                    <label for="barcode_text_print">Print card number as text under barcode: </label>
323
                                    <label for="barcode_text_print">[% t('Print card number as text under barcode:') %] </label>
323
                                    [% IF ( barcode_text_print ) %]
324
                                    [% IF ( barcode_text_print ) %]
324
                                    <input type="checkbox" name="barcode_text_print" id="barcode_text_print" value="1" checked="checked" />
325
                                    <input type="checkbox" name="barcode_text_print" id="barcode_text_print" value="1" checked="checked" />
325
                                    [% ELSE %]
326
                                    [% ELSE %]
Lines 332-345 Link Here
332
                        </li>
333
                        </li>
333
                        <li>
334
                        <li>
334
                            <fieldset>
335
                            <fieldset>
335
                            <legend>Images</legend>
336
                            <legend>[% t('Images') %]</legend>
336
                                <ol>
337
                                <ol>
337
                                <li>
338
                                <li>
338
                                    <fieldset>
339
                                    <fieldset>
339
                                    <legend>Image 1</legend>
340
                                    <legend>[% t('Image 1') %]</legend>
340
                                    <ol>
341
                                    <ol>
341
                                    <li>
342
                                    <li>
342
                                        <label for="image_1_image_source">Image source: </label>
343
                                        <label for="image_1_image_source">[% t('Image source:') %] </label>
343
                                        <select name="image_1_image_source" id="image_1_image_source">
344
                                        <select name="image_1_image_source" id="image_1_image_source">
344
                                            [% FOREACH image_1_image_sourc IN image_1_image_source %]
345
                                            [% FOREACH image_1_image_sourc IN image_1_image_source %]
345
                                            [% IF ( image_1_image_sourc.selected ) %]
346
                                            [% IF ( image_1_image_sourc.selected ) %]
Lines 354-360 Link Here
354
                                    <div id="image_1_image_name" style="display: none;">
355
                                    <div id="image_1_image_name" style="display: none;">
355
                                    <ol>
356
                                    <ol>
356
                                    <li>
357
                                    <li>
357
                                        <label for="image_1_image_name">Image: </label>
358
                                        <label for="image_1_image_name">[% t('Image:') %] </label>
358
                                        <select name="image_1_image_name" id="image_1_image_name">
359
                                        <select name="image_1_image_name" id="image_1_image_name">
359
                                            [% FOREACH image_1_image_nam IN image_1_image_name %]
360
                                            [% FOREACH image_1_image_nam IN image_1_image_name %]
360
                                            [% IF ( image_1_image_nam.selected ) %]
361
                                            [% IF ( image_1_image_nam.selected ) %]
Lines 370-384 Link Here
370
                                    <div id="image_1_image_metrics" style="display: none;">
371
                                    <div id="image_1_image_metrics" style="display: none;">
371
                                    <ol>
372
                                    <ol>
372
                                    <li>
373
                                    <li>
373
                                        <label for="image_1_Dx">Display height: </label>
374
                                        <label for="image_1_Dx">[% t('Display height:') %] </label>
374
                                        <input type="text" name="image_1_Dx" id="image_1_Dx" size="2" value="[% image_1_Dx |html %]" />
375
                                        <input type="text" name="image_1_Dx" id="image_1_Dx" size="2" value="[% image_1_Dx |html %]" />
375
                                    </li>
376
                                    </li>
376
                                    <li>
377
                                    <li>
377
                                        <label for="image_1_Tx">Lower left X coordinate: </label>
378
                                        <label for="image_1_Tx">[% t('Lower left X coordinate:') %] </label>
378
                                        <input type="text" name="image_1_Tx" id="image_1_Tx" size="2" value="[% image_1_Tx |html %]" />
379
                                        <input type="text" name="image_1_Tx" id="image_1_Tx" size="2" value="[% image_1_Tx |html %]" />
379
                                    </li>
380
                                    </li>
380
                                    <li>
381
                                    <li>
381
                                        <label for="image_1_Ty">Lower left Y coordinate: </label>
382
                                        <label for="image_1_Ty">[% t('Lower left Y coordinate:') %] </label>
382
                                        <input type="text" name="image_1_Ty" id="image_1_Ty" size="2" value="[% image_1_Ty |html %]" />
383
                                        <input type="text" name="image_1_Ty" id="image_1_Ty" size="2" value="[% image_1_Ty |html %]" />
383
                                    </li>
384
                                    </li>
384
                                    </ol>
385
                                    </ol>
Lines 392-401 Link Here
392
                                </li>
393
                                </li>
393
                                <li>
394
                                <li>
394
                                    <fieldset>
395
                                    <fieldset>
395
                                    <legend>Image 2</legend>
396
                                    <legend>[% t('Image 2') %]</legend>
396
                                    <ol>
397
                                    <ol>
397
                                    <li>
398
                                    <li>
398
                                        <label for="image_2_image_source">Image source: </label>
399
                                        <label for="image_2_image_source">[% t('Image source:') %] </label>
399
                                        <select name="image_2_image_source" id="image_2_image_source">
400
                                        <select name="image_2_image_source" id="image_2_image_source">
400
                                            [% FOREACH image_2_image_sourc IN image_2_image_source %]
401
                                            [% FOREACH image_2_image_sourc IN image_2_image_source %]
401
                                            [% IF ( image_2_image_sourc.selected ) %]
402
                                            [% IF ( image_2_image_sourc.selected ) %]
Lines 410-416 Link Here
410
                                    <div id="image_2_image_name" style="display: none;">
411
                                    <div id="image_2_image_name" style="display: none;">
411
                                    <ol>
412
                                    <ol>
412
                                    <li>
413
                                    <li>
413
                                        <label for="image_2_image_name">Image: </label>
414
                                        <label for="image_2_image_name">[% t('Image:') %] </label>
414
                                        <select name="image_2_image_name" id="image_2_image_name">
415
                                        <select name="image_2_image_name" id="image_2_image_name">
415
                                            [% FOREACH image_2_image_nam IN image_2_image_name %]
416
                                            [% FOREACH image_2_image_nam IN image_2_image_name %]
416
                                            [% IF ( image_2_image_nam.selected ) %]
417
                                            [% IF ( image_2_image_nam.selected ) %]
Lines 426-440 Link Here
426
                                    <div id="image_2_image_metrics" style="display: none;">
427
                                    <div id="image_2_image_metrics" style="display: none;">
427
                                    <ol>
428
                                    <ol>
428
                                    <li>
429
                                    <li>
429
                                        <label for="image_2_Dx">Display height: </label>
430
                                        <label for="image_2_Dx">[% t('Display height:') %] </label>
430
                                        <input type="text" name="image_2_Dx" id="image_2_Dx" size="2" value="[% image_2_Dx |html %]" />
431
                                        <input type="text" name="image_2_Dx" id="image_2_Dx" size="2" value="[% image_2_Dx |html %]" />
431
                                    </li>
432
                                    </li>
432
                                    <li>
433
                                    <li>
433
                                        <label for="image_2_Tx">Lower left X coordinate: </label>
434
                                        <label for="image_2_Tx">[% t('Lower left X coordinate:') %] </label>
434
                                        <input type="text" name="image_2_Tx" id="image_2_Tx" size="2" value="[% image_2_Tx |html %]" />
435
                                        <input type="text" name="image_2_Tx" id="image_2_Tx" size="2" value="[% image_2_Tx |html %]" />
435
                                    </li>
436
                                    </li>
436
                                    <li>
437
                                    <li>
437
                                        <label for="image_2_Ty">Lower left Y coordinate: </label>
438
                                        <label for="image_2_Ty">[% t('Lower left Y coordinate:') %] </label>
438
                                        <input type="text" name="image_2_Ty" id="image_2_Ty" size="2" value="[% image_2_Ty |html %]" />
439
                                        <input type="text" name="image_2_Ty" id="image_2_Ty" size="2" value="[% image_2_Ty |html %]" />
439
                                    </li>
440
                                    </li>
440
                                    </ol>
441
                                    </ol>
Lines 455-461 Link Here
455
                </div>
456
                </div>
456
                    <fieldset class="action">
457
                    <fieldset class="action">
457
                        <input class="btn btn-default btn-default" type="submit" value="Save" />
458
                        <input class="btn btn-default btn-default" type="submit" value="Save" />
458
                        <a class="cancel" href="/cgi-bin/koha/patroncards/manage.pl?card_element=layout">Cancel</a>
459
                        <a class="cancel" href="/cgi-bin/koha/patroncards/manage.pl?card_element=layout">[% t('Cancel') %]</a>
459
                        <input type="hidden" name="op" value="save" />
460
                        <input type="hidden" name="op" value="save" />
460
                        <input type="hidden" name="layout_id" value="[% layout_id %]" />
461
                        <input type="hidden" name="layout_id" value="[% layout_id %]" />
461
                    </fieldset>
462
                    </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-profile.tt (-22 / +23 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
    [% INCLUDE 'doc-head-open.inc' %]
3
    [% INCLUDE 'doc-head-open.inc' %]
3
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Profiles &rsaquo; [% IF ( profile_id ) %]Edit ([% profile_id %])[% ELSE %]New[% END%]</title>
4
    <title>[% t('Koha › Tools › Patron card creator › Profiles ›') %] [% IF ( profile_id ) %][% t('Edit (') %][% profile_id %])[% ELSE %][% t('New') %][% END%]</title>
4
    [% INCLUDE 'doc-head-close.inc' %]
5
    [% INCLUDE 'doc-head-close.inc' %]
5
</head>
6
</head>
6
7
Lines 8-18 Link Here
8
    [% INCLUDE 'header.inc' %]
9
    [% INCLUDE 'header.inc' %]
9
    [% INCLUDE 'cat-search.inc' %]
10
    [% INCLUDE 'cat-search.inc' %]
10
    <div id="breadcrumbs">
11
    <div id="breadcrumbs">
11
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
12
        <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
12
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
13
        <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
13
        <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a> &rsaquo;
14
        <a href="/cgi-bin/koha/patroncards/home.pl">[% t('Patron card creator') %]</a> ›
14
        <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile">Profiles</a> &rsaquo;
15
        <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile">[% t('Profiles') %]</a> ›
15
        [% IF ( profile_id ) %]Edit ([% profile_id %])[% ELSE %]New[% END%]
16
        [% IF ( profile_id ) %][% t('Edit (') %][% profile_id %])[% ELSE %][% t('New') %][% END%]
16
    </div>
17
    </div>
17
    <div id="doc3" class="yui-t2">
18
    <div id="doc3" class="yui-t2">
18
        <div id="bd">
19
        <div id="bd">
Lines 25-60 Link Here
25
                        </div>
26
                        </div>
26
                    </div>
27
                    </div>
27
                        <div class="yui-g">
28
                        <div class="yui-g">
28
                            <h3>[% IF (profile_id) %]Edit[% ELSE %]Create[% END%] printer profile[% IF (profile_id) %] ([% profile_id %])[% END %]</h3>
29
                            <h3>[% IF (profile_id) %][% t('Edit') %][% ELSE %][% t('Create') %][% END%] [% t('printer profile') %][% IF (profile_id) %] ([% profile_id %])[% END %]</h3>
29
                                <div class="yui-g first">
30
                                <div class="yui-g first">
30
                                    <form name="input" action="/cgi-bin/koha/patroncards/edit-profile.pl" method="get">
31
                                    <form name="input" action="/cgi-bin/koha/patroncards/edit-profile.pl" method="get">
31
                                    <fieldset class="rows"><legend>Profile settings</legend>
32
                                    <fieldset class="rows"><legend>[% t('Profile settings') %]</legend>
32
                                        <ol>
33
                                        <ol>
33
                                            <li>
34
                                            <li>
34
                                                [% IF ( profile_id ) %]
35
                                                [% IF ( profile_id ) %]
35
                                                 <span class="label">Printer name:</span>[% printer_name %]
36
                                                 <span class="label">[% t('Printer name:') %]</span>[% printer_name %]
36
                                                <input type="hidden" name="printer_name" value="[% printer_name %]" />
37
                                                <input type="hidden" name="printer_name" value="[% printer_name %]" />
37
                                                [% ELSE %]
38
                                                [% ELSE %]
38
                                                <label for="printer_name">Printer name:</label><input type="text"  size="20" name="printer_name" id="printer_name" />
39
                                                <label for="printer_name">[% t('Printer name:') %]</label><input type="text" size="20" name="printer_name" id="printer_name" />
39
                                                [% END %]
40
                                                [% END %]
40
                                            </li>
41
                                            </li>
41
                                            <li>
42
                                            <li>
42
                                                [% IF ( profile_id ) %]
43
                                                [% IF ( profile_id ) %]
43
                                                <span class="label">Paper bin:</span> [% paper_bin %]
44
                                                <span class="label">[% t('Paper bin:') %]</span> [% paper_bin %]
44
                                                <input type="hidden" name="paper_bin" value="[% paper_bin %]" />
45
                                                <input type="hidden" name="paper_bin" value="[% paper_bin %]" />
45
                                                [% ELSE %]
46
                                                [% ELSE %]
46
                                                <label for="paper_bin">Paper bin:</label><input type="text"  size="20" name="paper_bin" id="paper_bin" />
47
                                                <label for="paper_bin">[% t('Paper bin:') %]</label><input type="text" size="20" name="paper_bin" id="paper_bin" />
47
                                                [% END %]
48
                                                [% END %]
48
                                            </li>
49
                                            </li>
49
                                            <li>
50
                                            <li>
50
                                                [% IF ( label_template ) %]
51
                                                [% IF ( label_template ) %]
51
                                                 <label for="template_name">Template name:</label> [% label_template %]
52
                                                 <label for="template_name">[% t('Template name:') %]</label> [% label_template %]
52
                                                [% ELSE %]
53
                                                [% ELSE %]
53
                                                 <span class="label">Template name:</span> Profile unassigned
54
                                                 <span class="label">[% t('Template name:') %]</span> [% t('Profile unassigned') %]
54
                                                [% END %]
55
                                                [% END %]
55
                                            </li>
56
                                            </li>
56
                                            <li>
57
                                            <li>
57
                                                <label for="units">Units: </label>
58
                                                <label for="units">[% t('Units:') %] </label>
58
                                                <select id="units" name="units">
59
                                                <select id="units" name="units">
59
                                                    [% FOREACH unit IN units %]
60
                                                    [% FOREACH unit IN units %]
60
                                                    [% IF ( unit.selected ) %]
61
                                                    [% IF ( unit.selected ) %]
Lines 70-99 Link Here
70
                                         </ol>
71
                                         </ol>
71
                                        </fieldset>
72
                                        </fieldset>
72
73
73
                                        <fieldset class="rows"><legend>Offset:</legend>
74
                                        <fieldset class="rows"><legend>[% t('Offset:') %]</legend>
74
                                        <ol>
75
                                        <ol>
75
                                            <li>
76
                                            <li>
76
                                                <label for="offset_horz">Horizontal: </label><input type="text"  size="4" name="offset_horz" id="offset_horz" value="[% offset_horz %]" />
77
                                                <label for="offset_horz">[% t('Horizontal:') %] </label><input type="text" size="4" name="offset_horz" id="offset_horz" value="[% offset_horz %]" />
77
                                            </li>
78
                                            </li>
78
                                            <li>
79
                                            <li>
79
                                                <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert %]" />
80
                                                <label for="offset_vert">[% t('Vertical:') %] </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert %]" />
80
                                            </li>
81
                                            </li>
81
                                         </ol>
82
                                         </ol>
82
                                        </fieldset>
83
                                        </fieldset>
83
84
84
                                        <fieldset class="rows"><legend>Creep:</legend>
85
                                        <fieldset class="rows"><legend>[% t('Creep:') %]</legend>
85
                                        <ol>
86
                                        <ol>
86
                                            <li>
87
                                            <li>
87
                                                <label for="creep_horz">Horizontal: </label><input type="text"  size="4" name="creep_horz" id="creep_horz" value="[% creep_horz %]" />
88
                                                <label for="creep_horz">[% t('Horizontal:') %] </label><input type="text" size="4" name="creep_horz" id="creep_horz" value="[% creep_horz %]" />
88
                                            </li>
89
                                            </li>
89
                                            <li>
90
                                            <li>
90
                                                <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert %]" />
91
                                                <label for="creep_vert">[% t('Vertical:') %] </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert %]" />
91
                                            </li>
92
                                            </li>
92
                                        </ol>
93
                                        </ol>
93
                                    </fieldset>
94
                                    </fieldset>
94
                                    <fieldset class="action">
95
                                    <fieldset class="action">
95
                                        <input type="submit" value="Save" />
96
                                        <input type="submit" value="Save" />
96
                                        <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile" class="cancel">Cancel</a>
97
                                        <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile" class="cancel">[% t('Cancel') %]</a>
97
                                        <input type="hidden" name="op" value="save" />
98
                                        <input type="hidden" name="op" value="save" />
98
                                        <input type="hidden" name="profile_id" value="[% profile_id %]" />
99
                                        <input type="hidden" name="profile_id" value="[% profile_id %]" />
99
                                    </fieldset>
100
                                    </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-template.tt (-29 / +30 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
    [% INCLUDE 'doc-head-open.inc' %]
4
    [% INCLUDE 'doc-head-open.inc' %]
4
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Templates &rsaquo; [% IF (template_id) %]Edit ([% template_id %])[% ELSE %]New[% END %]</title>
5
    <title>[% t('Koha › Tools › Patron card creator › Templates ›') %] [% IF (template_id) %][% t('Edit (') %][% template_id %])[% ELSE %][% t('New') %][% END %]</title>
5
    [% INCLUDE 'doc-head-close.inc' %]
6
    [% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
Lines 9-19 Link Here
9
    [% INCLUDE 'header.inc' %]
10
    [% INCLUDE 'header.inc' %]
10
    [% INCLUDE 'cat-search.inc' %]
11
    [% INCLUDE 'cat-search.inc' %]
11
    <div id="breadcrumbs">
12
    <div id="breadcrumbs">
12
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
13
        <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
13
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
14
        <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
14
        <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a> &rsaquo;
15
        <a href="/cgi-bin/koha/patroncards/home.pl">[% t('Patron card creator') %]</a> ›
15
        <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=template">Templates</a> &rsaquo;
16
        <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=template">[% t('Templates') %]</a> ›
16
        [% IF (template_id) %]Edit ([% template_id %])[% ELSE %]New[% END %]
17
        [% IF (template_id) %][% t('Edit (') %][% template_id %])[% ELSE %][% t('New') %][% END %]
17
    </div>
18
    </div>
18
    <div id="doc3" class="yui-t2">
19
    <div id="doc3" class="yui-t2">
19
        <div id="bd">
20
        <div id="bd">
Lines 27-49 Link Here
27
                    </div>
28
                    </div>
28
                    <form name="input" action="/cgi-bin/koha/patroncards/edit-template.pl" method="get">
29
                    <form name="input" action="/cgi-bin/koha/patroncards/edit-template.pl" method="get">
29
                    <div class="yui-g">
30
                    <div class="yui-g">
30
                        <h3>[% IF (template_id) %]Edit[% ELSE %]Create[% END %] patron card template[% IF (template_id) %] ([% template_id %])[% END %]</h3>
31
                        <h3>[% IF (template_id) %][% t('Edit') %][% ELSE %][% t('Create') %][% END %] [% t('patron card template') %][% IF (template_id) %] ([% template_id %])[% END %]</h3>
31
                        <div class="yui-u first">
32
                        <div class="yui-u first">
32
                            <fieldset class="rows">
33
                            <fieldset class="rows">
33
                                <ol>
34
                                <ol>
34
                                    <li>
35
                                    <li>
35
                                        <span class="label">Template ID:</span>[% IF ( template_id ) %][% template_id %][% ELSE %]N/A[% END %]
36
                                        <span class="label">[% t('Template ID:') %]</span>[% IF ( template_id ) %][% template_id %][% ELSE %][% t('N/A') %][% END %]
36
                                    </li>
37
                                    </li>
37
                                    <li>
38
                                    <li>
38
                                        <label for="template_code">Template code:</label>
39
                                        <label for="template_code">[% t('Template code:') %]</label>
39
                                        <input type="text" size="30" maxlength="43" name="template_code" id="template_code" value="[% template_code %]" />
40
                                        <input type="text" size="30" maxlength="43" name="template_code" id="template_code" value="[% template_code %]" />
40
                                    </li>
41
                                    </li>
41
                                    <li>
42
                                    <li>
42
                                        <label for="template_desc">Template description:</label>
43
                                        <label for="template_desc">[% t('Template description:') %]</label>
43
                                        <textarea cols="30" rows="3" id="template_desc" name="template_desc">[% template_desc %]</textarea>
44
                                        <textarea cols="30" rows="3" id="template_desc" name="template_desc">[% template_desc %]</textarea>
44
                                    </li>
45
                                    </li>
45
                                    <li>
46
                                    <li>
46
                                        <label for="units">Units:</label>
47
                                        <label for="units">[% t('Units:') %]</label>
47
                                        <select id="units" name="units">
48
                                        <select id="units" name="units">
48
                                        [% FOREACH unit IN units %]
49
                                        [% FOREACH unit IN units %]
49
50
Lines 55-69 Link Here
55
56
56
                                            [% SWITCH unit.type %]
57
                                            [% SWITCH unit.type %]
57
                                            [%   CASE 'POINT' %]
58
                                            [%   CASE 'POINT' %]
58
                                            <span>PostScript Points</span>
59
                                            <span>[% t('PostScript Points') %]</span>
59
                                            [%   CASE 'AGATE' %]
60
                                            [%   CASE 'AGATE' %]
60
                                            <span>Adobe Agates</span>
61
                                            <span>[% t('Adobe Agates') %]</span>
61
                                            [%   CASE 'INCH' %]
62
                                            [%   CASE 'INCH' %]
62
                                            <span>US Inches</span>
63
                                            <span>[% t('US Inches') %]</span>
63
                                            [%   CASE 'MM' %]
64
                                            [%   CASE 'MM' %]
64
                                            <span>SI Millimeters</span>
65
                                            <span>[% t('SI Millimeters') %]</span>
65
                                            [%   CASE 'CM' %]
66
                                            [%   CASE 'CM' %]
66
                                            <span>SI Centimeters</span>
67
                                            <span>[% t('SI Centimeters') %]</span>
67
                                            [% END %]
68
                                            [% END %]
68
69
69
                                            </option>
70
                                            </option>
Lines 71-89 Link Here
71
                                        </select>
72
                                        </select>
72
                                    </li>
73
                                    </li>
73
                                    <li>
74
                                    <li>
74
                                        <label for="page_height">Page height:</label>
75
                                        <label for="page_height">[% t('Page height:') %]</label>
75
                                        <input type="text" size="4" name="page_height" id="page_height" value="[% page_height %]" />
76
                                        <input type="text" size="4" name="page_height" id="page_height" value="[% page_height %]" />
76
                                    </li>
77
                                    </li>
77
                                    <li>
78
                                    <li>
78
                                        <label for="page_width">Page width:</label>
79
                                        <label for="page_width">[% t('Page width:') %]</label>
79
                                        <input type="text" size="4" name="page_width" id="page_width" value="[% page_width %]" />
80
                                        <input type="text" size="4" name="page_width" id="page_width" value="[% page_width %]" />
80
                                    </li>
81
                                    </li>
81
                                    <li>
82
                                    <li>
82
                                        <label for="card_height">Card height:</label>
83
                                        <label for="card_height">[% t('Card height:') %]</label>
83
                                        <input type="text" size="4" name="card_height" id="card_height" value="[% card_height %]" />
84
                                        <input type="text" size="4" name="card_height" id="card_height" value="[% card_height %]" />
84
                                    </li>
85
                                    </li>
85
                                    <li>
86
                                    <li>
86
                                        <label for="card_width">Card width:</label>
87
                                        <label for="card_width">[% t('Card width:') %]</label>
87
                                        <input type="text" size="4" name="card_width" id="card_width" value="[% card_width %]" />
88
                                        <input type="text" size="4" name="card_width" id="card_width" value="[% card_width %]" />
88
                                    </li>
89
                                    </li>
89
90
Lines 94-125 Link Here
94
                        <div class="yui-u">
95
                        <div class="yui-u">
95
                            <fieldset class="rows">
96
                            <fieldset class="rows">
96
                                <ol><li>
97
                                <ol><li>
97
                                    <label for="top_margin">Top page margin:</label>
98
                                    <label for="top_margin">[% t('Top page margin:') %]</label>
98
                                    <input type="text" size="4" name="top_margin" id="top_margin" value="[% top_margin %]" />
99
                                    <input type="text" size="4" name="top_margin" id="top_margin" value="[% top_margin %]" />
99
                                </li>
100
                                </li>
100
                                <li>
101
                                <li>
101
                                    <label for="left_margin">Left page margin:</label>
102
                                    <label for="left_margin">[% t('Left page margin:') %]</label>
102
                                    <input type="text" size="4" name="left_margin" id="left_margin" value="[% left_margin %]" />
103
                                    <input type="text" size="4" name="left_margin" id="left_margin" value="[% left_margin %]" />
103
                                </li>
104
                                </li>
104
                                    <li>
105
                                    <li>
105
                                        <label for="cols">Number of columns:</label>
106
                                        <label for="cols">[% t('Number of columns:') %]</label>
106
                                        <input type="text" size="4" name="cols" id="cols" value="[% cols %]" />
107
                                        <input type="text" size="4" name="cols" id="cols" value="[% cols %]" />
107
                                    </li>
108
                                    </li>
108
                                    <li>
109
                                    <li>
109
                                        <label for="rows">Number of rows:</label>
110
                                        <label for="rows">[% t('Number of rows:') %]</label>
110
                                        <input type="text" size="4" name="rows" id="rows" value="[% rows %]" />
111
                                        <input type="text" size="4" name="rows" id="rows" value="[% rows %]" />
111
                                    </li>
112
                                    </li>
112
                                    <li>
113
                                    <li>
113
                                        <label for="col_gap">Gap between columns:</label>
114
                                        <label for="col_gap">[% t('Gap between columns:') %]</label>
114
                                        <input type="text" size="4" name="col_gap" id="col_gap" value="[% col_gap %]" />
115
                                        <input type="text" size="4" name="col_gap" id="col_gap" value="[% col_gap %]" />
115
                                    </li>
116
                                    </li>
116
                                    <li>
117
                                    <li>
117
                                        <label for="row_gap">Gap between rows:</label>
118
                                        <label for="row_gap">[% t('Gap between rows:') %]</label>
118
                                        <input type="text" size="4" name="row_gap" id="row_gap" value="[% row_gap %]" />
119
                                        <input type="text" size="4" name="row_gap" id="row_gap" value="[% row_gap %]" />
119
                                    </li>
120
                                    </li>
120
121
121
                                    <li>
122
                                    <li>
122
                                        <label for="profile_id">Profile:</label>
123
                                        <label for="profile_id">[% t('Profile:') %]</label>
123
                                        [% IF ( profile_list ) %]
124
                                        [% IF ( profile_list ) %]
124
                                        <select id="profile_id" name="profile_id">
125
                                        <select id="profile_id" name="profile_id">
125
                                        [% FOREACH profile_lis IN profile_list %]
126
                                        [% FOREACH profile_lis IN profile_list %]
Lines 133-139 Link Here
133
                                        [% END %]
134
                                        [% END %]
134
                                        </select>
135
                                        </select>
135
                                        [% ELSE %]
136
                                        [% ELSE %]
136
                                        <a href="/cgi-bin/koha/patroncards/edit-profile.pl?op=new">Click here to define a printer profile.</a>
137
                                        <a href="/cgi-bin/koha/patroncards/edit-profile.pl?op=new">[% t('Click here to define a printer profile.') %]</a>
137
                                        [% END %]
138
                                        [% END %]
138
                                    </li>
139
                                    </li>
139
                                </ol>
140
                                </ol>
Lines 143-149 Link Here
143
                    <div class="yui-g">
144
                    <div class="yui-g">
144
                        <fieldset class="action">
145
                        <fieldset class="action">
145
                            <input type="submit" class="submit" value="Save" />
146
                            <input type="submit" class="submit" value="Save" />
146
                            <a class="cancel" href="/cgi-bin/koha/patroncards/manage.pl?card_element=template">Cancel</a>
147
                            <a class="cancel" href="/cgi-bin/koha/patroncards/manage.pl?card_element=template">[% t('Cancel') %]</a>
147
                            <input type="hidden" name="op" value="save" />
148
                            <input type="hidden" name="op" value="save" />
148
                            [% IF ( template_id ) %]
149
                            [% IF ( template_id ) %]
149
                            <input type="hidden" name="template_id" value="[% template_id %]" />
150
                            <input type="hidden" name="template_id" value="[% template_id %]" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/home.tt (-4 / +5 lines)
Lines 1-14 Link Here
1
[% PROCESS 'i18n.inc' %]
1
    [% INCLUDE 'doc-head-open.inc' %]
2
    [% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator</title>
3
    <title>[% t('Koha › Tools › Patron card creator') %]</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
4
    [% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
5
<body id="pcard_home" class="tools pcard">
6
<body id="pcard_home" class="tools pcard">
6
    [% INCLUDE 'header.inc' %]
7
    [% INCLUDE 'header.inc' %]
7
    [% INCLUDE 'cat-search.inc' %]
8
    [% INCLUDE 'cat-search.inc' %]
8
    <div id="breadcrumbs">
9
    <div id="breadcrumbs">
9
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
10
        <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
10
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
11
        <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
11
        Patron card creator
12
        [% t('Patron card creator') %]
12
    </div>
13
    </div>
13
    <div id="doc3" class="yui-t2">
14
    <div id="doc3" class="yui-t2">
14
        <div id="bd">
15
        <div id="bd">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt (-25 / +26 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
    [% INCLUDE 'doc-head-open.inc' %]
3
    [% INCLUDE 'doc-head-open.inc' %]
3
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Images</title>
4
    <title>[% t('Koha › Tools › Patron card creator › Images') %]</title>
4
    [% INCLUDE 'doc-head-close.inc' %]
5
    [% INCLUDE 'doc-head-close.inc' %]
5
</head>
6
</head>
6
7
Lines 8-17 Link Here
8
[% INCLUDE 'header.inc' %]
9
[% INCLUDE 'header.inc' %]
9
[% INCLUDE 'cat-search.inc' %]
10
[% INCLUDE 'cat-search.inc' %]
10
<div id="breadcrumbs">
11
<div id="breadcrumbs">
11
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
12
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
12
    <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
13
    <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
13
    <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a> &rsaquo;
14
    <a href="/cgi-bin/koha/patroncards/home.pl">[% t('Patron card creator') %]</a> ›
14
    Images
15
    [% t('Images') %]
15
</div>
16
</div>
16
<div id="doc3" class="yui-t2">
17
<div id="doc3" class="yui-t2">
17
    <div id="bd">
18
    <div id="bd">
Lines 26-49 Link Here
26
                [% INCLUDE 'patroncards-errors.inc' %]
27
                [% INCLUDE 'patroncards-errors.inc' %]
27
                <div class="yui-g">
28
                <div class="yui-g">
28
                    <div class="yui-u first">
29
                    <div class="yui-u first">
29
                        <h1>Upload additional images for patron cards</h1>
30
                        <h1>[% t('Upload additional images for patron cards') %]</h1>
30
                        <p>Manage additional images to use as logo, decoration or background on a patron card layout.</p>
31
                        <p>[% t('Manage additional images to use as logo, decoration or background on a patron card layout.') %]</p>
31
                        <form name="upload_images" method="post" action="/cgi-bin/koha/patroncards/image-manage.pl" enctype="multipart/form-data">
32
                        <form name="upload_images" method="post" action="/cgi-bin/koha/patroncards/image-manage.pl" enctype="multipart/form-data">
32
                            <fieldset class="brief">
33
                            <fieldset class="brief">
33
                                <div class="hint">Only PNG, GIF, JPEG, XPM formats are supported. Maximum image size is 500KB.</div>
34
                                <div class="hint">[% t('Only PNG, GIF, JPEG, XPM formats are supported. Maximum image size is 500KB.') %]</div>
34
                                <ol>
35
                                <ol>
35
                                <li>
36
                                <li>
36
                                    <label for="uploadfile">Select the file to upload: </label>
37
                                    <label for="uploadfile">[% t('Select the file to upload:') %] </label>
37
                                    <input type="file" id="uploadfile" name="uploadfile" />
38
                                    <input type="file" id="uploadfile" name="uploadfile" />
38
                                    <input type="hidden" id="image" name="filetype" value="image" />
39
                                    <input type="hidden" id="image" name="filetype" value="image" />
39
                                </li>
40
                                </li>
40
                                <li>
41
                                <li>
41
                                    <label for="image_name">Image name: </label>
42
                                    <label for="image_name">[% t('Image name:') %] </label>
42
                                    <div class="hint">
43
                                    <div class="hint">
43
                                        This will be the name by which you will refer to this image in the patron card layout editor.
44
                                        [% t('This will be the name by which you will refer to this image in the patron card layout editor.') %]
44
                                    </div>
45
                                    </div>
45
                                    <div class="hint">
46
                                    <div class="hint">
46
                                        To replace an image, delete it, upload a new file and give it the same image name.
47
                                        [% t('To replace an image, delete it, upload a new file and give it the same image name.') %]
47
                                    </div>
48
                                    </div>
48
49
49
                                    <input type="text" id="image_name" name="image_name" size="20" />
50
                                    <input type="text" id="image_name" name="image_name" size="20" />
Lines 55-63 Link Here
55
                                </div>
56
                                </div>
56
                                [% IF ( IMPORT_SUCCESSFUL ) %]
57
                                [% IF ( IMPORT_SUCCESSFUL ) %]
57
                                    <div class="dialog message">
58
                                    <div class="dialog message">
58
                                    <h3>Image successfully uploaded</h3>
59
                                    <h3>[% t('Image successfully uploaded') %]</h3>
59
                                    <ul><li>File: [% SOURCE_FILE %]</li>
60
                                    <ul><li>[% t('File:') %] [% SOURCE_FILE %]</li>
60
                                    <li>Image name: [% IMAGE_NAME %]</li></ul>
61
                                    <li>[% t('Image name:') %] [% IMAGE_NAME %]</li></ul>
61
                                    </div>
62
                                    </div>
62
                                [% END %]
63
                                [% END %]
63
                            </fieldset>
64
                            </fieldset>
Lines 65-76 Link Here
65
                        </form>
66
                        </form>
66
                    </div>
67
                    </div>
67
                    <div class="yui-u">
68
                    <div class="yui-u">
68
                    <h1>Delete Images</h1>
69
                    <h1>[% t('Delete Images') %]</h1>
69
                        [% IF ( TABLE ) %]
70
                        [% IF ( TABLE ) %]
70
                        <form name="delete_images" method="post" action="/cgi-bin/koha/patroncards/image-manage.pl" enctype="multipart/form-data">
71
                        <form name="delete_images" method="post" action="/cgi-bin/koha/patroncards/image-manage.pl" enctype="multipart/form-data">
71
                            <fieldset class="brief">
72
                            <fieldset class="brief">
72
                                <div class="hint">
73
                                <div class="hint">
73
                                    Select one or more images to delete.
74
                                    [% t('Select one or more images to delete.') %]
74
                                </div>
75
                                </div>
75
                               <table>
76
                               <table>
76
                                    [% FOREACH TABL IN TABLE %]
77
                                    [% FOREACH TABL IN TABLE %]
Lines 81-91 Link Here
81
                                    [% FOREACH header_field IN TABL.header_fields %]
82
                                    [% FOREACH header_field IN TABL.header_fields %]
82
                                    [% SWITCH header_field.field_label -%]
83
                                    [% SWITCH header_field.field_label -%]
83
                                        [% CASE "ID" %]
84
                                        [% CASE "ID" %]
84
                                            <th>Image ID</th>
85
                                            <th>[% t('Image ID') %]</th>
85
                                        [% CASE "Name" %]
86
                                        [% CASE "Name" %]
86
                                            <th>Name</th>
87
                                            <th>[% t('Name') %]</th>
87
                                        [% CASE " " %]
88
                                        [% CASE " " %]
88
                                            <th>Delete</th>
89
                                            <th>[% t('Delete') %]</th>
89
                                        [% CASE %]
90
                                        [% CASE %]
90
                                           <th>[% header_field.field_label %]</th>
91
                                           <th>[% header_field.field_label %]</th>
91
                                    [% END %]
92
                                    [% END %]
Lines 96-108 Link Here
96
                                    [% FOREACH text_field IN TABL.text_fields %]
97
                                    [% FOREACH text_field IN TABL.text_fields %]
97
                                    [% IF ( text_field.select_field ) %]
98
                                    [% IF ( text_field.select_field ) %]
98
                                        <td>
99
                                        <td>
99
                                            <a class="delete_image btn btn-default btn-xs" href="/cgi-bin/koha/patroncards/image-manage.pl?op=delete&image_id=[% text_field.field_value %]"><i class="fa fa-trash"></i> Delete</a>
100
                                            <a class="delete_image btn btn-default btn-xs" href="/cgi-bin/koha/patroncards/image-manage.pl?op=delete&image_id=[% text_field.field_value %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
100
                                        </td>
101
                                        </td>
101
                                        <td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td>
102
                                        <td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td>
102
                                    [% ELSIF ( text_field.field_value ) %]
103
                                    [% ELSIF ( text_field.field_value ) %]
103
                                        <td>[% text_field.field_value %]</td>
104
                                        <td>[% text_field.field_value %]</td>
104
                                    [% ELSE %]
105
                                    [% ELSE %]
105
                                        <td>&nbsp;</td>
106
                                        <td> </td>
106
                                    [% END %]
107
                                    [% END %]
107
                                    [% END %]
108
                                    [% END %]
108
                                    </tr>
109
                                    </tr>
Lines 115-121 Link Here
115
                                </div>
116
                                </div>
116
                                [% IF ( DELETE_SUCCESSFULL ) %]
117
                                [% IF ( DELETE_SUCCESSFULL ) %]
117
                                <div id="dialog" class="dialog message">
118
                                <div id="dialog" class="dialog message">
118
                                    <h3>Image(s) successfully deleted</h3>
119
                                    <h3>[% t('Image(s) successfully deleted') %]</h3>
119
                                </div>
120
                                </div>
120
                                [% END %]
121
                                [% END %]
121
                            </fieldset>
122
                            </fieldset>
Lines 123-133 Link Here
123
                        [% ELSE %]
124
                        [% ELSE %]
124
                        <fieldset class="brief">
125
                        <fieldset class="brief">
125
                            <div class="hint">
126
                            <div class="hint">
126
                                No images are currently available.
127
                                [% t('No images are currently available.') %]
127
                            </div>
128
                            </div>
128
                            [% IF ( DELETE_SUCCESSFULL ) %]
129
                            [% IF ( DELETE_SUCCESSFULL ) %]
129
                                <div id="dialog" class="dialog message">
130
                                <div id="dialog" class="dialog message">
130
                                    <h3>Image(s) successfully deleted</h3>
131
                                    <h3>[% t('Image(s) successfully deleted') %]</h3>
131
                                </div>
132
                                </div>
132
                            [% END %]
133
                            [% END %]
133
                        </fieldset>
134
                        </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt (-40 / +41 lines)
Lines 1-29 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE CGI %]
2
[% USE CGI %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% BLOCK translate_card_element %]
4
[% BLOCK translate_card_element %]
4
[%-  SWITCH element -%]
5
[%-  SWITCH element -%]
5
[%-  CASE 'layout'    -%]layout
6
[%-  CASE 'layout'    -%][% t('layout') %]
6
[%-  CASE 'Layouts'   -%]Layouts
7
[%-  CASE 'Layouts'   -%][% t('Layouts') %]
7
[%-  CASE 'template'  -%]template
8
[%-  CASE 'template'  -%][% t('template') %]
8
[%-  CASE 'Templates' -%]Templates
9
[%-  CASE 'Templates' -%][% t('Templates') %]
9
[%-  CASE 'profile'   -%]profile
10
[%-  CASE 'profile'   -%][% t('profile') %]
10
[%-  CASE 'Profiles'  -%]Profiles
11
[%-  CASE 'Profiles'  -%][% t('Profiles') %]
11
[%-  CASE 'batch'     -%]batch
12
[%-  CASE 'batch'     -%][% t('batch') %]
12
[%-  CASE 'Batches'   -%]Batches
13
[%-  CASE 'Batches'   -%][% t('Batches') %]
13
[%-  CASE 'Actions'   -%]Actions
14
[%-  CASE 'Actions'   -%][% t('Actions') %]
14
[%-  END -%]
15
[%-  END -%]
15
[% END %]
16
[% END %]
16
[% BLOCK translate_card_elements %]
17
[% BLOCK translate_card_elements %]
17
[%-  SWITCH element -%]
18
[%-  SWITCH element -%]
18
[%-  CASE 'layout'    -%]layouts
19
[%-  CASE 'layout'    -%][% t('layouts') %]
19
[%-  CASE 'template'  -%]templates
20
[%-  CASE 'template'  -%][% t('templates') %]
20
[%-  CASE 'profile'   -%]profiles
21
[%-  CASE 'profile'   -%][% t('profiles') %]
21
[%-  CASE 'batch'     -%]batches
22
[%-  CASE 'batch'     -%][% t('batches') %]
22
[%-  END -%]
23
[%-  END -%]
23
[% END %]
24
[% END %]
24
25
25
    [% INCLUDE 'doc-head-open.inc' %]
26
    [% INCLUDE 'doc-head-open.inc' %]
26
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; [% PROCESS translate_card_element element=card_element_title %]</title>
27
    <title>[% t('Koha › Tools › Patron card creator ›') %] [% PROCESS translate_card_element element=card_element_title %]</title>
27
    [% INCLUDE 'doc-head-close.inc' %]
28
    [% INCLUDE 'doc-head-close.inc' %]
28
</head>
29
</head>
29
30
Lines 31-39 Link Here
31
    [% INCLUDE 'header.inc' %]
32
    [% INCLUDE 'header.inc' %]
32
    [% INCLUDE 'cat-search.inc' %]
33
    [% INCLUDE 'cat-search.inc' %]
33
    <div id="breadcrumbs">
34
    <div id="breadcrumbs">
34
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
35
        <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
35
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
36
        <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ›
36
        <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a> &rsaquo;
37
        <a href="/cgi-bin/koha/patroncards/home.pl">[% t('Patron card creator') %]</a> ›
37
        [% PROCESS translate_card_element element=card_element_title %]
38
        [% PROCESS translate_card_element element=card_element_title %]
38
    </div>
39
    </div>
39
    <div id="doc3" class="yui-t2">
40
    <div id="doc3" class="yui-t2">
Lines 44-72 Link Here
44
                    [% INCLUDE 'patroncards-errors.inc' %]
45
                    [% INCLUDE 'patroncards-errors.inc' %]
45
                    <div class="yui-gc">
46
                    <div class="yui-gc">
46
                        <div class="yui-u first" id="manage-patroncards-layouts">
47
                        <div class="yui-u first" id="manage-patroncards-layouts">
47
                            <div class="hint">Current library: [% LoginBranchname %]</div>
48
                            <div class="hint">[% t('Current library:') %] [% LoginBranchname %]</div>
48
                            [% IF ( table_loop ) %]
49
                            [% IF ( table_loop ) %]
49
                            <form name="layouts" action="/cgi-bin/koha/manage.pl?card_element=[% card_element %]">
50
                            <form name="layouts" action="/cgi-bin/koha/manage.pl?card_element=[% card_element %]">
50
                            <h2>Currently available [% PROCESS translate_card_element element=card_element_title FILTER lower %]</h2>
51
                            <h2>[% t('Currently available') %] [% PROCESS translate_card_element element=card_element_title FILTER lower %]</h2>
51
                            <table>
52
                            <table>
52
                                [% FOREACH table_loo IN table_loop %]
53
                                [% FOREACH table_loo IN table_loop %]
53
                                [% IF ( table_loo.header_fields ) %]
54
                                [% IF ( table_loo.header_fields ) %]
54
                                <tr>
55
                                <tr>
55
                                [% FOREACH header_field IN table_loo.header_fields %]
56
                                [% FOREACH header_field IN table_loo.header_fields %]
56
                                    [% SWITCH header_field.field_label -%]
57
                                    [% SWITCH header_field.field_label -%]
57
                                        [%-  CASE 'Layout ID'     -%]<th>Layout ID</th>
58
                                        [%-  CASE 'Layout ID'     -%]<th>[% t('Layout ID') %]</th>
58
                                        [%-  CASE 'Layout'        -%]<th>Layout</th>
59
                                        [%-  CASE 'Layout'        -%]<th>[% t('Layout') %]</th>
59
                                        [%-  CASE 'Action'        -%]<th>Action</th>
60
                                        [%-  CASE 'Action'        -%]<th>[% t('Action') %]</th>
60
                                        [%-  CASE 'Actions'       -%]<th>Actions</th>
61
                                        [%-  CASE 'Actions'       -%]<th>[% t('Actions') %]</th>
61
                                        [%-  CASE 'Select'        -%][% IF ( print ) %]<th>Select</th>[% END %]
62
                                        [%-  CASE 'Select'        -%][% IF ( print ) %]<th>[% t('Select') %]</th>[% END %]
62
                                        [%-  CASE 'Template ID'   -%]<th>Template ID</th>
63
                                        [%-  CASE 'Template ID'   -%]<th>[% t('Template ID') %]</th>
63
                                        [%-  CASE 'Template Name' -%]<th>Template name</th>
64
                                        [%-  CASE 'Template Name' -%]<th>[% t('Template name') %]</th>
64
                                        [%-  CASE 'Description'   -%]<th>Description</th>
65
                                        [%-  CASE 'Description'   -%]<th>[% t('Description') %]</th>
65
                                        [%-  CASE 'Profile ID'    -%]<th>Profile ID</th>
66
                                        [%-  CASE 'Profile ID'    -%]<th>[% t('Profile ID') %]</th>
66
                                        [%-  CASE 'Printer Name'  -%]<th>Printer name</th>
67
                                        [%-  CASE 'Printer Name'  -%]<th>[% t('Printer name') %]</th>
67
                                        [%-  CASE 'Paper Bin'     -%]<th>Paper bin</th>
68
                                        [%-  CASE 'Paper Bin'     -%]<th>[% t('Paper bin') %]</th>
68
                                        [%-  CASE 'Batch ID'      -%]<th>Batch ID</th>
69
                                        [%-  CASE 'Batch ID'      -%]<th>[% t('Batch ID') %]</th>
69
                                        [%-  CASE 'Patron Count'  -%]<th>Patron count</th>
70
                                        [%-  CASE 'Patron Count'  -%]<th>[% t('Patron count') %]</th>
70
                                        [%-  CASE                 -%]<th>[% header_field.field_label %]</th>
71
                                        [%-  CASE                 -%]<th>[% header_field.field_label %]</th>
71
                                    [% END -%]
72
                                    [% END -%]
72
                                [% END %]
73
                                [% END %]
Lines 76-90 Link Here
76
                                [% FOREACH text_field IN table_loo.text_fields %]
77
                                [% FOREACH text_field IN table_loo.text_fields %]
77
                                [% IF ( text_field.select_field ) %]
78
                                [% IF ( text_field.select_field ) %]
78
                                    <td>
79
                                    <td>
79
                                      <a class="btn btn-default btn-xs" href="/cgi-bin/koha/patroncards/edit-[% card_element %].pl?op=edit&element_id=[% text_field.field_value %]"><i class="fa fa-edit"></i> Edit</a>
80
                                      <a class="btn btn-default btn-xs" href="/cgi-bin/koha/patroncards/edit-[% card_element %].pl?op=edit&element_id=[% text_field.field_value %]"><i class="fa fa-edit"></i> [% t('Edit') %]</a>
80
                                      [% IF ( print ) %]<a class="btn btn-default btn-xs export" data-batch-id="[% text_field.field_value |url %]" href="/cgi-bin/koha/patroncards/print.pl?batch_id=[% text_field.field_value |url %]"><i class="fa fa-share-square-o"></i> Export</a>[% END %]
81
                                      [% IF ( print ) %]<a class="btn btn-default btn-xs export" data-batch-id="[% text_field.field_value |url %]" href="/cgi-bin/koha/patroncards/print.pl?batch_id=[% text_field.field_value |url %]"><i class="fa fa-share-square-o"></i> [% t('Export') %]</a>[% END %]
81
                                      <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=[% card_element %]&element_id=[% text_field.field_value %]"><i class="fa fa-trash"></i> Delete</a>
82
                                      <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=[% card_element %]&element_id=[% text_field.field_value %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
82
                                    </td>
83
                                    </td>
83
                                    [% IF ( print ) %]<td><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td>[% END %]
84
                                    [% IF ( print ) %]<td><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td>[% END %]
84
                                [% ELSIF ( text_field.field_value ) %]
85
                                [% ELSIF ( text_field.field_value ) %]
85
                                    <td>[% text_field.field_value %]</td>
86
                                    <td>[% text_field.field_value %]</td>
86
                                [% ELSE %]
87
                                [% ELSE %]
87
                                    <td>&nbsp;</td>
88
                                    <td> </td>
88
                                [% END %]
89
                                [% END %]
89
                                [% END %]
90
                                [% END %]
90
                                </tr>
91
                                </tr>
Lines 96-105 Link Here
96
                            </fieldset>
97
                            </fieldset>
97
                            [% IF patron_lists %]
98
                            [% IF patron_lists %]
98
                            <fieldset class="rows">
99
                            <fieldset class="rows">
99
                                <legend>Or use a patron list</legend>
100
                                <legend>[% t('Or use a patron list') %]</legend>
100
                                <ol>
101
                                <ol>
101
                                    <li>
102
                                    <li>
102
                                        <label for="patron_list_id">Patron list: </label>
103
                                        <label for="patron_list_id">[% t('Patron list:') %] </label>
103
                                        <select id="patron_list_id" name="patron_list_id">
104
                                        <select id="patron_list_id" name="patron_list_id">
104
                                            <option value=""></option>
105
                                            <option value=""></option>
105
                                            [% FOREACH pl IN patron_lists %]
106
                                            [% FOREACH pl IN patron_lists %]
Lines 117-124 Link Here
117
118
118
                            [% ELSE %]
119
                            [% ELSE %]
119
                        <div class="dialog message">
120
                        <div class="dialog message">
120
                            <h4>There are no [% PROCESS translate_card_element element=card_element_title %] currently available.</h4>
121
                            <h4>[% t('There are no') %] [% PROCESS translate_card_element element=card_element_title %] [% t('currently available.') %]</h4>
121
                            <p>Use the toolbar above to create a new [% PROCESS translate_card_element element=card_element %].</p></div>
122
                            <p>[% t('Use the toolbar above to create a new') %] [% PROCESS translate_card_element element=card_element %].</p></div>
122
                            [% END %]
123
                            [% END %]
123
                        </div>
124
                        </div>
124
                    </div>
125
                    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/print.tt (-23 / +23 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
<!DOCTYPE html>
4
<!DOCTYPE html>
4
[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %]
5
[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %]
5
<head>
6
<head>
6
    <title>Koha &rsaquo; Tools &rsaquo; Patron cards &rsaquo; Patron card printing/exporting</title>
7
    <title>[% t('Koha › Tools › Patron cards › Patron card printing/exporting') %]</title>
7
    <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
8
    <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
8
    [% INCLUDE intranetstylesheet.inc %]
9
    [% INCLUDE intranetstylesheet.inc %]
9
    [% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
10
    [% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
Lines 16-38 Link Here
16
        <div id="bd">
17
        <div id="bd">
17
            [% IF ( batches ) %]
18
            [% IF ( batches ) %]
18
            <form>
19
            <form>
19
                <h3>Click on the following link(s) to download the exported batch(es).</h3>
20
                <h3>[% t('Click on the following link(s) to download the exported batch(es).') %]</h3>
20
                    <fieldset>
21
                    <fieldset>
21
                    [% FOREACH batche IN batches %]
22
                    [% FOREACH batche IN batches %]
22
                        [% IF ( batche.label_ids ) %]
23
                        [% IF ( batche.label_ids ) %]
23
                        <legend>[% batche.card_count %] Single patron cards</legend>
24
                        <legend>[% batche.card_count %] [% t('Single patron cards') %]</legend>
24
                        <p>
25
                        <p>
25
                                <a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script %]?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %]]&amp;layout_back_id=[% batche.layout_back_id %]&amp;start_card=[% batche.start_card %][% batche.label_ids %]">label_single_[% batche.card_count %].pdf</a>
26
                                <a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script %]?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]]&layout_back_id=[% batche.layout_back_id %]&start_card=[% batche.start_card %][% batche.label_ids %]">[% t('label_single_') %][% batche.card_count %][% t('.pdf') %]</a>
26
                        </p>
27
                        </p>
27
                        [% ELSIF ( batche.borrower_numbers ) %]
28
                        [% ELSIF ( batche.borrower_numbers ) %]
28
                        <legend>[% batche.card_count %] Single Patron Cards</legend>
29
                        <legend>[% batche.card_count %] [% t('Single Patron Cards') %]</legend>
29
                        <p>
30
                        <p>
30
                                <a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script %]?template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %]&amp;layout_back_id=[% batche.layout_back_id %]&amp;start_card=[% batche.start_card %][% batche.borrower_numbers %]">label_single_[% batche.card_count %].pdf</a>
31
                                <a class="document pdf" href="/cgi-bin/koha/patroncards/[% batche.create_script %]?template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&layout_back_id=[% batche.layout_back_id %]&start_card=[% batche.start_card %][% batche.borrower_numbers %]">[% t('label_single_') %][% batche.card_count %][% t('.pdf') %]</a>
31
                        </p>
32
                        </p>
32
                        [% ELSE %]
33
                        [% ELSE %]
33
                        <legend>Card batch number [% batche.batch_id %]</legend>
34
                        <legend>[% t('Card batch number') %] [% batche.batch_id %]</legend>
34
                        <p>
35
                        <p>
35
                                <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %]&amp;layout_back_id=[% batche.layout_back_id %]&amp;start_card=[% batche.start_card %]">label_batch_[% batche.batch_id %].pdf</a>
36
                                <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&layout_back_id=[% batche.layout_back_id %]&start_card=[% batche.start_card %]">[% t('label_batch_') %][% batche.batch_id %][% t('.pdf') %]</a>
36
                        </p>
37
                        </p>
37
                        [% END %]
38
                        [% END %]
38
                    [% END %]
39
                    [% END %]
Lines 43-61 Link Here
43
                </fieldset>
44
                </fieldset>
44
            </form>
45
            </form>
45
            [% ELSIF ( patronlist_id && template_id && layout_id ) %]
46
            [% ELSIF ( patronlist_id && template_id && layout_id ) %]
46
                <h3>Click on the link to download the patron cards from the patron list.</h3>
47
                <h3>[% t('Click on the link to download the patron cards from the patron list.') %]</h3>
47
                    <p>
48
                    <p>
48
                        <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?patronlist_id=[% patronlist_id %]&amp;template_id=[% template_id %]&amp;layout_id=[% layout_id %]&amp;layout_back_id=[% layout_back_id %]&amp;start_card=[% start_card %]">label_patronlist_[% patronlist_id %].pdf</a>
49
                        <a class="document pdf" href="/cgi-bin/koha/patroncards/create-pdf.pl?patronlist_id=[% patronlist_id %]&template_id=[% template_id %]&layout_id=[% layout_id %]&layout_back_id=[% layout_back_id %]&start_card=[% start_card %]">[% t('label_patronlist_') %][% patronlist_id %][% t('.pdf') %]</a>
49
                    </p>
50
                    </p>
50
            [% ELSE %]
51
            [% ELSE %]
51
            <h3>
52
            <h3>
52
                    [% IF ( label_ids ) %]
53
                    [% IF ( label_ids ) %]
53
                        [% IF ( card_count == 1 ) %]Exporting [% card_count %] patron card[% ELSE %]Exporting [% card_count %] patron cards[% END %]
54
                        [% IF ( card_count == 1 ) %][% t('Exporting') %] [% card_count %] [% t('patron card') %][% ELSE %][% t('Exporting') %] [% card_count %] [% t('patron cards') %][% END %]
54
                    [% ELSIF ( borrower_numbers ) %]
55
                    [% ELSIF ( borrower_numbers ) %]
55
                        [% IF ( borrower_count == 1 ) %]Exporting [% borrower_count %] patron card[% ELSE %]Exporting [% borrower_count %] patron cards[% END %]
56
                        [% IF ( borrower_count == 1 ) %][% t('Exporting') %] [% borrower_count %] [% t('patron card') %][% ELSE %][% t('Exporting') %] [% borrower_count %] [% t('patron cards') %][% END %]
56
                    [% ELSIF ( patronlist_id ) %] Exporting from patron list
57
                    [% ELSIF ( patronlist_id ) %] [% t('Exporting from patron list') %]
57
                    [% ELSE %]
58
                    [% ELSE %]
58
                        [% IF ( multi_batch_count == 1 ) %][% multi_batch_count %] batch to export[% ELSE %][% multi_batch_count %] batches to export[% END %]
59
                        [% IF ( multi_batch_count == 1 ) %][% multi_batch_count %] [% t('batch to export') %][% ELSE %][% multi_batch_count %] [% t('batches to export') %][% END %]
59
                    [% END %]
60
                    [% END %]
60
            </h3>
61
            </h3>
61
            <form id="exportingf" name="exporting" method="post" action="/cgi-bin/koha/patroncards/print.pl">
62
            <form id="exportingf" name="exporting" method="post" action="/cgi-bin/koha/patroncards/print.pl">
Lines 74-80 Link Here
74
                <fieldset class="rows">
75
                <fieldset class="rows">
75
                    <ol>
76
                    <ol>
76
                        <li>
77
                        <li>
77
                            <label style="width:9em" for="template_id">Select a template to be applied: </label>
78
                            <label style="width:9em" for="template_id">[% t('Select a template to be applied:') %] </label>
78
                            <select name="template_id" id="template_id">
79
                            <select name="template_id" id="template_id">
79
                                [% FOREACH template IN templates %]
80
                                [% FOREACH template IN templates %]
80
                                <option value="[% template.template_id %]">[% template.template_code %]</option>
81
                                <option value="[% template.template_id %]">[% template.template_code %]</option>
Lines 82-88 Link Here
82
                            </select>
83
                            </select>
83
                        </li>
84
                        </li>
84
                        <li>
85
                        <li>
85
                            <label style="width:9em" for="layout_id">Select a layout to be applied: </label>
86
                            <label style="width:9em" for="layout_id">[% t('Select a layout to be applied:') %] </label>
86
                            <select name="layout_id" id="layout_id">
87
                            <select name="layout_id" id="layout_id">
87
                                [% FOREACH layout IN layouts %]
88
                                [% FOREACH layout IN layouts %]
88
                                <option value="[% layout.layout_id %]">[% layout.layout_name %]</option>
89
                                <option value="[% layout.layout_id %]">[% layout.layout_name %]</option>
Lines 90-114 Link Here
90
                            </select>
91
                            </select>
91
                        </li>
92
                        </li>
92
                        <li>
93
                        <li>
93
                            <label style="width:9em" for="layout_back_id">Select a layout for back side: </label>
94
                            <label style="width:9em" for="layout_back_id">[% t('Select a layout for back side:') %] </label>
94
                            <select name="layout_back_id" id="layout_back_id">
95
                            <select name="layout_back_id" id="layout_back_id">
95
                                <option value="0">Back side layout not used</option>
96
                                <option value="0">[% t('Back side layout not used') %]</option>
96
                                [% FOREACH layout IN layouts %]
97
                                [% FOREACH layout IN layouts %]
97
                                <option value="[% layout.layout_id %]">[% layout.layout_name %]</option>
98
                                <option value="[% layout.layout_id %]">[% layout.layout_name %]</option>
98
                                [% END %]
99
                                [% END %]
99
                            </select>
100
                            </select>
100
                            <span class="hint">Used for duplex printers (needs a '1 up template')</span>
101
                            <span class="hint">[% t('Used for duplex printers (needs a \'1 up template\')') %]</span>
101
                        </li>
102
                        </li>
102
103
103
                        <li>
104
                        <li>
104
                            <label style="width:9em" for="start_card">Enter starting card position: </label>
105
                            <label style="width:9em" for="start_card">[% t('Enter starting card position:') %] </label>
105
                            <input type="text" size="5" id="start_card" name="start_card" class="focus" title="Starting card number" value="1" />
106
                            <input type="text" size="5" id="start_card" name="start_card" class="focus" title="[% t('Starting card number') %]" value="1" />
106
                        </li>
107
                        </li>
107
                    </ol>
108
                    </ol>
108
                </fieldset>
109
                </fieldset>
109
                <fieldset class="action">
110
                <fieldset class="action">
110
                    <input type="submit" value="Export" />
111
                    <input type="submit" value="Export" />
111
                    <a href="#" class="cancel gb-close">Cancel</a>
112
                    <a href="#" class="cancel gb-close">[% t('Cancel') %]</a>
112
                </fieldset>
113
                </fieldset>
113
            </form>
114
            </form>
114
            [% END %]
115
            [% END %]
115
- 

Return to bug 20988