mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 16:13:58 -07:00
Working on validation for forms, issues with server side, not sure how to post back model with AJAX submit, yet.
Split out settings model to support validation.
This commit is contained in:
parent
6690139616
commit
6e66a7a27f
11 changed files with 381 additions and 206 deletions
67
NzbDrone.Web/Models/IndexerSettingsModel.cs
Normal file
67
NzbDrone.Web/Models/IndexerSettingsModel.cs
Normal file
|
@ -0,0 +1,67 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using NzbDrone.Core.Repository;
|
||||
|
||||
namespace NzbDrone.Web.Models
|
||||
{
|
||||
public class IndexerSettingsModel
|
||||
{
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("NZBMatrix Username")]
|
||||
public String NzbMatrixUsername
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("NZBMatrix API Key")]
|
||||
public String NzbMatrixApiKey
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("NZBs.Org UID")]
|
||||
public String NzbsOrgUId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("NZBs.Org Hash")]
|
||||
public String NzbsOrgHash
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("NZBsRus UID")]
|
||||
public String NzbsrusUId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("NZBsRus Hash")]
|
||||
public String NzbsrusHash
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public List<Indexer> Indexers
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue