mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
LF is the git default and all new files are stored as such. Old files from the hg to git conversion however were moved over as CRLF.
48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using Orchard.ContentManagement;
|
|
using Orchard.ContentManagement.Aspects;
|
|
|
|
namespace Orchard.CustomForms.Models {
|
|
public class CustomFormPart : ContentPart<CustomFormPartRecord> {
|
|
[Required]
|
|
public string ContentType {
|
|
get { return Record.ContentType; }
|
|
set { Record.ContentType = value; }
|
|
}
|
|
|
|
public bool SaveContentItem {
|
|
get { return Record.SaveContentItem; }
|
|
set { Record.SaveContentItem = value; }
|
|
}
|
|
|
|
public bool CustomMessage {
|
|
get { return Record.CustomMessage; }
|
|
set { Record.CustomMessage = value; }
|
|
}
|
|
|
|
public string Message {
|
|
get { return Record.Message; }
|
|
set { Record.Message = value; }
|
|
}
|
|
|
|
public bool Redirect {
|
|
get { return Record.Redirect; }
|
|
set { Record.Redirect = value; }
|
|
}
|
|
|
|
public string RedirectUrl {
|
|
get { return Record.RedirectUrl; }
|
|
set { Record.RedirectUrl = value; }
|
|
}
|
|
|
|
[Required]
|
|
public string SubmitButtonText {
|
|
get { return Record.SubmitButtonText; }
|
|
set { Record.SubmitButtonText = value; }
|
|
}
|
|
|
|
public string Title {
|
|
get { return this.As<ITitleAspect>().Title; }
|
|
}
|
|
}
|
|
} |