PriceSource: Erste Version
[kivitendo-erp.git] / templates / webpages / oe / _price_sources_row.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE L %]
4 [%- USE LxERP %]
5 <tr class="listrow[% i % 2 %]" id="row[% i %]_3" style='display:none'>
6  <td colspan="[% row.colspan %]">
7    <span class="[% IF !row.obj.active_price_source %]bold[% END %]">
8    [% L.radio_button_tag('active_price_source_' _ i, label=LxERP.t8('None (PriceSource)'), checked=!row.obj.active_price_source, value='', onChange='update_price_source(' _ i _ ', \'\')') %]
9    </span>
10    [%- FOREACH price IN price_sources.$i.available_prices %]
11      <div class="[% IF price.source == row.obj.active_price_source %]bold[% END %]">
12      [% L.radio_button_tag('active_price_source_' _ i, value=price.source, checked=price.source == row.obj.active_price_source, label=LxERP.format_amount(price.price, 2) _ ' (' _ price.full_description _ ')', onChange='update_price_source(' _ i _ ', \'' _ price.source _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\')' ) %]
13      </div>
14    [%- END %]
15  </td>
16 </tr>