Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b2298b2e

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

  • ID b2298b2e26ba0db48200ef9f21f7205627679c90
  • Vorgänger 5c6e387a
  • Nachfolger c822ccb2

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::MaterialStyle->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 %]

Auch abrufbar als: Unified diff