]> wagnertech.de Git - kivitendo-erp.git/blobdiff - templates/webpages/projects/project_form_de.html
Automatisches Ersetzen von <translate>...</translate> durch $T8
[kivitendo-erp.git] / templates / webpages / projects / project_form_de.html
index 231797b054ffa3d82bb0b92cbbd2756b3ef44915..c27a2547bea9b18a2e1a5a41a385b84006fa077d 100644 (file)
@@ -1,3 +1,4 @@
+[%- USE T8 %]
 [% USE HTML %][% USE LxERP %]<body>
 
  [%- IF message %]
@@ -6,58 +7,96 @@
  <hr>
  [%- END %]
 
+ <p><div class="listtop">[% title %]</div></p>
+
  <form method="post" action="projects.pl">
 
   <input type="hidden" name="project.id" value="[% HTML.escape(project.id) %]">
+  <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
+
+  <ul id="maintab" class="shadetabs">
+   <li class="selected"><a href="#" rel="basic_data">[% 'Basic data' | $T8 %]</a></li>
+   [%- IF CUSTOM_VARIABLES.size %]
+   <li><a href="#" rel="custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
+   [%- END %]
+  </ul>
 
-  <div class="listtop">[% title %]</div>
+  <div class="tabcontentstyle">
 
-  <p>
-   <table>
-    <tr>
-     <th align="right">Nummer</th>
-     <td><input name="project.projectnumber" size="20" value="[% HTML.escape(project.projectnumber) %]"></td>
-    </tr>
-
-    <tr>
-     <th align="right">Beschreibung</th>
-     <td>
-      [%- SET rows = LxERP.numtextrows(project.description, 60) %]
-      [%- IF rows > 1 %]
-      <textarea name="project.description" rows="rows" cols="60" style="width: 100%" wrap="soft">[% HTML.escape(project.description) %]</textarea>
-      [%- ELSE %]
-      <input name="project.description" size="60" value="[% HTML.escape(project.description) %]">
+   <div id="basic_data" class="tabcontent">
+
+    <table>
+     <tr>
+      <th align="right">[% 'Number' | $T8 %]</th>
+      <td><input name="project.projectnumber" size="20" value="[% HTML.escape(project.projectnumber) %]"></td>
+     </tr>
+
+     <tr>
+      <th align="right">[% 'Description' | $T8 %]</th>
+      <td>
+       [%- SET rows = LxERP.numtextrows(project.description, 60) %]
+       [%- IF rows > 1 %]
+       <textarea name="project.description" rows="rows" cols="60" style="width: 100%" wrap="soft">[% HTML.escape(project.description) %]</textarea>
+       [%- ELSE %]
+       <input name="project.description" size="60" value="[% HTML.escape(project.description) %]">
+       [%- END %]
+      </td>
+     </tr>
+
+     [%- IF project.id %]
+     <tr>
+      <th align="right">&nbsp;</th>
+      <td>
+       <input type="radio" name="project.active" id="active_1" value="1"[% IF project.active %] checked[% END %]><label for="active_1">[% 'Active' | $T8 %]</label>
+       <input type="radio" name="project.active" id="active_0" value="0"[% IF !project.active %] checked[% END %]><label for="active_0">[% 'Inactive' | $T8 %]</label>
+      </td>
+     </tr>
+     [%- END %]
+    </table>
+
+    <br style="clear: left" />
+   </div>
+
+   [%- IF CUSTOM_VARIABLES.size %]
+   <div id="custom_variables" class="tabcontent">
+
+    <p>
+     <table>
+      [%- FOREACH var = CUSTOM_VARIABLES %]
+      <tr>
+       <td align="right" valign="top">[% HTML.escape(var.description) %]</td>
+       <td valign="top">[% var.HTML_CODE %]</td>
+      </tr>
       [%- END %]
-     </td>
-    </tr>
-
-    [%- IF project.id %]
-    <tr>
-     <th align="right">&nbsp;</th>
-     <td>
-      <input type="radio" name="project.active" id="active_1" value="1"[% IF project.active %] checked[% END %]><label for="active_1">Aktiv</label>
-      <input type="radio" name="project.active" id="active_0" value="0"[% IF !project.active %] checked[% END %]><label for="active_0">Inaktiv</label>
-     </td>
-    </tr>
-    [%- END %]
-   </table>
-  </p>
+     </table>
+    </p>
 
-  <p><hr size="3" noshade></p>
+    <br style="clear: left" />
+   </div>
+   [%- END %]
 
-  <input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
+  </div>
 
   <p>
-   <input type="submit" class="submit" name="action" value="Speichern">
+   <input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]">
    [%- IF project.id %]
-   <input type="submit" class="submit" name="action" value="als neu speichern">
+   <input type="submit" class="submit" name="action" value="[% 'Save as new' | $T8 %]">
    [%- IF project.orphaned %]
-   <input type="submit" class="submit" name="action" value="Löschen">
+   <input type="submit" class="submit" name="action" value="[% 'Delete' | $T8 %]">
    [%- END %]
-   <input type="button" onclick="set_history_window([% HTML.escape(project.id) %]);" name="history" id="history" value="Historie">
+   <input type="button" onclick="set_history_window([% HTML.escape(project.id) %]);" name="history" id="history" value="[% 'history' | $T8 %]">
    [%- END %]
   </p>
  </form>
 
+ <script type="text/javascript">
+  <!--
+      var maintab = new ddtabcontent("maintab");
+      maintab.setpersist(true);
+      maintab.setselectedClassTarget("link"); //"link" or "linkparent"
+      maintab.init();
+    -->
+ </script>
+
 </body>
 </html>