Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5d0056d6

Von Hans Peter Schlaepfer vor fast 5 Jahren hinzugefügt

  • ID 5d0056d6fd59f2a33bd1171ed9d87cc46328e984
  • Vorgänger 78e1d7a0
  • Nachfolger 13011246

Neues kivitendo Design Aenderungen in templates/webpages/requirement_spec/..

Unterschiede anzeigen:

templates/webpages/requirement_spec/_new_project_form.html
1
[%- USE LxERP -%][%- USE L -%]
2
[%- SET id_prefix = "project_link_form"
3
        style     = "width: 300px" %]
4
<form method="post" action="controller.pl" id="[% id_prefix %]"[% UNLESS submit_as == 'post' %] class="edit-project-link-context-menu"[% END %]>
5
 <h2>[% LxERP.t8("Edit project link") %]: [% LxERP.t8("Create a new project") %]</h2>
6

  
7
 [% L.hidden_tag("id", SELF.requirement_spec.id, id=id_prefix _ "_id") %]
8
 [% L.hidden_tag("project_link_action", "create", id=id_prefix _ "_project_link_action") %]
1
[% USE LxERP %]
2
[% USE L %]
3
[% SET id_prefix = "project_link_form" %]
4
[% style = "width:300px;" %] 
9 5

  
10
 <table class="rs_input_field">
11
  <tr>
12
   <td>[% LxERP.t8("Project Number") %]</td>
13
   <td>[% L.input_tag("project.projectnumber", "", id=id_prefix _ "_projectnumber", style=style) %]</td>
14
  </tr>
15

  
16
  <tr>
17
   <td>[% LxERP.t8("Description") %]</td>
18
   <td>[% L.input_tag("project.description", SELF.requirement_spec.title, id=id_prefix _ "_description", style=style) %]</td>
19
  </tr>
6
<form method="post" action="controller.pl" id="[% id_prefix %]"[% UNLESS submit_as == 'post' %] class="edit-project-link-context-menu"[% END %]>
20 7

  
21
  <tr>
22
   <td>[% LxERP.t8("Project Type") %]</td>
23
   <td>[% L.select_tag("project.project_type_id", SELF.project_types, default=SELF.default_project_type.id, title_key="description", id=id_prefix _ "_project_type_id", style=style) %]</td>
24
  </tr>
25 8

  
26
  <tr>
27
   <td>[% LxERP.t8("Project Status") %]</td>
28
   <td>[% L.select_tag("project.project_status_id", SELF.project_statuses, default=SELF.default_project_status.id, title_key="description", id=id_prefix _ "_project_status_id", style=style) %]</td>
29
  </tr>
9
[% L.hidden_tag("id", SELF.requirement_spec.id, id=id_prefix _ "_id") %]
10
[% L.hidden_tag("project_link_action", "create", id=id_prefix _ "_project_link_action") %]
30 11

  
31
  <tr>
32
   <td>[% LxERP.t8("Customer") %]</td>
33
   <td>[% L.select_tag("project.customer_id", SELF.customers, default=SELF.requirement_spec.customer_id, title_key="name", with_empty=1, id=id_prefix _ "_customer_id", style=style) %]</td>
34
  </tr>
35
 </table>
12
<table class="tbl-horizontal rs_input_field">
13
  <caption>[% LxERP.t8("Edit project link") %]: [% LxERP.t8("Create a new project") %]</caption>
14
  <tbody>
15
    <tr>
16
      <th>[% LxERP.t8("Project Number") %]</th>
17
      <td>[% L.input_tag("project.projectnumber", "", id=id_prefix _ "_projectnumber", style=style) %]</td>
18
    </tr>
19
    <tr>
20
      <th>[% LxERP.t8("Description") %]</th>
21
      <td>[% L.input_tag("project.description", SELF.requirement_spec.title, id=id_prefix _ "_description", style=style) %]</td>
22
    </tr>
23
    <tr>
24
      <th>[% LxERP.t8("Project Type") %]</th>
25
      <td>[% L.select_tag("project.project_type_id", SELF.project_types, default=SELF.default_project_type.id, title_key="description", id=id_prefix _ "_project_type_id", style=style) %]</td>
26
    </tr>
27
    <tr>
28
      <th>[% LxERP.t8("Project Status") %]</th>
29
      <td>[% L.select_tag("project.project_status_id", SELF.project_statuses, default=SELF.default_project_status.id, title_key="description", id=id_prefix _ "_project_status_id", style=style) %]</td>
30
    </tr>
31
    <tr>
32
      <th>[% LxERP.t8("Customer") %]</th>
33
      <td>[% L.select_tag("project.customer_id", SELF.customers, default=SELF.requirement_spec.customer_id, title_key="name", with_empty=1, id=id_prefix _ "_customer_id", style=style) %]</td>
34
    </tr>
35
  </tbody>
36
</table>
36 37

  
37
 <p>
38
 <div class="buttons">
38 39
  [% L.ajax_submit_tag("controller.pl?action=RequirementSpec/update_project_link",  "#" _ id_prefix, LxERP.t8("Save"), id=id_prefix _ '_submit') %]
39 40
  <script type="text/javascript"><!--
40 41
  $(function() {
41 42
    $("#[% id_prefix %] INPUT[type=text]").keydown(function(event) {
42 43
      if(event.keyCode == 13) {
43 44
        event.preventDefault();
44
        $('#[% id_prefix %]_submit').click();
45
        $("#[% id_prefix %]_submit").click();
45 46
        return false;
46 47
      }
47 48
    });
48 49
  });
49 50
--></script>
50
 </p>
51
</div>
51 52
</form>

Auch abrufbar als: Unified diff