Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 25b85515

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

  • ID 25b855157fa65535683b458c1ca2dd0c3636b788
  • Vorgänger 86b6ff8a
  • Nachfolger 0cb6e3af

Benutzerdef. Variablen in Belegen als Tabelle rendern ...

... im Moment mit fester Spaltenzahl.

Unterschiede anzeigen:

bin/mozilla/io.pl
1865 1865
  foreach my $cvar (@{ $form->{CVAR_CONFIGS}->{IC} }) {
1866 1866
    $cvar->{valid} = $params{part_id} && $valid->($cvar->{id});
1867 1867

  
1868
    my $show = 0;
1868 1869
    my $description = '';
1869 1870
    if ($cvar->{flag_editable} && $cvar->{valid}) {
1870 1871
      $num_visible_cvars++;
1871 1872
      $description = $cvar->{description} . ' ';
1873
      $show = 1;
1872 1874
    }
1873 1875

  
1874 1876
    my $form_key = "ic_cvar_" . $cvar->{name} . "_$params{row}";
1875 1877

  
1876 1878
    push @{ $params{ROW2} }, {
1877
      line_break     => $num_visible_cvars == 1,
1879
      line_break     => $show && !(($num_visible_cvars - 1) % 3),
1878 1880
      description    => $description,
1879 1881
      cvar           => 1,
1880 1882
      render_options => {

Auch abrufbar als: Unified diff