-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathJobApplication.cs
30 lines (29 loc) · 1.13 KB
/
JobApplication.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using SurveyJSAsFormLibrary.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace SurveyJSAsFormLibrary.DomainModels
{
[DomainModelForm("job-application", "Job Application Form")]
public sealed class JobApplication: PersonInformation
{
[FormField(ChoicesByUrl = "https://surveyjs.io/api/CountriesExample")]
public string Country { get; set; }
[Display(Name = "City/Town")]
public string City { get; set; }
[Display(Name = "Zip Code")]
public string Zip { get; set; }
[FormField(FieldType = "comment")]
public string Address { get; set; }
[FormField(InputType = "email")]
public string Email { get; set; }
[Display(Name = "Expected salary (in US dollars)")]
public int Salary { get; set; }
[FormField(Choices = new string[] { "frontend", "backend", "fullstack", "intern" })]
public string Position { get; set; }
[Display(Name = "Date available to start work")]
public DateTime StartDate { get; set; }
}
}