]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/delivery_term/list.html
date error in mapping
[mfinanz.git] / templates / webpages / delivery_term / list.html
index b47f9d14ed0e8297d7aa84091823e2d8e7b0bd90..1f6e37c15e428fb0ffa5e384f86b4d0cebbcf1ae 100644 (file)
@@ -1,10 +1,9 @@
 [% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %]
-
- <div class="listtop">[% FORM.title %]</div>
+<h1>[% FORM.title %]</h1>
 
 [%- INCLUDE 'common/flash.html' %]
 
- <form method="post" action="controller.pl">
+ <form method="post" action="controller.pl" id="form">
   [% IF !DELIVERY_TERMS.size %]
    <p>
     [%- 'No delivery term has been created yet.' | $T8 %]
    <table id="delivery_term_list">
     <thead>
     <tr class="listheading">
-     <th align="center"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></th>
+     <th align="center"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></th>
      <th>[%- 'Description' | $T8 %]</th>
      <th>[%- 'Long Description' | $T8 %]</th>
+     <th>[%- 'Obsolete' | $T8 %]</th>
     </tr>
     </thead>
 
     <tbody>
     [%- FOREACH delivery_term = DELIVERY_TERMS %]
     <tr class="listrow[% loop.count % 2 %]" id="delivery_term_id_[% delivery_term.id %]">
-     <td align="center" class="dragdrop"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></td>
+     <td align="center" class="dragdrop"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></td>
      <td>
       <a href="[% SELF.url_for(action => 'edit', id => delivery_term.id) %]">
        [%- HTML.escape(delivery_term.description) %]
       </a>
      </td>
      <td>[%- HTML.escape(delivery_term.description_long) %]</td>
+     <td>[% IF delivery_term.obsolete %][% LxERP.t8("yes") %][% ELSE %][% LxERP.t8("no") %][% END %]</td>
     </tr>
     [%- END %]
     </tbody>
    </table>
   [%- END %]
-
-  <p>
-   <a href="[% SELF.url_for(action => 'new') %]">[%- 'Create new delivery term' | $T8 %]</a>
-  </p>
  </form>
 
  [% L.sortable_element('#delivery_term_list tbody', url => 'controller.pl?action=DeliveryTerm/reorder', with => 'delivery_term_id') %]
-