Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 91d46243

Von Bernd Bleßmann vor etwa 8 Jahren hinzugefügt

  • ID 91d46243bb711ff7fc0bcf4da95b7f63872e5c87
  • Vorgänger 2659735b
  • Nachfolger 28dd76df

Auftrags-Controller: Icons f. Detailanzeige mit svg

Damit kann man besser treffen.
Ausserdem waren die +/- -Icons mehrdeutig (hinzufügen/entfernen).

Unterschiede anzeigen:

css/kivitendo/main.css
510 510
.customer_dunning_level {
511 511
  font-weight: bold;
512 512
}
513

  
514
#expand_all, .expand {
515
    cursor: pointer;
516
    display: block;
517
    max-width: 16px;
518
    max-height: 16px;
519
}
css/lx-office-erp/main.css
518 518
       border:none;
519 519
}
520 520

  
521
#expand_all, .expand {
522
    cursor: pointer;
523
    display: block;
524
    max-width: 16px;
525
    max-height: 16px;
526
}
image/collapse.svg
1
<svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" width="100" height="100">
2
  <path id="corner" d="M100,50 L50,50 L50,100 Z"
3
        stroke-width="0" stroke="#000000" fill="true"/>
4
</svg>
image/expand.svg
1
<svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" width="100" height="100">
2
  <path id="corner" d="M100,100 L100,50 L50,100 Z"
3
        stroke-width="0" stroke="#000000" fill="true"/>
4
</svg>
js/kivi.Order.js
221 221
    $(row).children().not(':first').hide();
222 222
    $(row).data('expanded', 0);
223 223
    var elt = $(row).find('.expand');
224
    elt.attr('src', "image/expand3.gif");
224
    elt.attr('src', "image/expand.svg");
225 225
    elt.attr('alt', kivi.t8('Show details'));
226 226
    elt.attr('title', kivi.t8('Show details'));
227 227
  };
......
230 230
    $(row).children().not(':first').show();
231 231
    $(row).data('expanded', 1);
232 232
    var elt = $(row).find('.expand');
233
    elt.attr('src', "image/collapse3.gif");
233
    elt.attr('src', "image/collapse.svg");
234 234
    elt.attr('alt', kivi.t8('Hide details'));
235 235
    elt.attr('title', kivi.t8('Hide details'));
236 236
  };
......
550 550
    event.preventDefault();
551 551
    if ($('#expand_all').data('expanded') == 1) {
552 552
      $('#expand_all').data('expanded', 0);
553
      $('#expand_all').attr('src', 'image/expand3.gif');
553
      $('#expand_all').attr('src', 'image/expand.svg');
554 554
      $('#expand_all').attr('alt', kivi.t8('Show all details'));
555 555
      $('#expand_all').attr('title', kivi.t8('Show all details'));
556 556
      $('.row_entry').each(function(idx, elt) {
......
558 558
      });
559 559
    } else {
560 560
      $('#expand_all').data('expanded', 1);
561
      $('#expand_all').attr('src', "image/collapse3.gif");
561
      $('#expand_all').attr('src', "image/collapse.svg");
562 562
      $('#expand_all').attr('alt', kivi.t8('Hide all details'));
563 563
      $('#expand_all').attr('title', kivi.t8('Hide all details'));
564 564
      kivi.Order.load_all_second_rows();
templates/webpages/order/tabs/_row.html
7 7
  <tr>
8 8
    <td align="center">
9 9
      [%- IF MYCONFIG.show_form_details %]
10
        [% L.img_tag(src="image/collapse3.gif",
10
        [% L.img_tag(src="image/collapse.svg",
11 11
                     alt=LxERP.t8('Hide details'), title=LxERP.t8('Hide details'), class="expand") %]
12 12
      [%- ELSE %]
13
        [% L.img_tag(src="image/expand3.gif",
13
        [% L.img_tag(src="image/expand.svg",
14 14
                     alt=LxERP.t8('Show details'), title=LxERP.t8('Show details'), class="expand") %]
15 15
      [%- END %]
16 16
      [% L.hidden_tag("orderitem_ids[+]", ID) %]
templates/webpages/order/tabs/basic_data.html
157 157
              <tr class="listheading">
158 158
                <th class="listheading" style='text-align:center' nowrap width="1">
159 159
                  [%- IF MYCONFIG.show_form_details %]
160
                    [%- L.img_tag(src="image/collapse3.gif", alt=LxERP.t8('Hide all details'), title=LxERP.t8('Hide all details'), id='expand_all', "data-expanded"="1") %]
160
                    [%- L.img_tag(src="image/collapse.svg", alt=LxERP.t8('Hide all details'), title=LxERP.t8('Hide all details'), id='expand_all', "data-expanded"="1") %]
161 161
                  [%- ELSE %]
162
                    [%- L.img_tag(src="image/expand3.gif", alt=LxERP.t8('Show all details'), title=LxERP.t8('Show all details'), id='expand_all') %]
162
                    [%- L.img_tag(src="image/expand.svg", alt=LxERP.t8('Show all details'), title=LxERP.t8('Show all details'), id='expand_all') %]
163 163
                  [%- END %]
164 164
                </th>
165 165
                <th class="listheading" nowrap width="3" >[%- 'position'     | $T8 %] </th>

Auch abrufbar als: Unified diff