You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ombi/PlexRequests.UI/Views/Admin/Settings.cshtml

89 lines
3.4 KiB

@Html.Partial("_Sidebar")
9 years ago
@{
9 years ago
int port;
if (Model.Port == 0)
9 years ago
{
port = 3579;
}
else
{
port = Model.Port;
}
9 years ago
}
9 years ago
<div class="col-sm-8 col-sm-push-1">
9 years ago
<form class="form-horizontal" method="POST" action="/admin" id="mainForm">
9 years ago
<fieldset>
<legend>Request Plex Settings</legend>
<div class="form-group">
9 years ago
<label for="portNumber" class="control-label">Port</label>
9 years ago
<div>
9 years ago
<input type="text" class="form-control form-control-custom " id="portNumber" name="Port" placeholder="Port Number" value="@port">
9 years ago
</div>
</div>
9 years ago
<small class="control-label">You will have to restart after changing the port.</small>
<div class="form-group">
9 years ago
<div class="checkbox">
<label>
@if (Model.SearchForMovies)
{
9 years ago
<input type="checkbox" id="SearchForMovies" name="SearchForMovies" checked="checked"><text>Search for Movies</text>
}
else
{
9 years ago
<input type="checkbox" id="SearchForMovies" name="SearchForMovies"><text>Search for Movies</text>
}
</label>
</div>
</div>
<div class="form-group">
9 years ago
<div class="checkbox">
<label>
@if (Model.SearchForTvShows)
{
9 years ago
<input type="checkbox" id="SearchForTvShows" name="SearchForTvShows" checked="checked"><text>Search for TV Shows</text>
}
else
{
9 years ago
<input type="checkbox" id="SearchForTvShows" name="SearchForTvShows"><text>Search for TV Shows</text>
}
</label>
</div>
</div>
<div class="form-group">
9 years ago
<div class="checkbox">
<label>
@if (Model.RequireApproval)
{
9 years ago
<input type="checkbox" id="RequireApproval" name="RequireApproval" checked="checked"><text>Require approval of requests</text>
}
else
{
9 years ago
<input type="checkbox" id="RequireApproval" name="RequireApproval"><text>Require approval of requests</text>
}
</label>
</div>
</div>
9 years ago
@*<div class="form-group">
9 years ago
<label for="WeeklyRequestLimit" class="control-label">Weekly Request Limit</label>
<div>
<label>
9 years ago
<input type="number" id="WeeklyRequestLimit" name="WeeklyRequestLimit" class="form-control form-control-custom " value="@Model.WeeklyRequestLimit">
</label>
</div>
</div> //TODO: Need to implement this*@
9 years ago
<div>
</div>
9 years ago
<div class="form-group">
9 years ago
<div>
<button type="submit" class="btn btn-primary-outline">Submit</button>
9 years ago
</div>
</div>
</fieldset>
</form>
</div>