Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f260a8cc

Von Sven Schöling vor etwa 7 Jahren hinzugefügt

  • ID f260a8cc8d1edc734c3816035f94c2658523c84b
  • Vorgänger fee85764
  • Nachfolger 82d692e7

kivi.Validator: In IR Maske als check registriert

Unterschiede anzeigen:

bin/mozilla/ir.pl
226 226
      action => [
227 227
        t8('Update'),
228 228
        submit    => [ '#form', { action => "update" } ],
229
        checks    => [ 'kivi.validate_form' ],
229 230
        id        => 'update_button',
230 231
        accesskey => 'enter',
231 232
      ],
......
234 235
        action => [
235 236
          t8('Post'),
236 237
          submit   => [ '#form', { action => "post" } ],
238
          checks   => [ 'kivi.validate_form' ],
237 239
          disabled => $form->{locked}                           ? t8('The billing period has already been locked.')
238 240
                    : $form->{storno}                           ? t8('A canceled invoice cannot be posted.')
239 241
                    : ($form->{id} && $change_never)            ? t8('Changing invoices has been disabled in the configuration.')
......
243 245
        action => [
244 246
          t8('Post Payment'),
245 247
          submit   => [ '#form', { action => "post_payment" } ],
248
          checks   => [ 'kivi.validate_form' ],
246 249
          disabled => !$form->{id} ? t8('This invoice has not been posted yet.') : undef,
247 250
        ],
248 251
        action => [
249 252
          t8('Mark as paid'),
250 253
          submit   => [ '#form', { action => "mark_as_paid" } ],
254
          checks   => [ 'kivi.validate_form' ],
251 255
          confirm  => t8('This will remove the invoice from showing as unpaid even if the unpaid amount does not match the amount. Proceed?'),
252 256
          disabled => !$form->{id} ? t8('This invoice has not been posted yet.') : undef,
253 257
          only_if  => $::instance_conf->get_ir_show_mark_as_paid,
......
257 261
      combobox => [
258 262
        action => [ t8('Storno'),
259 263
          submit   => [ '#form', { action => "storno" } ],
264
          checks   => [ 'kivi.validate_form' ],
260 265
          confirm  => t8('Do you really want to cancel this invoice?'),
261 266
          disabled => !$form->{id} ? t8('This invoice has not been posted yet.') : undef,
262 267
        ],
263 268
        action => [ t8('Delete'),
264 269
          submit   => [ '#form', { action => "delete" } ],
270
          checks   => [ 'kivi.validate_form' ],
265 271
          confirm  => t8('Do you really want to delete this object?'),
266 272
          disabled => !$form->{id}             ? t8('This invoice has not been posted yet.')
267 273
                    : $form->{locked}          ? t8('The billing period has already been locked.')
......
278 284
        action => [
279 285
          t8('Use As New'),
280 286
          submit   => [ '#form', { action => "use_as_new" } ],
287
          checks   => [ 'kivi.validate_form' ],
281 288
          disabled => !$form->{id} ? t8('This invoice has not been posted yet.') : undef,
282 289
        ],
283 290
       ], # end of combobox "Workflow"
......
304 311
      ], # end of combobox "more"
305 312
    );
306 313
  }
314
  $::request->layout->add_javascripts('kivi.Validator.js');
307 315
}
308 316

  
309 317
sub form_header {

Auch abrufbar als: Unified diff