initial commit

This commit is contained in:
Kukks
2018-12-11 16:36:25 +01:00
parent 94be2b46d5
commit 7fa1b65af0
8 changed files with 259 additions and 6 deletions

View File

@@ -0,0 +1,39 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace BTCPayServer.Models.AppViewModels
{
public class UpdateCrowdfundViewModel
{
[Required]
[MaxLength(30)]
public string Title { get; set; }
[Required]
public string Description { get; set; }
[Required]
public bool Enabled { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
[Required]
[MaxLength(5)]
[Display(Name = "The primary currency used for targets and stats")]
public string TargetCurrency { get; set; }
[Display(Name = "Set a Target amount ")]
public decimal? TargetAmount { get; set; }
[Display(Name = "Do not allow additional contributions after target has been reached")]
public bool EnforceTargetAmount { get; set; }
[MaxLength(500)]
[Display(Name = "Custom bootstrap CSS file")]
public string CustomCSSLink { get; set; }
}
}