Projekt: neue Spalten (Kunde, Typ, gültig)
[kivitendo-erp.git] / templates / webpages / projects / project_form.html
index c27a254..3b6f7f4 100644 (file)
@@ -1,5 +1,6 @@
 [%- USE T8 %]
-[% USE HTML %][% USE LxERP %]<body>
+[%- USE L %]
+[%- USE HTML %][%- USE LxERP %]
 
  [%- IF message %]
  <p>[% message %]</p>
@@ -7,7 +8,7 @@
  <hr>
  [%- END %]
 
- <p><div class="listtop">[% title %]</div></p>
+ <p><div class="listtop">[% title %]  [% HTML.escape(project.projectnumber) %]</div></p>
 
  <form method="post" action="projects.pl">
 
@@ -15,7 +16,7 @@
   <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>
+   <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 %]
@@ -28,7 +29,7 @@
     <table>
      <tr>
       <th align="right">[% 'Number' | $T8 %]</th>
-      <td><input name="project.projectnumber" size="20" value="[% HTML.escape(project.projectnumber) %]"></td>
+      <td><input name="project.projectnumber" size="60" value="[% HTML.escape(project.projectnumber) %]"></td>
      </tr>
 
      <tr>
       <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>
+       <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>
 
+     <tr>
+      <th align="right">[% 'Type' | $T8 %]</th>
+      <td>[% L.input_tag('project.type', project.type, size=60) %]</td>
+     </tr>
+
+     <tr>
+      <th align="right">[% 'Customer' | $T8 %]</th>
+      <td>[% L.select_tag('project.customer_id', ALL_CUSTOMERS, default=project.customer_id, title_key='name', style='width: 300px') %]</td>
+     </tr>
+
+     <tr>
+      <th align="right">[% 'Valid' | $T8 %]</th>
+      <td>[% L.select_tag('project.valid', [ [ 1, LxERP.t8('Valid') ], [ 0, LxERP.t8('Invalid') ] ], default=project.valid, style='width: 300px') %]</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>
+      <th align="right">[% 'Active' | $T8 %]</th>
+      <td>[% L.select_tag('project.active', [ [ 1, LxERP.t8('Active') ], [ 0, LxERP.t8('Inactive') ] ], default=project.valid, style='width: 300px') %]</td>
      </tr>
      [%- END %]
     </table>
@@ -78,6 +91,7 @@
   </div>
 
   <p>
+  [% L.online_help_tag('add_project') %]
    <input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]">
    [%- IF project.id %]
    <input type="submit" class="submit" name="action" value="[% 'Save as new' | $T8 %]">
       maintab.init();
     -->
  </script>
-
-</body>
-</html>