mirror of https://github.com/Ombi-app/Ombi
parent
14fddfc118
commit
2105ee9073
@ -1,20 +1,20 @@
|
||||
@using PlexRequests.UI.Helpers
|
||||
<div class="col-lg-3 col-md-3 col-sm-4">
|
||||
<div class="list-group table-of-contents">
|
||||
@Html.GetSidebarUrl(Context, "/admin", "Plex Request")
|
||||
@Html.GetSidebarUrl(Context, "/admin/landingpage", "Landing Page")
|
||||
@Html.GetSidebarUrl(Context, "/admin/authentication", "Authentication")
|
||||
@Html.GetSidebarUrl(Context, "/admin/plex", "Plex")
|
||||
@Html.GetSidebarUrl(Context, "/admin/couchpotato", "CouchPotato")
|
||||
@Html.GetSidebarUrl(Context, "/admin/sonarr", "Sonarr")
|
||||
@Html.GetSidebarUrl(Context, "/admin/sickrage", "SickRage")
|
||||
@Html.GetSidebarUrl(Context, "/admin/headphones", "Headphones (Beta)")
|
||||
@Html.GetSidebarUrl(Context, "/admin/emailnotification", "Email Notifications")
|
||||
@Html.GetSidebarUrl(Context, "/admin/pushbulletnotification", "Pushbullet Notifications")
|
||||
@Html.GetSidebarUrl(Context, "/admin/pushovernotification", "Pushover Notifications")
|
||||
@Html.GetSidebarUrl(Context, "/admin/slacknotification", "Slack Notifications")
|
||||
@Html.GetSidebarUrl(Context, "/admin/logs", "Logs")
|
||||
@Html.GetSidebarUrl(Context, "/admin/status", "Status")
|
||||
@Html.GetSidebarUrl(Context, "/admin/scheduledjobs", "Scheduled Jobs")
|
||||
</div>
|
||||
@using PlexRequests.UI.Helpers
|
||||
<div class="col-lg-3 col-md-3 col-sm-4">
|
||||
<div class="list-group table-of-contents">
|
||||
@Html.GetSidebarUrl(Context, "/admin", "Plex Request")
|
||||
@Html.GetSidebarUrl(Context, "/admin/landingpage", "Landing Page")
|
||||
@Html.GetSidebarUrl(Context, "/admin/authentication", "Authentication")
|
||||
@Html.GetSidebarUrl(Context, "/admin/plex", "Plex")
|
||||
@Html.GetSidebarUrl(Context, "/admin/couchpotato", "CouchPotato")
|
||||
@Html.GetSidebarUrl(Context, "/admin/sonarr", "Sonarr")
|
||||
@Html.GetSidebarUrl(Context, "/admin/sickrage", "SickRage")
|
||||
@Html.GetSidebarUrl(Context, "/admin/headphones", "Headphones (Beta)")
|
||||
@Html.GetSidebarUrl(Context, "/admin/emailnotification", "Email Notifications")
|
||||
@Html.GetSidebarUrl(Context, "/admin/pushbulletnotification", "Pushbullet Notifications")
|
||||
@Html.GetSidebarUrl(Context, "/admin/pushovernotification", "Pushover Notifications")
|
||||
@Html.GetSidebarUrl(Context, "/admin/slacknotification", "Slack Notifications")
|
||||
@Html.GetSidebarUrl(Context, "/admin/logs", "Logs")
|
||||
@Html.GetSidebarUrl(Context, "/admin/status", "Status")
|
||||
@Html.GetSidebarUrl(Context, "/admin/scheduledjobs", "Scheduled Jobs")
|
||||
</div>
|
||||
</div>
|
@ -1,37 +1,37 @@
|
||||
<form method="POST" id="mainForm">
|
||||
<br />
|
||||
Old Password <input class="form-control form-control-custom" name="OldPassword" type="password" /><br />
|
||||
New Password <input class="form-control form-control-custom" name="NewPassword" type="password" /><br />
|
||||
New Password again <input class="form-control form-control-custom" name="NewPasswordAgain" type="password" />
|
||||
<br />
|
||||
<br />
|
||||
<input class="btn btn-success-outline" id="save" type="submit" value="Change Password" />
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
|
||||
$('#save').click(function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
var $form = $("#mainForm");
|
||||
$.ajax({
|
||||
type: $form.prop("method"),
|
||||
data: $form.serialize(),
|
||||
url: $form.prop("action"),
|
||||
dataType: "json",
|
||||
success: function (response) {
|
||||
if (response.result === true) {
|
||||
generateNotify(response.message, "success");
|
||||
} else {
|
||||
generateNotify(response.message, "warning");
|
||||
}
|
||||
},
|
||||
error: function (e) {
|
||||
console.log(e);
|
||||
generateNotify("Something went wrong!", "danger");
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
<form method="POST" id="mainForm">
|
||||
<br />
|
||||
Old Password <input class="form-control form-control-custom" name="OldPassword" type="password" /><br />
|
||||
New Password <input class="form-control form-control-custom" name="NewPassword" type="password" /><br />
|
||||
New Password again <input class="form-control form-control-custom" name="NewPasswordAgain" type="password" />
|
||||
<br />
|
||||
<br />
|
||||
<input class="btn btn-success-outline" id="save" type="submit" value="Change Password" />
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
|
||||
$('#save').click(function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
var $form = $("#mainForm");
|
||||
$.ajax({
|
||||
type: $form.prop("method"),
|
||||
data: $form.serialize(),
|
||||
url: $form.prop("action"),
|
||||
dataType: "json",
|
||||
success: function (response) {
|
||||
if (response.result === true) {
|
||||
generateNotify(response.message, "success");
|
||||
} else {
|
||||
generateNotify(response.message, "warning");
|
||||
}
|
||||
},
|
||||
error: function (e) {
|
||||
console.log(e);
|
||||
generateNotify("Something went wrong!", "danger");
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
@ -1,39 +1,39 @@
|
||||
@using PlexRequests.UI.Helpers
|
||||
@{
|
||||
var baseUrl = Html.GetBaseUrl().ToHtmlString();
|
||||
var url = string.Empty;
|
||||
if (!string.IsNullOrEmpty(baseUrl))
|
||||
{
|
||||
url = "/" + baseUrl;
|
||||
}
|
||||
}
|
||||
<form method="POST">
|
||||
Username <input class="form-control form-control-custom" type="text" name="Username" />
|
||||
<br />
|
||||
Password <input class="form-control form-control-custom" name="Password" type="password" />
|
||||
<div class="checkbox">
|
||||
<input name="RememberMe" id="RememberMe" type="checkbox" checked="checked" />
|
||||
<label for="RememberMe">Remember Me</label>
|
||||
</div>
|
||||
<input class="btn btn-success-outline" type="submit" value="Login" />
|
||||
<input type="hidden" id="DateTimeOffset" name="DateTimeOffset" />
|
||||
<input type="hidden" id="redirect" name="redirect" value="@Model.Redirect" />
|
||||
</form>
|
||||
@if (!Model.AdminExists)
|
||||
{
|
||||
<div>If you have not yet created an Admin account you can do here: <a href="@url/register">Register</a></div>
|
||||
}
|
||||
@if (Model.Errored)
|
||||
{
|
||||
<div class="alert alert-dismissible alert-danger">
|
||||
<button type="button" class="close" data-dismiss="alert"><i class="fa fa-times"></i></button>
|
||||
Invalid Username or Password!
|
||||
</div>
|
||||
}
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
var dtOffset = new Date().getTimezoneOffset();
|
||||
$('#DateTimeOffset').val(dtOffset);
|
||||
});
|
||||
</script>
|
||||
@using PlexRequests.UI.Helpers
|
||||
@{
|
||||
var baseUrl = Html.GetBaseUrl().ToHtmlString();
|
||||
var url = string.Empty;
|
||||
if (!string.IsNullOrEmpty(baseUrl))
|
||||
{
|
||||
url = "/" + baseUrl;
|
||||
}
|
||||
}
|
||||
<form method="POST">
|
||||
Username <input class="form-control form-control-custom" type="text" name="Username" />
|
||||
<br />
|
||||
Password <input class="form-control form-control-custom" name="Password" type="password" />
|
||||
<div class="checkbox">
|
||||
<input name="RememberMe" id="RememberMe" type="checkbox" checked="checked" />
|
||||
<label for="RememberMe">Remember Me</label>
|
||||
</div>
|
||||
<input class="btn btn-success-outline" type="submit" value="Login" />
|
||||
<input type="hidden" id="DateTimeOffset" name="DateTimeOffset" />
|
||||
<input type="hidden" id="redirect" name="redirect" value="@Model.Redirect" />
|
||||
</form>
|
||||
@if (!Model.AdminExists)
|
||||
{
|
||||
<div>If you have not yet created an Admin account you can do here: <a href="@url/register">Register</a></div>
|
||||
}
|
||||
@if (Model.Errored)
|
||||
{
|
||||
<div class="alert alert-dismissible alert-danger">
|
||||
<button type="button" class="close" data-dismiss="alert"><i class="fa fa-times"></i></button>
|
||||
Invalid Username or Password!
|
||||
</div>
|
||||
}
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
var dtOffset = new Date().getTimezoneOffset();
|
||||
$('#DateTimeOffset').val(dtOffset);
|
||||
});
|
||||
</script>
|
||||
|
@ -1,15 +1,15 @@
|
||||
<form method="POST">
|
||||
Username <input class="form-control form-control-custom" type="text" name="Username" />
|
||||
<br />
|
||||
Password <input class="form-control form-control-custom" name="Password" type="password" />
|
||||
<br />
|
||||
<br />
|
||||
<input class="btn btn-success-outline" type="submit" value="Create User" />
|
||||
</form>
|
||||
@if (Model.Errored)
|
||||
{
|
||||
<div class="alert alert-dismissible alert-danger">
|
||||
<button type="button" class="close" data-dismiss="alert"><i class="fa fa-times"></i></button>
|
||||
An admin account already exists!
|
||||
</div>
|
||||
<form method="POST">
|
||||
Username <input class="form-control form-control-custom" type="text" name="Username" />
|
||||
<br />
|
||||
Password <input class="form-control form-control-custom" name="Password" type="password" />
|
||||
<br />
|
||||
<br />
|
||||
<input class="btn btn-success-outline" type="submit" value="Create User" />
|
||||
</form>
|
||||
@if (Model.Errored)
|
||||
{
|
||||
<div class="alert alert-dismissible alert-danger">
|
||||
<button type="button" class="close" data-dismiss="alert"><i class="fa fa-times"></i></button>
|
||||
An admin account already exists!
|
||||
</div>
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
@{
|
||||
Layout = "Shared/_Layout.cshtml";
|
||||
@{
|
||||
Layout = "Shared/_Layout.cshtml";
|
||||
}
|
@ -1,52 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
For more information on how to configure your ASP.NET application, please visit
|
||||
http://go.microsoft.com/fwlink/?LinkId=169433
|
||||
-->
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.5.2">
|
||||
|
||||
<buildProviders>
|
||||
<add extension=".cshtml"
|
||||
type="Nancy.ViewEngines.Razor.BuildProviders.NancyCSharpRazorBuildProvider, Nancy.ViewEngines.Razor.BuildProviders" />
|
||||
<add extension=".vbhtml"
|
||||
type="Nancy.ViewEngines.Razor.BuildProviders.NancyVisualBasicRazorBuildProvider, Nancy.ViewEngines.Razor.BuildProviders" />
|
||||
</buildProviders>
|
||||
</compilation>
|
||||
|
||||
<httpHandlers>
|
||||
<add verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" />
|
||||
</httpHandlers>
|
||||
</system.web>
|
||||
<connectionStrings>
|
||||
<add name="Sqlite" connectionString="Data Source=RequestPlex.sqlite" providerName="Mono.Data.Sqlite"/>
|
||||
</connectionStrings>
|
||||
<appSettings>
|
||||
<add key="webPages:Enabled" value="false" />
|
||||
</appSettings>
|
||||
<system.web.webPages.razor>
|
||||
<pages pageBaseType="Nancy.ViewEngines.Razor.NancyRazorViewBase">
|
||||
<namespaces>
|
||||
<add namespace="Nancy.ViewEngines.Razor" />
|
||||
</namespaces>
|
||||
</pages>
|
||||
</system.web.webPages.razor>
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
<httpErrors existingResponse="PassThrough"/>
|
||||
<handlers>
|
||||
<add name="Nancy" verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" />
|
||||
</handlers>
|
||||
<staticContent>
|
||||
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="00:00:15" />
|
||||
</staticContent>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
For more information on how to configure your ASP.NET application, please visit
|
||||
http://go.microsoft.com/fwlink/?LinkId=169433
|
||||
-->
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.5.2">
|
||||
|
||||
<buildProviders>
|
||||
<add extension=".cshtml"
|
||||
type="Nancy.ViewEngines.Razor.BuildProviders.NancyCSharpRazorBuildProvider, Nancy.ViewEngines.Razor.BuildProviders" />
|
||||
<add extension=".vbhtml"
|
||||
type="Nancy.ViewEngines.Razor.BuildProviders.NancyVisualBasicRazorBuildProvider, Nancy.ViewEngines.Razor.BuildProviders" />
|
||||
</buildProviders>
|
||||
</compilation>
|
||||
|
||||
<httpHandlers>
|
||||
<add verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" />
|
||||
</httpHandlers>
|
||||
</system.web>
|
||||
<connectionStrings>
|
||||
<add name="Sqlite" connectionString="Data Source=RequestPlex.sqlite" providerName="Mono.Data.Sqlite"/>
|
||||
</connectionStrings>
|
||||
<appSettings>
|
||||
<add key="webPages:Enabled" value="false" />
|
||||
</appSettings>
|
||||
<system.web.webPages.razor>
|
||||
<pages pageBaseType="Nancy.ViewEngines.Razor.NancyRazorViewBase">
|
||||
<namespaces>
|
||||
<add namespace="Nancy.ViewEngines.Razor" />
|
||||
</namespaces>
|
||||
</pages>
|
||||
</system.web.webPages.razor>
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
<httpErrors existingResponse="PassThrough"/>
|
||||
<handlers>
|
||||
<add name="Nancy" verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" />
|
||||
</handlers>
|
||||
<staticContent>
|
||||
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="00:00:15" />
|
||||
</staticContent>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
|
Loading…
Reference in new issue