Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 44d893c2

Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt

  • ID 44d893c2d2589ac8d09d255f9be0e38d74c48407
  • Vorgänger 839ed59d
  • Nachfolger cb347e6a

Datenbankverwaltung in neuen Admin-Controller verschoben

Unterschiede anzeigen:

templates/webpages/admin/dbadmin.html
1
[%- USE T8 %]
2
[%- USE HTML %]
3
  <h1>[% title %]</h1>
4

  
5
  <form method="post" action="admin.pl">
6
   <a href="controller.pl?action=Admin/show">[% 'Back' | $T8 %]</a>
7

  
8
   <table>
9
    <tr>
10
     <td>
11

  
12
      <table>
13

  
14
       <tr>
15
        <td>
16
         <table>
17

  
18
          <tr>
19

  
20
           <th align="right">[% 'Host' | $T8 %]</th>
21
           <td><input name="dbhost" size="25" value="[% HTML.escape(dbhost) %]"></td>
22
           <th align="right">[% 'Port' | $T8 %]</th>
23
           <td><input name="dbport" size="5" value="[% HTML.escape(dbport) %]"></td>
24

  
25
          </tr>
26

  
27
          <tr>
28

  
29
           <th align="right">[% 'Database User' | $T8 %]</th>
30
           <td><input name="dbuser" size="10" value="[% HTML.escape(dbuser) %]"></td>
31
           <th align="right">[% 'Password' | $T8 %]</th>
32
           <td><input type="password" name="dbpasswd" size="10"></td>
33

  
34
          </tr>
35

  
36
          <tr>
37

  
38
           <th align="right">[% 'Database template' | $T8 %]</th>
39
           <td colspan="3"><input name="dbdefault" size="10" value="[% HTML.escape(dbdefault) %]"></td>
40

  
41
          </tr>
42

  
43
         </table>
44

  
45
        </td>
46
       </tr>
47
      </table>
48

  
49
      <input name="callback" type="hidden" value="controller.pl?action=Admin/show">
50

  
51
      <br>
52
      <input type="submit" class="submit" name="action" value="[% 'Create Dataset' | $T8 %]">
53
      <input type="submit" class="submit" name="action" value="[% 'Update Dataset' | $T8 %]">
54
      <input type="submit" class="submit" name="action" value="[% 'Delete Dataset' | $T8 %]">
55
      [% IF ALLOW_DBBACKUP %]
56
       <input type="submit" class="submit" name="action" value="[% 'Backup Dataset' | $T8 %]">
57
       <input type="submit" class="submit" name="action" value="[% 'Restore Dataset' | $T8 %]">
58
      [% END %]
59
     </td>
60
    </tr>
61
   </table>
62
  </form>
63

  
64
  <p>[% 'This is a preliminary check for existing sources. Nothing will be created or deleted at this stage!' | $T8 %]</p>
65

  
66
  <p>[% 'Leave host and port field empty unless you want to make a remote connection.' | $T8 %]</p>
1
[%- USE HTML %][%- USE LxERP -%][%- USE L -%]
2

  
3
[% INCLUDE 'common/flash.html' %]
4

  
5
<h1>[% HTML.escape(title) %]</h1>
6

  
7
<p><a href="controller.pl?action=Admin/show">[% LxERP.t8('Back') %]</a></p>
8

  
9
<form method="post" action="controller.pl">
10
 <table>
11
  <tr>
12
   <th align="right">[% LxERP.t8('Host') %]</th>
13
   <td>[% L.input_tag('dbhost', FORM.dbhost, size=30) %]</td>
14
   <th align="right">[% LxERP.t8('Port') %]</th>
15
   <td>[% L.input_tag('dbport', FORM.dbport, size=6) %]</td>
16
  </tr>
17

  
18
  <tr>
19
   <th align="right">[% LxERP.t8('Database User') %]</th>
20
   <td>[% L.input_tag("dbuser", FORM.dbuser, size=30) %]</td>
21
   <th align="right">[% LxERP.t8('Password') %]</th>
22
   <td>[% L.input_tag("dbpasswd", FORM.dbpasswd, type='password', size=30) %]</td>
23
  </tr>
24

  
25
  <tr>
26
   <th align="right">[% LxERP.t8('Database template') %]</th>
27
   <td>[% L.input_tag("dbdefault", FORM.dbdefault, size=30) %]</td>
28
  </tr>
29
 </table>
30

  
31
 <div>
32
  [% L.hidden_tag("action", 'Admin/dispatch') %]
33
  [% L.submit_tag('action_create_dataset', LxERP.t8('Create Dataset')) %]
34
  [% L.submit_tag('action_delete_dataset', LxERP.t8('Delete Dataset')) %]
35
 </div>
36
</form>
37

  
38
<p>[% LxERP.t8('This is a preliminary check for existing sources. Nothing will be created or deleted at this stage!') %]</p>

Auch abrufbar als: Unified diff