You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.7 KiB

  1. <templates>
  2. <t t-name="TranslateDialog">
  3. <table t-if="widget.view.translatable_fields" class="oe_frame oe_forms oe_translation_form" border="0" cellpadding="0" cellspacing="0" width="100%">
  4. <tr>
  5. <td class="oe_form_separator" width="1%" nowrap="nowrap">
  6. <div class="separator horizontal">Field</div>
  7. </td>
  8. <th t-foreach="widget.languages" align="left">
  9. <div class="separator horizontal"><t t-esc="name"/></div>
  10. </th>
  11. </tr>
  12. <tr t-foreach="widget.view.translatable_fields" t-as="field" t-att-data-field="field.name">
  13. <td class="oe_form_frame_cell" width="1%" nowrap="nowrap">
  14. <label class="oe_label"><t t-esc="field.string"/>:</label>
  15. </td>
  16. <td t-foreach="widget.languages" t-as="lg" class="oe_form_frame_cell">
  17. <input t-if="field.field.type == 'char' || field.field.type == 'url'" type="text" t-attf-name="#{lg.code}-#{field.name}" value="" data-value="" class="oe_translation_field"/>
  18. <textarea t-if="field.field.type == 'text'" t-attf-name="#{lg.code}-#{field.name}" data-value="" class="oe_translation_field" ></textarea>
  19. <div t-if="field.field.type == 'html'" class="oe_form_field_html">
  20. <textarea class="oe_translation_field oe_form_field" t-attf-name="#{lg.code}-#{field.name}" data-value=""/>
  21. </div>
  22. </td>
  23. </tr>
  24. </table>
  25. </t>
  26. <t t-name="TranslateDialog.buttons">
  27. <button class="oe_form_translate_dialog_save_button oe_button oe_highlight">Save</button>
  28. <button class="oe_form_translate_dialog_cancel_button oe_button">Cancel</button>
  29. </t>
  30. </templates>