2013-08-19 17:39:50 +10:00
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.Models.ContentEditing
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Defines a pre value editable field for a data type
|
|
|
|
|
|
/// </summary>
|
2013-08-20 14:44:59 +10:00
|
|
|
|
[DataContract(Name = "preValue", Namespace = "")]
|
|
|
|
|
|
public class PreValueFieldDisplay : PreValueFieldSave
|
2013-08-19 17:39:50 +10:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The name to display for this pre-value field
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataMember(Name = "label", IsRequired = true)]
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The description to display for this pre-value field
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataMember(Name = "description")]
|
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Specifies whether to hide the label for the pre-value
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataMember(Name = "hideLabel")]
|
|
|
|
|
|
public bool HideLabel { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The view to render for the field
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataMember(Name = "view", IsRequired = true)]
|
|
|
|
|
|
public string View { get; set; }
|
2013-08-20 11:33:41 +10:00
|
|
|
|
|
2013-08-19 17:39:50 +10:00
|
|
|
|
}
|
|
|
|
|
|
}
|