2013-05-03 05:24:52 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Annotations
|
|
|
|
|
{
|
|
|
|
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
|
|
|
|
|
public class FieldDefinitionAttribute : Attribute
|
|
|
|
|
{
|
|
|
|
|
public FieldDefinitionAttribute(int order)
|
|
|
|
|
{
|
|
|
|
|
Order = order;
|
|
|
|
|
}
|
|
|
|
|
|
2015-05-20 23:22:10 +00:00
|
|
|
|
public int Order { get; private set; }
|
|
|
|
|
public string Label { get; set; }
|
|
|
|
|
public string HelpText { get; set; }
|
|
|
|
|
public string HelpLink { get; set; }
|
2013-05-20 04:19:54 +00:00
|
|
|
|
public FieldType Type { get; set; }
|
2014-05-19 19:14:41 +00:00
|
|
|
|
public Boolean Advanced { get; set; }
|
2013-06-13 07:20:33 +00:00
|
|
|
|
public Type SelectOptions { get; set; }
|
2013-05-20 04:19:54 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum FieldType
|
|
|
|
|
{
|
|
|
|
|
Textbox,
|
|
|
|
|
Password,
|
2013-06-13 07:20:33 +00:00
|
|
|
|
Checkbox,
|
2014-02-14 05:31:49 +00:00
|
|
|
|
Select,
|
2015-05-13 15:01:39 +00:00
|
|
|
|
Path,
|
2015-06-28 08:50:19 +00:00
|
|
|
|
Hidden,
|
2015-06-25 07:10:40 +00:00
|
|
|
|
Tag,
|
2015-03-29 05:30:58 +00:00
|
|
|
|
Action
|
2013-05-03 05:24:52 +00:00
|
|
|
|
}
|
|
|
|
|
}
|