styling for #298 done, just need to wire up the model and do the actual status check

This commit is contained in:
tidusjar 2016-06-08 22:06:38 +01:00
commit 46f7a0769e
14 changed files with 180 additions and 23 deletions

View file

@ -9,7 +9,6 @@
<div class="form-group">
<div class="checkbox">
@if (Model.Enabled)
{
<input type="checkbox" id="Enabled" name="Enabled" checked="checked"><label for="Enabled">Enabled</label>
@ -21,6 +20,19 @@
</div>
<small>If enabled then all users will be redirected to the landing page instead of the login page.</small>
</div>
<div class="form-group">
<div class="checkbox">
@if (Model.BeforeLogin)
{
<input type="checkbox" id="BeforeLogin" name="BeforeLogin" checked="checked"><label for="BeforeLogin">Show before the login</label>
}
else
{
<input type="checkbox" id="BeforeLogin" name="BeforeLogin"><label for="BeforeLogin">Show before the login</label>
}
</div>
<small>If enabled then this will show the landing page before the login page, if this is disabled the user will log in first and then see the landing page.</small>
</div>
<br/>
<div class="form-group">

View file

@ -1,3 +1,41 @@
@inherits PlexRequests.UI.Helpers.EmptyViewBase<PlexRequests.Core.SettingModels.LandingPageSettings>

@inherits PlexRequests.UI.Helpers.EmptyViewBase<PlexRequests.UI.Models.LandingPageViewModel>
<img class="center" src="~/Content/images/logo.png" width="300" />
<div id="area" class="landing-block">
@if (Model.NoticeEnable)
{
<div class="row" style="padding-top: 20px">
<div class="col-md-1 col-md-push-4">
<i class="fa fa-bell fa-5x"></i>
</div>
<div class="col-md-5 col-md-push-4">
<span class="landing-title">Notice</span>
<br/>
@Model.NoticeMessage
<br/>
<strong>6/27/2016 @@ 9:00PM CST to 6/27/2016 @@ 9:00PM CST</strong>
</div>
</div>
<br/>
<br/>
<br/>
<br/>
}
<div class="row">
<div class="col-md-1 col-md-push-4">
<i class="fa fa-check-circle fa-5x"></i>
</div>
<div class="col-md-5 col-md-push-4">
<span class="landing-title">Currently Online</span>
<br/>
The Plex server is currently online (check this page for continuous status updates)
</div>
</div>
</div>
<div style="text-align: center; margin-top: 10px">
<a href="@Model.ContinueUrl?landing=false" class="btn btn-success-outline">Continue</a>
</div>

View file

@ -23,9 +23,8 @@
<body>
<div class="container">
@RenderBody()
</div>
</body>
</html>

View file

@ -54,7 +54,7 @@
console.log(response);
if (response.result === true) {
window.location.replace(url);
location.replace(response.message);
} else {
generateNotify(response.message, "warning");