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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt (-4 / +4 lines)
Lines 1-6 Link Here
1
[% USE ItemTypes %]
1
[% USE ItemTypes %]
2
    [% INCLUDE 'doc-head-open.inc' %]
2
    [% INCLUDE 'doc-head-open.inc' %]
3
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Manage label batches</title>
3
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Batches &rsaquo; [% IF batch_id %]Edit ([% batch_id %])[% ELSE %]Create[% END %]</title>
4
    [% INCLUDE 'doc-head-close.inc' %]
4
    [% INCLUDE 'doc-head-close.inc' %]
5
    [% INCLUDE 'greybox.inc' %]
5
    [% INCLUDE 'greybox.inc' %]
6
    <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6
    <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
Lines 160-170 Link Here
160
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; 
160
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; 
161
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
161
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
162
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
162
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
163
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Manage label batches</a> &rsaquo;
163
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Batches</a> &rsaquo;
164
        [% IF batch_id %]
164
        [% IF batch_id %]
165
            Manage batch number [% batch_id %]
165
            Edit ([% batch_id %])
166
        [% ELSE %]
166
        [% ELSE %]
167
            Create new batch
167
            Create
168
        [% END %]
168
        [% END %]
169
    </div>
169
    </div>
170
    <div id="doc3" class="yui-t2">
170
    <div id="doc3" class="yui-t2">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt (-4 / +4 lines)
Lines 8-14 Link Here
8
[%  END %]
8
[%  END %]
9
[% END %]
9
[% END %]
10
    [% INCLUDE 'doc-head-open.inc' %]
10
    [% INCLUDE 'doc-head-open.inc' %]
11
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Manage label layouts</title>
11
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Layouts &rsaquo; [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]Create[% END %]</title>
12
    [% INCLUDE 'doc-head-close.inc' %]
12
    [% INCLUDE 'doc-head-close.inc' %]
13
    <script type="text/JavaScript" language="JavaScript">
13
    <script type="text/JavaScript" language="JavaScript">
14
        //<![CDATA[
14
        //<![CDATA[
Lines 51-58 Link Here
51
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
51
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
52
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
52
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
53
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
53
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
54
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Manage label layouts</a> &rsaquo;
54
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Layouts</a> &rsaquo;
55
        [% IF ( layout_id ) %]Edit[% ELSE %]Create[% END %] Label layout
55
        [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]Create[% END %]
56
    </div>
56
    </div>
57
    <div id="doc3" class="yui-t2">
57
    <div id="doc3" class="yui-t2">
58
        <div id="bd">
58
        <div id="bd">
Lines 66-72 Link Here
66
                    </div>
66
                    </div>
67
                    <form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get">
67
                    <form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get">
68
                        <fieldset class="rows">
68
                        <fieldset class="rows">
69
                            <legend>[% IF ( layout_id ) %]Edit[% ELSE %]Create[% END %] Label layout</legend>
69
                            <legend>[% IF ( layout_id ) %]Edit[% ELSE %]Create[% END %] label layout</legend>
70
                            <ol>
70
                            <ol>
71
                                <li>
71
                                <li>
72
                                    <label for="layout_name">Layout name: </label>
72
                                    <label for="layout_name">Layout name: </label>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt (-3 / +3 lines)
Lines 1-5 Link Here
1
    [% INCLUDE 'doc-head-open.inc' %]
1
    [% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Printer profiles</title>
2
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Profiles &rsaquo; [% IF ( profile_id ) %]Edit ([% profile_id %])[% ELSE %]Create[% END%]</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
3
    [% INCLUDE 'doc-head-close.inc' %]
4
	<script type="text/javascript">
4
	<script type="text/javascript">
5
        //<![CDATA[
5
        //<![CDATA[
Lines 43-50 Link Here
43
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
43
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
44
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
44
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
45
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
45
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
46
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Printer profiles</a> &rsaquo;
46
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Profiles</a> &rsaquo;
47
        Edit printer profile
47
        [% IF ( profile_id ) %]Edit ([% profile_id %])[% ELSE %]Create[% END%]
48
    </div>
48
    </div>
49
    <div id="doc3" class="yui-t2">
49
    <div id="doc3" class="yui-t2">
50
        <div id="bd">
50
        <div id="bd">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt (-3 / +3 lines)
Lines 1-5 Link Here
1
    [% INCLUDE 'doc-head-open.inc' %]
1
    [% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Label templates</title>
2
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Templates &rsaquo; [% IF ( template_id ) %]Edit ([% template_id %])[% ELSE %]Create[% END %]</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
3
    [% INCLUDE 'doc-head-close.inc' %]
4
	<script type="text/javascript">
4
	<script type="text/javascript">
5
        //<![CDATA[
5
        //<![CDATA[
Lines 43-50 Link Here
43
        <a href="/cgi-bin/koha/mainpage.pl">Home</a>&rsaquo;
43
        <a href="/cgi-bin/koha/mainpage.pl">Home</a>&rsaquo;
44
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>&rsaquo;
44
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>&rsaquo;
45
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a>&rsaquo;
45
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a>&rsaquo;
46
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Label templates</a>&rsaquo;
46
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Templates</a>&rsaquo;
47
        Edit label template
47
        [% IF ( template_id ) %]Edit ([% template_id %])[% ELSE %]Create[% END %]
48
    </div>
48
    </div>
49
    <div id="doc3" class="yui-t2">
49
    <div id="doc3" class="yui-t2">
50
        <div id="bd">
50
        <div id="bd">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt (-2 / +14 lines)
Lines 1-5 Link Here
1
[% BLOCK translate_label_element %]
2
[%-  SWITCH element -%]
3
[%-  CASE 'layout'    -%]layout
4
[%-  CASE 'Layouts'   -%]Layouts
5
[%-  CASE 'template'  -%]template
6
[%-  CASE 'Templates' -%]Templates
7
[%-  CASE 'profile'   -%]profile
8
[%-  CASE 'Profiles'  -%]Profiles
9
[%-  CASE 'batch'     -%]batch
10
[%-  CASE 'Batches'   -%]Batches
11
[%-  END -%]
12
[% END %]
1
    [% INCLUDE 'doc-head-open.inc' %]
13
    [% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Manage label</title>
14
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; [% PROCESS translate_label_element element=label_element_title %]</title>
3
    [% INCLUDE 'doc-head-close.inc' %]
15
    [% INCLUDE 'doc-head-close.inc' %]
4
    [% INCLUDE 'greybox.inc' %]
16
    [% INCLUDE 'greybox.inc' %]
5
    <script type="text/javascript">
17
    <script type="text/javascript">
Lines 77-83 Link Here
77
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
89
        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
78
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
90
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
79
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
91
        <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
80
        Manage label [% label_element_title %]
92
        [% PROCESS translate_label_element element=label_element_title %]
81
    </div>
93
    </div>
82
    <div id="doc3" class="yui-t2">
94
    <div id="doc3" class="yui-t2">
83
        <div id="bd">
95
        <div id="bd">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt (+1 lines)
Lines 11-16 Link Here
11
[%-  CASE 'Actions'   -%]Actions
11
[%-  CASE 'Actions'   -%]Actions
12
[%-  END -%]
12
[%-  END -%]
13
[% END %]
13
[% END %]
14
14
    [% INCLUDE 'doc-head-open.inc' %]
15
    [% INCLUDE 'doc-head-open.inc' %]
15
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; [% PROCESS translate_card_element element=card_element_title %]</title>
16
    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; [% PROCESS translate_card_element element=card_element_title %]</title>
16
    [% INCLUDE 'doc-head-close.inc' %]
17
    [% INCLUDE 'doc-head-close.inc' %]
(-)a/labels/label-manage.pl (-7 / +12 lines)
Lines 18-25 Link Here
18
# You should have received a copy of the GNU General Public License
18
# You should have received a copy of the GNU General Public License
19
# along with Koha; if not, see <http://www.gnu.org/licenses>.
19
# along with Koha; if not, see <http://www.gnu.org/licenses>.
20
20
21
use strict;
21
use Modern::Perl;
22
use warnings;
22
23
use vars qw($debug);
23
use vars qw($debug);
24
24
25
use CGI qw ( -utf8 );
25
use CGI qw ( -utf8 );
Lines 98-107 my $table = html_table($display_columns->{$label_element}, $db_rows); Link Here
98
$template->param(error => $error) if ($error) && ($error ne 0);
98
$template->param(error => $error) if ($error) && ($error ne 0);
99
$template->param(print => 1) if ($label_element eq 'batch');
99
$template->param(print => 1) if ($label_element eq 'batch');
100
$template->param(
100
$template->param(
101
                op              => $op,
101
    op              => $op,
102
                element_id      => $element_id,
102
    element_id      => $element_id,
103
                table_loop      => $table,
103
    table_loop      => $table,
104
                label_element   => $label_element,
104
    label_element   => $label_element,
105
    label_element_title => (
106
        $label_element eq 'layout'   ? 'Layouts' :
107
        $label_element eq 'template' ? 'Templates' :
108
        $label_element eq 'profile'  ? 'Profiles' :
109
        $label_element eq 'batch'    ? 'Batches' :
110
        '' )
105
);
111
);
106
112
107
output_html_with_http_headers $cgi, $cookie, $template->output;
113
output_html_with_http_headers $cgi, $cookie, $template->output;
108
- 

Return to bug 15072