Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision aab140df

Von Cem Aydin vor 8 Monaten hinzugefügt

  • ID aab140df185d34c2d884ca304a49d121932674fe
  • Vorgänger af169a38

Design4.0: Überflüssiges wrap=soft Attribut bei textarea_tags entfernt

wrap soft is der Standardwert:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#wrap

Beim ckeditor hat dieses soweit ich sehen kann keine Auswirkung. Falls
das Attribut doch vorhanden sein müsste dann sollte es IMHO in den
presenter eingebaut werden, anstatt in jede template einzeln.

Unterschiede anzeigen:

js/kivi.SalesPurchase.js
}
var $container = $('#popup_edit_longdescription_input_container');
var $edit = $('<textarea id="popup_edit_longdescription_input" class="texteditor-in-dialog texteditor-space-for-toolbar" wrap="soft" style="width: ' + textarea_width + 'px; height: ' + textarea_height + 'px;"></textarea>');
var $edit = $('<textarea id="popup_edit_longdescription_input" class="texteditor-in-dialog texteditor-space-for-toolbar" style="width: ' + textarea_width + 'px; height: ' + textarea_height + 'px;"></textarea>');
$container.children().remove();
$container.append($edit);
templates/design40_webpages/ap/form_header.html
<tbody>
<tr>
<td>
[% L.textarea_tag("notes", HTML.escape(notes), wrap="soft", rows=textarea_rows, readonly=readonly, class="wi-wide") %]
[% L.textarea_tag("notes", HTML.escape(notes), rows=textarea_rows, readonly=readonly, class="wi-wide") %]
</td>
</tr>
<tr>
<td>
<span class="label above">[% 'Internal Notes' | $T8 %]</span>
[% L.textarea_tag("intnotes", HTML.escape(intnotes), wrap="soft", rows=textarea_rows, readonly=readonly, class="wi-wide") %]
[% L.textarea_tag("intnotes", HTML.escape(intnotes), rows=textarea_rows, readonly=readonly, class="wi-wide") %]
</td>
</tr>
<tr>
templates/design40_webpages/ar/form_header.html
<tbody>
<tr>
<td>
[% L.textarea_tag("notes", HTML.escape(notes), wrap="soft", rows=rows, class="wi-wide") %]
[% L.textarea_tag("notes", HTML.escape(notes), rows=rows, class="wi-wide") %]
</td>
</tr>
<tr>
<td>
<span class="label above">[% 'Notes for customer' | $T8 %]</span>
[% L.textarea_tag("intnotes", HTML.escape(intnotes), wrap="soft", rows=rows, readonly=readonly, class="wi-wide") %]
[% L.textarea_tag("intnotes", HTML.escape(intnotes), rows=rows, readonly=readonly, class="wi-wide") %]
</td>
</tr>
</tbody>
templates/design40_webpages/delivery_order/tabs/basic_data.html
<tbody>
<tr>
<td class="wi-wide">
[% L.textarea_tag('order.notes', SELF.order.notes, wrap="soft", rows=7, class="texteditor wi-wide") %]
[% L.textarea_tag('order.notes', SELF.order.notes, rows=7, class="texteditor wi-wide") %]
</td>
</tr>
<tr>
<td>
<span class="label above">[% 'Internal Notes' | $T8 %]</span>
[% L.textarea_tag('order.intnotes', SELF.order.intnotes, wrap="soft", class="wi-wide") %]
[% L.textarea_tag('order.intnotes', SELF.order.intnotes, class="wi-wide") %]
</td>
</tr>
</tbody>
templates/design40_webpages/do/form_header.html
[% L.hidden_tag("notes", notes) %]
<div class="fake-textarea fake-wi-wide">[% P.restricted_html(notes) %]</div>
[% ELSE %]
[% L.textarea_tag("notes", notes, wrap="soft", rows=3, cols=10, class="texteditor wi-wide") %]
[% L.textarea_tag("notes", notes, rows=3, cols=10, class="texteditor wi-wide") %]
[% END %]
</td>
</tr>
<tr>
<td colspan="2">
<span class="label above">[% 'Internal Notes' | $T8 %]</span>
[% L.textarea_tag("intnotes", intnotes, wrap="soft", class="wi-wide") %]
[% L.textarea_tag("intnotes", intnotes, class="wi-wide") %]
</td>
</tr>
</tbody>
templates/design40_webpages/email_journal/tabs/basic_data.html
<tr>
<th>[% 'Extended status' | $T8 %]</th>
<td>
[% L.textarea_tag('extended_status', SELF.entry.extended_status, wrap="soft", style="color:black; height:25px", class="wi-verywide", disabled=1) %]
[% L.textarea_tag('extended_status', SELF.entry.extended_status, style="color:black; height:25px", class="wi-verywide", disabled=1) %]
</td>
</tr>
<tr>
......
<tr>
<th>[% 'Headers' | $T8 %]</th>
<td>
[% L.textarea_tag('headers', HTML.escape(SELF.entry.headers), wrap="soft", style="color:black; height:25px", class="wi-verywide", disabled=1) %]
[% L.textarea_tag('headers', HTML.escape(SELF.entry.headers), style="color:black; height:25px", class="wi-verywide", disabled=1) %]
</td>
</tr>
<tr>
templates/design40_webpages/ir/form_header.html
<th class="caption">[% 'Notes' | $T8 %]</th>
</tr>
<tr>
<td class="wi-wider">[% L.textarea_tag("notes", notes, wrap="soft", style="height:150px", class="texteditor wi-wider") %]</td>
<td class="wi-wider">[% L.textarea_tag("notes", notes, style="height:150px", class="texteditor wi-wider") %]</td>
</tr>
<tr>
<td>
<span class="label-above">[% 'Internal Notes' | $T8 %]</span>
[% L.textarea_tag("intnotes", intnotes, wrap="soft", class="wi-wider") %]
[% L.textarea_tag("intnotes", intnotes, class="wi-wider") %]
</td>
</tr>
[% IF id && follow_ups.size %]
templates/design40_webpages/is/form_header.html
</tr>
<tr>
<td class="wi-wide">
[% L.textarea_tag("notes", notes, wrap="soft", class="wi-wide texteditor") %]
[% L.textarea_tag("notes", notes, class="wi-wide texteditor") %]
</td>
</tr>
<tr>
<th>
<span class="label above">[% 'Internal Notes' | $T8 %]</span>
[% L.textarea_tag("intnotes", intnotes, wrap="soft", class="wi-wide") %]
[% L.textarea_tag("intnotes", intnotes, class="wi-wide") %]
</th>
</tr>
</tbody>
templates/design40_webpages/order/tabs/basic_data.html
<colgroup><col class="wi-wide"></colgroup>
<tbody>
<tr>
<td class="wi-wide">[% L.textarea_tag('order.notes', SELF.order.notes, wrap="soft",rows=7, class="texteditor wi-wide") %]</td>
<td class="wi-wide">[% L.textarea_tag('order.notes', SELF.order.notes, rows=7, class="texteditor wi-wide") %]</td>
</tr>
<tr>
<td><span class="label above">[% 'Internal Notes' | $T8 %]</span>[% L.textarea_tag('order.intnotes', SELF.order.intnotes, wrap="soft", class="wi-wide") %]</td>
<td><span class="label above">[% 'Internal Notes' | $T8 %]</span>[% L.textarea_tag('order.intnotes', SELF.order.intnotes, class="wi-wide") %]</td>
</tr>
</tbody>
</table>
templates/design40_webpages/order/tabs/phone_notes.html
</tr>
<tr>
<th>[% 'Body' | $T8 %]</th>
<td>[% L.textarea_tag('phone_note.body', '', wrap="soft", style="height: 350px", class="texteditor wi-wider") %]</td>
<td>[% L.textarea_tag('phone_note.body', '', style="height: 350px", class="texteditor wi-wider") %]</td>
</tr>
</tbody>
</table>
templates/design40_webpages/part/_basic_data.html
<colgroup> <col class="wi-small-mediumsmall"> </colgroup>
<tbody>
<tr>
<td> <textarea id="part.formel" name="part.formel" rows="[% IF notes_rows %][% HTML.escape(notes_rows) %][% ELSE %]3[% END %]" cols="10" wrap="soft" class="tooltipster-html wi-small-mediumsmall" title="[% 'The formula needs the following syntax:<br>For regular article:<br>Variablename= Variable Unit;<br>Variablename2= Variable2 Unit2;<br>...<br>###<br>Variable + ( Variable2 / Variable )<br><b>Please be beware of the spaces in the formula</b><br>' | $T8 %]">[% HTML.escape(SELF.part.formel) %]</textarea>
<td> <textarea id="part.formel" name="part.formel" rows="[% IF notes_rows %][% HTML.escape(notes_rows) %][% ELSE %]3[% END %]" cols="10" class="tooltipster-html wi-small-mediumsmall" title="[% 'The formula needs the following syntax:<br>For regular article:<br>Variablename= Variable Unit;<br>Variablename2= Variable2 Unit2;<br>...<br>###<br>Variable + ( Variable2 / Variable )<br><b>Please be beware of the spaces in the formula</b><br>' | $T8 %]">[% HTML.escape(SELF.part.formel) %]</textarea>
</td>
</tr>
</tbody>
templates/design40_webpages/reclamation/tabs/basic_data.html
<tbody>
<tr>
<td class="wi-wide">
[% L.textarea_tag('reclamation.notes', SELF.reclamation.notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor wi-wide") %]
[% L.textarea_tag('reclamation.notes', SELF.reclamation.notes, style="width: 350px; height: 150px", class="texteditor wi-wide") %]
</td>
</tr>
<tr>
<td>
<span class="label above">[% 'Internal Notes' | $T8 %]</span>
[% L.textarea_tag('reclamation.intnotes', SELF.reclamation.intnotes, wrap="soft", class="wi-wide") %]
[% L.textarea_tag('reclamation.intnotes', SELF.reclamation.intnotes, class="wi-wide") %]
</td>
</tr>
templates/design40_webpages/shop_part/edit.html
<th>[% LxERP.t8("Description") %]</th>
<td colspan="3">
[% IF SELF.shop_part.shop.use_part_longdescription %]
[% L.textarea_tag('notes', SELF.shop_part.part.notes, wrap="soft", readonly="readonly", style="width: 350px; height: 150px", class="texteditor") %]
[% L.textarea_tag('notes', SELF.shop_part.part.notes, readonly="readonly", style="width: 350px; height: 150px", class="texteditor") %]
[% ELSE %]
[% L.textarea_tag('shop_part.shop_description', SELF.shop_part.shop_description, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
[% L.textarea_tag('shop_part.shop_description', SELF.shop_part.shop_description, style="width: 350px; height: 150px", class="texteditor") %]
[% END %]
</td>
</tr>
templates/design40_webpages/time_recording/form.html
</tr>
<tr>
<th>[% 'Description' | $T8 %]</th>
<td class="wi-wide">[% L.textarea_tag('time_recording.description', SELF.time_recording.description, wrap="soft", style="height: 150px", class="texteditor wi-wide", "data-validate"="required", "data-title"=LxERP.t8('Description')) %]</td>
<td class="wi-wide">[% L.textarea_tag('time_recording.description', SELF.time_recording.description, style="height: 150px", class="texteditor wi-wide", "data-validate"="required", "data-title"=LxERP.t8('Description')) %]</td>
</tr>
<tr>
<th>[% 'Mitarbeiter' | $T8 %]</th>

Auch abrufbar als: Unified diff