@@ -390,19 +390,45 @@ class Edit extends Component<typeof CampaignForm> {
390
390
}
391
391
392
392
export class CampaignForm extends CardDef {
393
- @field name = contains (StringField );
394
- @field status = contains (StringField );
395
- @field active = contains (BooleanField );
396
- @field type = contains (StringField );
397
- @field parent_campaign = linksTo (() => CampaignForm );
398
- @field description = contains (StringField );
399
- @field start_date = contains (DateField );
400
- @field end_date = contains (DateField );
401
- @field number_sent = contains (NumberField );
402
- @field expected_response_percentage = contains (NumberField );
403
- @field expected_revenue = contains (NumberField );
404
- @field budgeted_cost = contains (NumberField );
405
- @field actual_cost = contains (NumberField );
393
+ @field name = contains (StringField , {
394
+ description: ' The campaign name' ,
395
+ });
396
+ @field status = contains (StringField , {
397
+ description: ' The campaign current status' ,
398
+ });
399
+ @field active = contains (BooleanField , {
400
+ description: ' Tells whether the campaign is active or not' ,
401
+ });
402
+ @field type = contains (StringField , {
403
+ description: ' The type of campaign' ,
404
+ });
405
+ @field parent_campaign = linksTo (() => CampaignForm , {
406
+ description: ' The parent campaign' ,
407
+ });
408
+ @field description = contains (StringField , {
409
+ description: ' The campaign description' ,
410
+ });
411
+ @field start_date = contains (DateField , {
412
+ description: ' The campaign start date' ,
413
+ });
414
+ @field end_date = contains (DateField , {
415
+ description: ' The campaign end date' ,
416
+ });
417
+ @field number_sent = contains (NumberField , {
418
+ description: ' The number of forms sent in the campaign' ,
419
+ });
420
+ @field expected_response_percentage = contains (NumberField , {
421
+ description: ' The expected response by percentage (%) in the campaign' ,
422
+ });
423
+ @field expected_revenue = contains (NumberField , {
424
+ description: ' The expected revenue by RM in the campaign' ,
425
+ });
426
+ @field budgeted_cost = contains (NumberField , {
427
+ description: ' The budgeted cost by RM in the campaign' ,
428
+ });
429
+ @field actual_cost = contains (NumberField , {
430
+ description: ' The actual cost by RM in the campaign' ,
431
+ });
406
432
407
433
static displayName = ' CampaignForm' ;
408
434
0 commit comments