Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 51e60701

Von Bernd Bleßmann vor mehr als 2 Jahren hinzugefügt

  • ID 51e6070141ef2db7a3c8392a18fbac7aa540e853
  • Vorgänger 81863e03
  • Nachfolger be0f02ee

Wiedervorlage für mehrere Benutzer: Bearbeiten bei Kunden/Lieferanten-Bemerkungen

Unterschiede anzeigen:

SL/Controller/CustomerVendor.pm
265 265
      if ( !$self->{note_followup}->follow_up_date ) {
266 266
        $::form->error($::locale->text('Date missing!'));
267 267
      }
268
      if (!$self->{note_followup}->{created_for_employees}) {
269
        $::form->error($::locale->text('You must chose a user.'));
270
      }
268 271

  
269 272
      $self->{note}->trans_id($self->{cv}->id);
270 273
      $self->{note}->save();
......
1205 1208

  
1206 1209
  $self->{template_args} ||= {};
1207 1210

  
1208
  $::request->{layout}->add_javascripts("$_.js") for qw (kivi.CustomerVendor kivi.File kivi.CustomerVendorTurnover ckeditor/ckeditor ckeditor/adapters/jquery);
1211
  $::request->{layout}->add_javascripts("$_.js") for qw (kivi.CustomerVendor kivi.File kivi.CustomerVendorTurnover ckeditor/ckeditor ckeditor/adapters/jquery jquery.selectboxes jquery.multiselect2side);
1209 1212

  
1210 1213
  $self->_setup_form_action_bar;
1211 1214
}
templates/webpages/customer_vendor/tabs/vcnotes.html
1 1
[%- USE T8 %]
2 2
[%- USE HTML %]
3 3
[%- USE L %]
4
[%- USE LxERP %]
4 5

  
5 6
<div id="vcnotes">
6 7
  [% IF ( SELF.notes && SELF.notes.size ) %]
......
94 95

  
95 96
        <td>
96 97
          [% L.date_tag('note_followup.follow_up_date', SELF.note_followup.follow_up_date) %]
97
          [% 'for' | $T8 %]
98
        <td>
99
      </tr>
100

  
101
      <tr>
102
        <td valign="right" align="top">[% 'for' | $T8 %]</td>
103
        <td align="top">
98 104
          [% L.select_tag(
99
               'note_followup.created_for_user',
100
               SELF.all_employees,
101
               default = SELF.note_followup.created_for_user,
102
               title_key = 'safe_name'
103
             )
105
            'note_followup.created_for_employees[]',
106
            SELF.all_employees,
107
            id                => 'note_followup_created_for_employees',
108
            value_key         => 'id',
109
            title_key         => 'safe_name',
110
            default           => SELF.note_followup.created_for_employees,
111
            default_value_key => 'id',
112
            multiple          => 1)
113
          %]
114
          [% L.multiselect2side(
115
            'note_followup_created_for_employees',
116
            labelsx => LxERP.t8('All users'),
117
            labeldx => LxERP.t8('Wiedervorlage für Benutzer'))
104 118
          %]
105 119
        </td>
106 120
      </tr>

Auch abrufbar als: Unified diff