Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2a7401d0

Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt

  • ID 2a7401d053715b2a19d8cd899e9163e8bb73b449
  • Vorgänger 7a9ed05c
  • Nachfolger c04f5090

Neues Design 2019 Standard-Code templates/webpages/requirement_spec_text_block/_picture_form.html

Unterschiede anzeigen:

templates/webpages/requirement_spec_text_block/_picture_form.html
[% L.hidden_tag(id_base _ '.requirement_spec_id', SELF.text_block.requirement_spec_id) %]
<h2>
[%- IF SELF.picture.id %]
[%- LxERP.t8("Edit text block picture #1", SELF.picture.number) %]
[%- ELSE %]
[%- LxERP.t8("Add picture to text block") %]
[%- END %]
[% IF SELF.picture.id %]
[% LxERP.t8("Edit text block picture #1", SELF.picture.number) %]
[% ELSE %]
[% LxERP.t8("Add picture to text block") %]
[% END %]
</h2>
<table>
[% IF SELF.picture.number %]
<tr>
<th align="right">[%- LxERP.t8("Number") %]:</th>
<th>[% LxERP.t8("Number") %]:</th>
<td>[% HTML.escape(SELF.picture.number) %]</td>
</tr>
[% END %]
<tr>
<th align="right">[%- LxERP.t8("Description") %]:</th>
<th>[% LxERP.t8("Description") %]:</th>
<td>[% L.input_tag(id_base _ '.description', SELF.picture.description, style=style) %]</td>
</tr>
[% IF SELF.picture.picture_content %]
<tr>
<th align="right">[%- LxERP.t8("File name") %]:</th>
<th>[% LxERP.t8("File name") %]:</th>
<td>[% HTML.escape(SELF.picture.picture_file_name) %]</td>
</tr>
<tr>
<th align="right">[%- LxERP.t8("MIME type") %]:</th>
<th>[% LxERP.t8("MIME type") %]:</th>
<td>[% HTML.escape(SELF.picture.picture_content_type) %]</td>
</tr>
<tr>
<th align="right">[%- LxERP.t8("Dimensions") %]:</th>
<th>[% LxERP.t8("Dimensions") %]:</th>
<td>[% HTML.escape(SELF.picture.picture_width) %]x[% HTML.escape(SELF.picture.picture_height) %]</td>
</tr>
<tr>
<th align="right">[%- LxERP.t8("Uploaded at") %]:</th>
<th>[% LxERP.t8("Uploaded at") %]:</th>
<td>[% HTML.escape(SELF.picture.picture_mtime.to_kivitendo(precision='second')) %]</td>
</tr>
[% END %]
<tr>
<th align="right">[%- LxERP.t8("Select file to upload") %]:</th>
<th>[% LxERP.t8("Select file to upload") %]:</th>
<td>[% L.input_tag(id_base _ '.picture_content', '', type='file') %]</td>
</tr>
</table>
<p>
[%- L.ajax_submit_tag('controller.pl?action=RequirementSpecTextBlock/ajax_' _ (SELF.picture.id ? 'update' : 'create') _ '_picture', '#' _ id_base _ '_form', LxERP.t8('Save'), no_id=1) %]
<a href="#" onclick="$('#jqueryui_popup_dialog').dialog('close');">[%- LxERP.t8("Cancel") %]</a>
[% L.ajax_submit_tag('controller.pl?action=RequirementSpecTextBlock/ajax_' _ (SELF.picture.id ? 'update' : 'create') _ '_picture', '#' _ id_base _ '_form', LxERP.t8('Save'), no_id=1) %]
<a href="#" onclick="$('#jqueryui_popup_dialog').dialog('close');">[% LxERP.t8("Cancel") %]</a>
</p>
</form>

Auch abrufbar als: Unified diff