'css/material';
}
+sub webpages_path {
+ "templates/mobile_webpages";
+}
+
sub init_sub_layouts {
[
SL::Layout::None->new,
}
sub pre_content {
- $_[0]->presenter->render('menu/material', menu => $_[0]->menu, C => SL::Controller::Base->new);
+ $_[0]->presenter->render('menu/menu', menu => $_[0]->menu, C => SL::Controller::Base->new);
}
1;
'css/material';
}
+sub webpages_path {
+ "templates/mobile_webpages"
+}
+
sub init_sub_layouts {
[
SL::Layout::None->new,
--- /dev/null
+[%- USE LxERP %]
+[%- USE HTML %]
+
+ <h1 class="message_error">[%- LxERP.t8('Error!') %]</h1>
+
+ <p>
+ [%- LxERP.t8('An exception occurred during execution.') %]
+ </p>
+
+ <div>
+ <table>
+ <tr>
+ <td valign="top">[%- LxERP.t8('Type') %]:</td>
+ <td valign="top">[%- HTML.escape(error.type) %]</td>
+ </tr>
+
+ <tr>
+ <td valign="top">[%- LxERP.t8('Information') %]:</td>
+ <td valign="top"><pre>[%- HTML.escape(error.info) %]</pre></td>
+ </tr>
+ </table>
+ </div>
--- /dev/null
+[%- USE T8 %]
+<div class="message_ok">[% IF title_information %][% title_information %][% ELSE %][% 'Information' | $T8 %][% END %]</div>
+<p>[% label_information %]</p>
--- /dev/null
+[%- USE T8 %]
+[%- USE HTML %][%- USE LxERP %]
+ <center>
+ <a class="nomobile" href="http://www.kivitendo.de" target="_top"><img src="image/kivitendo[% xmas %].png" class='kivitendo-logo' border="0" alt='[% 'kivitendo' | $T8 %]' title="[% 'kivitendo Homepage' | $T8 %]"></a>
+
+ <h3 class="login">[% 'kivitendo' | $T8 %] [% version %]</h3>
+
+[%- IF git_head %]
+ <p>[%- LxERP.t8("Git revision: #1, #2 #3", git_head.hash.substr(0, 7), git_head.author_date.to_kivitendo, git_head.author_date.strftime('%H:%M:%S %Z')) %]</p>
+[%- END %]
+
+ <p>[% 'companylogo_subtitle' | $T8 %]</p>
+ <p>
+ <b>
+ [% HTML.escape(defaults.company) %]
+ <br>
+ [% HTML.escape(defaults.address).replace('\\\\n', '<br>').replace('\n', '<br>') %]
+ </b>
+
+ <br>
+ <br>
+
+ <table border="0">
+ <tr>
+ <th align="left"><a href="am.pl?action=config" title="[% 'Preferences' | $T8 %]">[% 'User' | $T8 %]</a></th>
+ <td>[% HTML.escape(MYCONFIG.name) %]</td>
+ </tr>
+ <tr>
+ <th align="left">[% IF AUTH.assert('admin', 'may_fail') %]<a href="controller.pl?action=ClientConfig/edit" title="[% 'Client Configuration' | $T8 %]">[% END %][% 'Client' | $T8 %][% IF AUTH.assert('admin', 'may_fail') %]</a>[% END %]</th>
+ <td>[% HTML.escape(client.name) %]</td>
+ </tr>
+ <tr>
+ <th align="left"><a href="am.pl?action=config" title="[% 'Preferences' | $T8 %]">[% 'Language' | $T8 %]</a></th>
+ <td>[% HTML.escape(MYCONFIG.countrycode) %]</td>
+ </tr>
+ <tr>
+ <th align="left">[% 'Webserver interface' | $T8 %]</th>
+ <td>[% HTML.escape(interface) %]</td>
+ </tr>
+ <tr class="nomobile">
+ <th align="left">[% 'kivitendo Homepage' | $T8 %]:</th>
+ <td><a href="http://kivitendo.de" target="_blank" title="[% 'kivitendo Homepage' | $T8 %]">http://kivitendo.de</a></td>
+ </tr>
+ </table>
+ </center>
+
+ [%- todo_list %]
--- /dev/null
+[%- USE T8 %]
+[%- USE L %]
+[%- USE HTML %]
+[%- USE LxERP -%]
+<nav>
+ <div class="nav-wrapper">
+ <a class="brand-logo">Kivitendo</a>
+ <a href="#" data-target="nav-mobile" class="sidenav-trigger"><i class="material-icons">menu</i></a>
+ <ul id="nav" class="right hide-on-med-and-down">
+ [% PROCESS menu_items %]
+ </ul>
+ </div>
+</nav>
+
+<ul id="nav-mobile" class="sidenav">
+ [% PROCESS menu_items %]
+</ul>
+
+
+[%- BLOCK menu_items %]
+ [%- IF MYCONFIG.login %]
+ <li><a>[% 'User' | $T8 %]: [% MYCONFIG.login | html %]</a></li>
+ [%- ELSE %]
+ <li>[% L.link(C.url_for(controller='LoginScreen', action='user_login'), LxERP.t8('Login')) %]</li>
+ [%- END %]
+
+ <li><div class="divider"></div></li>
+
+ [%- FOREACH node = menu.tree %]
+ [%- NEXT UNLESS node.visible %]
+ <li>[% L.link(menu.href_for_node(node) || '#', menu.name_for_node(node), target=node.target) %]</li>
+ [%- END %]
+
+ <li><div class="divider"></div></li>
+
+ [%- IF MYCONFIG.login %]
+ <li>[% L.link(C.url_for(controller='LoginScreen', action='logout'), LxERP.t8('Logout')) %]</li>
+ [%- END %]
+[% END %]
+++ /dev/null
-[%- USE T8 %]
-[%- USE L %]
-[%- USE HTML %]
-[%- USE LxERP -%]
-<nav>
- <div class="nav-wrapper">
- <a class="brand-logo">Kivitendo</a>
- <a href="#" data-target="nav-mobile" class="sidenav-trigger"><i class="material-icons">menu</i></a>
- <ul id="nav" class="right hide-on-med-and-down">
- [% PROCESS menu_items %]
- </ul>
- </div>
-</nav>
-
-<ul id="nav-mobile" class="sidenav">
- [% PROCESS menu_items %]
-</ul>
-
-
-[%- BLOCK menu_items %]
- [%- IF MYCONFIG.login %]
- <li><a>[% 'User' | $T8 %]: [% MYCONFIG.login | html %]</a></li>
- [%- ELSE %]
- <li>[% L.link(C.url_for(controller='LoginScreen', action='user_login'), LxERP.t8('Login')) %]</li>
- [%- END %]
-
- <li><div class="divider"></div></li>
-
- [%- FOREACH node = menu.tree %]
- [%- NEXT UNLESS node.visible %]
- <li>[% L.link(menu.href_for_node(node) || '#', menu.name_for_node(node), target=node.target) %]</li>
- [%- END %]
-
- <li><div class="divider"></div></li>
-
- [%- IF MYCONFIG.login %]
- <li>[% L.link(C.url_for(controller='LoginScreen', action='logout'), LxERP.t8('Logout')) %]</li>
- [%- END %]
-[% END %]