mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.7 KiB
66 lines
1.7 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
|
using Microsoft.AspNetCore.Mvc.ViewFeatures;
|
|
|
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo.Pages.Components
|
|
{
|
|
public class FormsModel : PageModel
|
|
{
|
|
[Required]
|
|
[DisplayName("Name")]
|
|
public string Name { get; set; }
|
|
|
|
[Required]
|
|
[EmailAddress]
|
|
[DisplayName("Email")]
|
|
public string EmailAddress { get; set; }
|
|
|
|
[DataType(DataType.Password)]
|
|
public string Password { get; set; } = "MyPass";
|
|
|
|
[Phone]
|
|
[DisplayName("Phone Number")]
|
|
public string PhoneNumber { get; set; }
|
|
|
|
[DisplayName("Count")]
|
|
public int Count { get; set; }
|
|
|
|
[DataType(DataType.Date)]
|
|
[DisplayName("Day")]
|
|
public DateTime Day { get; set; }
|
|
|
|
[DisplayName("Is Active")]
|
|
public bool IsActive { get; set; }
|
|
|
|
[DisplayName("Country")]
|
|
public string Country { get; set; }
|
|
|
|
[DisplayName("City")]
|
|
public Cities City { get; set; }
|
|
|
|
public List<SelectListItem> Countries { get; } = new List<SelectListItem>
|
|
{
|
|
new SelectListItem { Value = "MX", Text = "Mexico" },
|
|
new SelectListItem { Value = "CA", Text = "Canada" },
|
|
new SelectListItem { Value = "US", Text = "USA" },
|
|
};
|
|
|
|
public void OnGet()
|
|
{
|
|
Name = "MyName";
|
|
Day = DateTime.Today;
|
|
|
|
}
|
|
}
|
|
|
|
public enum Cities
|
|
{
|
|
Istanbul,
|
|
NewJersey,
|
|
Moscow
|
|
}
|
|
}
|