Lines 2-51
Link Here
|
2 |
[% USE KohaDates %] |
2 |
[% USE KohaDates %] |
3 |
[% USE Koha %] |
3 |
[% USE Koha %] |
4 |
[% USE Asset %] |
4 |
[% USE Asset %] |
|
|
5 |
[% USE Branches %] |
5 |
[% SET footerjs = 1 %] |
6 |
[% SET footerjs = 1 %] |
6 |
[% SET link_opac_base = Koha.Preference( 'OPACBaseURL' ) %] |
7 |
[% SET link_opac_base = Koha.Preference( 'OPACBaseURL' ) %] |
7 |
[% SET link_opac = link_opac_base _ '/cgi-bin/koha/opac-cmspages.pl' %] |
8 |
[% SET link_opac = link_opac_base _ '/cgi-bin/koha/opac-cmspages.pl' %] |
8 |
[% INCLUDE 'doc-head-open.inc' %] |
9 |
[% INCLUDE 'doc-head-open.inc' %] |
9 |
<title> |
10 |
<title> |
10 |
Koha › Tools › Pages |
|
|
11 |
[% IF ( form ) %] |
11 |
[% IF ( form ) %] |
12 |
[% IF ( id ) %] |
12 |
[% IF ( id ) %] |
13 |
› Edit page [% data.title | html %] |
13 |
Edit page [% data.title | html %] › |
14 |
[% ELSE %] |
14 |
[% ELSE %] |
15 |
› Add page |
15 |
Add page › |
16 |
[% END %] |
16 |
[% END %] |
17 |
[% ELSIF ( view ) %] |
17 |
[% ELSIF ( view ) %] |
18 |
[% IF ( cms_page.parent ) %] |
18 |
[% IF ( cms_page.parent ) %] |
19 |
[% FOREACH parent IN parent_list %] |
19 |
[% FOREACH parent IN parent_list %] |
20 |
› [% IF parent.id == cms_page.parent %][% parent.title_link | uri %][% END %] |
20 |
[% IF parent.id == cms_page.parent %][% parent.title_link | uri %] ›[% END %] |
21 |
[% END %] |
21 |
[% END %] |
22 |
[% END %] |
22 |
[% END %] |
23 |
› [% cms_page.title_link | html %] |
23 |
[% cms_page.title_link | html %] › |
24 |
[% END %] |
24 |
[% END %] |
|
|
25 |
Pages › Tools › Koha |
25 |
</title> |
26 |
</title> |
26 |
[% INCLUDE 'doc-head-close.inc' %] |
27 |
[% INCLUDE 'doc-head-close.inc' %] |
27 |
</head> |
28 |
</head> |
28 |
<body id="tools_koha-content" class="tools"> |
29 |
<body id="tools_koha-content" class="tools"> |
29 |
[% INCLUDE 'header.inc' %] |
30 |
[% INCLUDE 'header.inc' %] |
30 |
[% INCLUDE 'cat-search.inc' %] |
31 |
[% INCLUDE 'cat-search.inc' %] |
31 |
<div id="breadcrumbs"> |
32 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
32 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> › |
33 |
<ol> |
33 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › |
34 |
<li> |
34 |
[% IF ( form ) %] |
35 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
35 |
<a href="[% link_self | url %]">Pages</a> › |
36 |
</li> |
36 |
[% IF ( id ) %]Edit page <em>[% data.title | html %]</em>[% ELSE %]Add page[% END %] |
37 |
<li> |
37 |
[% ELSIF ( view ) %] |
38 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> |
38 |
<a href="[% link_self | url %]">Pages</a> › |
39 |
</li> |
39 |
[% IF ( cms_page.parent ) %] |
40 |
<li> |
40 |
[% FOREACH parent IN parent_list %] |
41 |
[% IF form || view %] |
41 |
[% IF parent.id == cms_page.parent %]<a href="[% link_self | url %]?op=view&id=[% cms_page.parent | uri %]">[% parent.title_link | uri %]</a> ›[% END %] |
42 |
<a href="/cgi-bin/koha/tools/cmspages.pl">Pages</a> |
42 |
[% END %] |
43 |
[% ELSE %] |
|
|
44 |
<a href="/cgi-bin/koha/tools/cmspages.pl" aria-current="page">Pages</a> |
45 |
[% END %] |
46 |
</li> |
47 |
[% IF ( form ) %] |
48 |
<li> |
49 |
<a href="#" aria-current="page"> |
50 |
[% IF ( id ) %] |
51 |
Edit page <em>[% data.title | html %]</em> |
52 |
[% ELSE %] |
53 |
Add page |
54 |
[% END %] |
55 |
</a> |
56 |
</li> |
57 |
[% ELSIF ( view ) %] |
58 |
<li> |
59 |
[% IF ( cms_page.parent ) %] |
60 |
[% FOREACH parent IN parent_list %] |
61 |
[% IF parent.id == cms_page.parent %]<a href="[% link_self | url %]?op=view&id=[% cms_page.parent | uri %]" aria-current="page">[% parent.title_link | uri %]</a>[% END %] |
62 |
[% END %] |
63 |
[% END %] |
64 |
[% cms_page.title_link | html %] |
65 |
</li> |
43 |
[% END %] |
66 |
[% END %] |
44 |
[% cms_page.title_link | html %] |
67 |
</ol> |
45 |
[% ELSE %] |
68 |
</nav> |
46 |
Pages |
|
|
47 |
[% END %] |
48 |
</div> |
49 |
|
69 |
|
50 |
[% IF ( form ) %] |
70 |
[% IF ( form ) %] |
51 |
<div class="main container-fluid"> |
71 |
<div class="main container-fluid"> |
Lines 58-70
Link Here
|
58 |
[% END %] |
78 |
[% END %] |
59 |
<main> |
79 |
<main> |
60 |
|
80 |
|
61 |
[% UNLESS ( link_opac_base ) %] |
|
|
62 |
<div class="dialog alert"> |
63 |
Warning: Preference <em>OPACBaseURL</em> not set. Some links might not work! |
64 |
</div> |
65 |
[% END %] |
66 |
|
67 |
[% UNLESS ( form || view ) %] |
81 |
[% UNLESS ( form || view ) %] |
|
|
82 |
[% UNLESS ( link_opac_base ) %] |
83 |
<div class="dialog error"> |
84 |
System preference <strong class="error"><a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACBaseURL">OPACBaseURL</a></strong> not set. Some links might not work! |
85 |
</div> |
86 |
[% END %] |
87 |
|
68 |
<div id="toolbar" class="btn-toolbar"> |
88 |
<div id="toolbar" class="btn-toolbar"> |
69 |
<a class="btn btn-default" id="newentry" href="[% link_self | url %]?op=form"><i class="fa fa-plus"></i> New page</a> |
89 |
<a class="btn btn-default" id="newentry" href="[% link_self | url %]?op=form"><i class="fa fa-plus"></i> New page</a> |
70 |
</div> |
90 |
</div> |
Lines 84-89
Link Here
|
84 |
<div class="row"> |
104 |
<div class="row"> |
85 |
<div id="cms-page" class="col-sm-8"> |
105 |
<div id="cms-page" class="col-sm-8"> |
86 |
<h1>Pages: [% cms_page.title | html %]</h1> |
106 |
<h1>Pages: [% cms_page.title | html %]</h1> |
|
|
107 |
[% IF ( cms_page.branchcode && cms_page.branchcode != Branches.GetLoggedInBranchcode ) %] |
108 |
<div class="dialog message">This page is listed to display for [% Branches.GetName( cms_page.branchcode ) %] only.</div> |
109 |
[% END %] |
87 |
[% IF ( cms_page.publish == 1 ) %] |
110 |
[% IF ( cms_page.publish == 1 ) %] |
88 |
[% cms_page.content | $raw %] |
111 |
[% cms_page.content | $raw %] |
89 |
[% ELSE %] |
112 |
[% ELSE %] |