Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 44ab0175

Von Sven Schöling vor mehr als 3 Jahren hinzugefügt

  • ID 44ab0175287e8d36dac1aa4ba35ade6122b65ea7
  • Vorgänger e774871e
  • Nachfolger 32260f2b

Mobile: templates nach templates/mobile_webpages verschoben

Unterschiede anzeigen:

SL/Layout/Material.pm
13 13
  'css/material';
14 14
}
15 15

  
16
sub webpages_path {
17
  "templates/mobile_webpages";
18
}
19

  
16 20
sub init_sub_layouts {
17 21
  [
18 22
    SL::Layout::None->new,
SL/Layout/MaterialMenu.pm
10 10
}
11 11

  
12 12
sub pre_content {
13
  $_[0]->presenter->render('menu/material', menu => $_[0]->menu, C => SL::Controller::Base->new);
13
  $_[0]->presenter->render('menu/menu', menu => $_[0]->menu, C => SL::Controller::Base->new);
14 14
}
15 15

  
16 16
1;
SL/Layout/MobileLogin.pm
10 10
  'css/material';
11 11
}
12 12

  
13
sub webpages_path {
14
  "templates/mobile_webpages"
15
}
16

  
13 17
sub init_sub_layouts {
14 18
  [
15 19
    SL::Layout::None->new,
templates/mobile_webpages/generic/exception.html
1
[%- USE LxERP %]
2
[%- USE HTML %]
3

  
4
 <h1 class="message_error">[%- LxERP.t8('Error!') %]</h1>
5

  
6
 <p>
7
  [%- LxERP.t8('An exception occurred during execution.') %]
8
 </p>
9

  
10
 <div>
11
  <table>
12
   <tr>
13
    <td valign="top">[%- LxERP.t8('Type') %]:</td>
14
    <td valign="top">[%- HTML.escape(error.type) %]</td>
15
   </tr>
16

  
17
   <tr>
18
    <td valign="top">[%- LxERP.t8('Information') %]:</td>
19
    <td valign="top"><pre>[%- HTML.escape(error.info) %]</pre></td>
20
   </tr>
21
  </table>
22
 </div>
templates/mobile_webpages/generic/information.html
1
[%- USE T8 %]
2
<div class="message_ok">[% IF title_information %][% title_information %][% ELSE %][% 'Information' | $T8 %][% END %]</div>
3
<p>[% label_information %]</p>
templates/mobile_webpages/login/company_logo.html
1
[%- USE T8 %]
2
[%- USE HTML %][%- USE LxERP %]
3
 <center>
4
  <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>
5

  
6
  <h3 class="login">[% 'kivitendo' | $T8 %] [% version %]</h3>
7

  
8
[%- IF git_head %]
9
  <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>
10
[%- END %]
11

  
12
  <p>[% 'companylogo_subtitle' | $T8 %]</p>
13
  <p>
14
   <b>
15
    [% HTML.escape(defaults.company) %]
16
    <br>
17
    [% HTML.escape(defaults.address).replace('\\\\n', '<br>').replace('\n', '<br>') %]
18
   </b>
19

  
20
   <br>
21
   <br>
22

  
23
   <table border="0">
24
    <tr>
25
     <th align="left"><a href="am.pl?action=config" title="[% 'Preferences' | $T8 %]">[% 'User' | $T8 %]</a></th>
26
     <td>[% HTML.escape(MYCONFIG.name) %]</td>
27
    </tr>
28
    <tr>
29
     <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>
30
     <td>[% HTML.escape(client.name) %]</td>
31
    </tr>
32
    <tr>
33
     <th align="left"><a href="am.pl?action=config" title="[% 'Preferences' | $T8 %]">[% 'Language' | $T8 %]</a></th>
34
     <td>[% HTML.escape(MYCONFIG.countrycode) %]</td>
35
    </tr>
36
    <tr>
37
     <th align="left">[% 'Webserver interface' | $T8 %]</th>
38
     <td>[% HTML.escape(interface) %]</td>
39
    </tr>
40
    <tr class="nomobile">
41
     <th align="left">[% 'kivitendo Homepage' | $T8 %]:</th>
42
     <td><a href="http://kivitendo.de" target="_blank" title="[% 'kivitendo Homepage' | $T8 %]">http://kivitendo.de</a></td>
43
    </tr>
44
   </table>
45
 </center>
46

  
47
 [%- todo_list %]
templates/mobile_webpages/menu/menu.html
1
[%- USE T8 %]
2
[%- USE L %]
3
[%- USE HTML %]
4
[%- USE LxERP -%]
5
<nav>
6
  <div class="nav-wrapper">
7
    <a class="brand-logo">Kivitendo</a>
8
    <a href="#" data-target="nav-mobile" class="sidenav-trigger"><i class="material-icons">menu</i></a>
9
    <ul id="nav" class="right hide-on-med-and-down">
10
      [% PROCESS menu_items %]
11
    </ul>
12
  </div>
13
</nav>
14

  
15
<ul id="nav-mobile" class="sidenav">
16
  [% PROCESS menu_items %]
17
</ul>
18

  
19

  
20
[%- BLOCK menu_items %]
21
 [%- IF MYCONFIG.login %]
22
  <li><a>[% 'User' | $T8 %]: [% MYCONFIG.login | html %]</a></li>
23
 [%- ELSE %]
24
  <li>[% L.link(C.url_for(controller='LoginScreen', action='user_login'), LxERP.t8('Login')) %]</li>
25
 [%- END %]
26

  
27
  <li><div class="divider"></div></li>
28

  
29
  [%- FOREACH node = menu.tree %]
30
    [%- NEXT UNLESS node.visible %]
31
    <li>[% L.link(menu.href_for_node(node) || '#', menu.name_for_node(node), target=node.target) %]</li>
32
  [%- END %]
33

  
34
  <li><div class="divider"></div></li>
35

  
36
 [%- IF MYCONFIG.login %]
37
  <li>[% L.link(C.url_for(controller='LoginScreen', action='logout'), LxERP.t8('Logout')) %]</li>
38
 [%- END %]
39
[% END %]
templates/webpages/menu/material.html
1
[%- USE T8 %]
2
[%- USE L %]
3
[%- USE HTML %]
4
[%- USE LxERP -%]
5
<nav>
6
  <div class="nav-wrapper">
7
    <a class="brand-logo">Kivitendo</a>
8
    <a href="#" data-target="nav-mobile" class="sidenav-trigger"><i class="material-icons">menu</i></a>
9
    <ul id="nav" class="right hide-on-med-and-down">
10
      [% PROCESS menu_items %]
11
    </ul>
12
  </div>
13
</nav>
14

  
15
<ul id="nav-mobile" class="sidenav">
16
  [% PROCESS menu_items %]
17
</ul>
18

  
19

  
20
[%- BLOCK menu_items %]
21
 [%- IF MYCONFIG.login %]
22
  <li><a>[% 'User' | $T8 %]: [% MYCONFIG.login | html %]</a></li>
23
 [%- ELSE %]
24
  <li>[% L.link(C.url_for(controller='LoginScreen', action='user_login'), LxERP.t8('Login')) %]</li>
25
 [%- END %]
26

  
27
  <li><div class="divider"></div></li>
28

  
29
  [%- FOREACH node = menu.tree %]
30
    [%- NEXT UNLESS node.visible %]
31
    <li>[% L.link(menu.href_for_node(node) || '#', menu.name_for_node(node), target=node.target) %]</li>
32
  [%- END %]
33

  
34
  <li><div class="divider"></div></li>
35

  
36
 [%- IF MYCONFIG.login %]
37
  <li>[% L.link(C.url_for(controller='LoginScreen', action='logout'), LxERP.t8('Logout')) %]</li>
38
 [%- END %]
39
[% END %]

Auch abrufbar als: Unified diff