Permissions & Authorization for Users #24

Initial Release; Includes Database and MVC refactoring
This commit is contained in:
Gary Sharp
2013-10-10 19:13:16 +11:00
parent 172ce5524a
commit a099d68915
458 changed files with 40221 additions and 12130 deletions
@@ -1,140 +1,146 @@
@model Disco.Web.Areas.Config.Models.SystemConfig.IndexModel
@{
Authorization.Require(Claims.Config.System.Show);
var canConfigProxy = Authorization.Has(Claims.Config.System.ConfigureProxy);
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "System");
}
@using (Html.BeginForm())
{
<div class="form" style="width: 450px">
<table>
<div class="form" style="width: 450px">
<table>
<tr>
<th style="width: 135px">Disco Version:
</th>
<td>
<div>
<code>@Model.DiscoVersion.ToString(4)</code>
</div>
<div class="smallMessage" title="@Model.DiscoVersionBuilt.ToFullDateTime()">
Built @Model.DiscoVersionBuilt.ToFuzzy("Unknown")
</div>
</td>
</tr>
<tr>
<th style="width: 135px">Database Connection:
</th>
<td>
<table class="sub">
<tr>
<th>Server:</th>
<td><span class="code">@Model.DatabaseServer</span></td>
</tr>
<tr>
<th>Database:</th>
<td><span class="code">@Model.DatabaseName</span></td>
</tr>
<tr>
<th>Authentication:</th>
<td>@Model.DatabaseAuthentication</td>
</tr>
@{if (Model.DatabaseSqlAuthUsername != null)
{
<tr>
<th>SQL&nbsp;User:</th>
<td><span class="code">@Model.DatabaseSqlAuthUsername</span></td>
</tr>
}
}
</table>
</td>
</tr>
<tr>
<th style="width: 135px">Data Store Location:
</th>
<td>
<span class="code">@Model.DataStoreLocation</span>
@* @Html.EditorFor(m => m.DataStoreLocation)<br />
@Html.ValidationMessageFor(m => m.DataStoreLocation)*@
</td>
</tr>
</table>
</div>
<div class="form" style="width: 450px; margin-top: 15px;">
<h2>Updates</h2>
<table>
@{
if (Model.UpdateLatestResponse == null)
{
<tr>
<th style="width: 135px">Disco Version:
<th style="width: 135px">Last Check:
</th>
<td>
<div class="error"><span class="icon error" style="margin-right: 6px;"></span>Never</div>
</td>
</tr>
}
else
{
<tr>
<th style="width: 135px">Last Run:
</th>
<td>
<span>@CommonHelpers.FriendlyDate(Model.UpdateLatestResponse.ResponseTimestamp)</span>
</td>
</tr>
if (Model.UpdateLatestResponse.IsUpdatable(typeof(DiscoApplication).Assembly.GetName().Version))
{
<tr>
<th style="width: 135px">Update Available:
</th>
<td>
<div>
<code>@Model.DiscoVersion.ToString(4)</code>
<span class="icon warning" style="margin-right: 6px;"></span>Version @(Model.UpdateLatestResponse.Version) is available
</div>
<div class="smallMessage" title="@Model.DiscoVersionBuilt.ToFullDateTime()">
Built @Model.DiscoVersionBuilt.ToFuzzy("Unknown")
</div>
</td>
</tr>
<tr>
<th style="width: 135px">Database Connection:
</th>
<td>
<table class="sub">
<tr>
<th>Server:</th>
<td><span class="code">@Model.DatabaseServer</span></td>
</tr>
<tr>
<th>Database:</th>
<td><span class="code">@Model.DatabaseName</span></td>
</tr>
<tr>
<th>Authentication:</th>
<td>@Model.DatabaseAuthentication</td>
</tr>
@{if (Model.DatabaseSqlAuthUsername != null)
{
<tr>
<th>SQL&nbsp;User:</th>
<td><span class="code">@Model.DatabaseSqlAuthUsername</span></td>
</tr>
}
}
</table>
</td>
</tr>
<tr>
<th style="width: 135px">Data Store Location:
</th>
<td>
<span class="code">@Model.DataStoreLocation</span>
@* @Html.EditorFor(m => m.DataStoreLocation)<br />
@Html.ValidationMessageFor(m => m.DataStoreLocation)*@
</td>
</tr>
</table>
</div>
<div class="form" style="width: 450px; margin-top: 15px;">
<h2>Updates</h2>
<table>
@{
if (Model.UpdateLatestResponse == null)
{
<tr>
<th style="width: 135px">Last Check:
</th>
<td>
<div class="error"><span class="icon error" style="margin-right: 6px;"></span>Never</div>
</td>
</tr>
}
else
{
<tr>
<th style="width: 135px">Last Run:
</th>
<td>
<span>@CommonHelpers.FriendlyDate(Model.UpdateLatestResponse.ResponseTimestamp)</span>
</td>
</tr>
if (Model.UpdateLatestResponse.IsUpdatable(typeof(DiscoApplication).Assembly.GetName().Version))
{
<tr>
<th style="width: 135px">Update Available:
</th>
<td>
<div>
<span class="icon warning" style="margin-right: 6px;"></span>Version @(Model.UpdateLatestResponse.Version) is available
</div>
<div class="smallMessage">
[Released @(CommonHelpers.FriendlyDate(Model.UpdateLatestResponse.VersionReleasedTimestamp))]
</div>
<div class="smallMessage">@(new HtmlString(Model.UpdateLatestResponse.Blurb))</div>
<a href="@(Model.UpdateLatestResponse.UrlLink)" target="_blank">Download Now</a>
</td>
</tr>
}
else
{
<tr>
<th style="width: 135px">Status:
</th>
<td>
<span class="icon success" style="margin-right: 6px;"></span><span>The latest version is installed</span>
</td>
</tr>
}
}
}
<tr>
<th style="width: 135px">Check for Update:@{
if (Model.UpdateBetaDeployment)
{
<div class="alert"><span class="icon warning" style="margin-right: 6px;"></span>Beta Deployment</div>
}
}
</th>
<td>
@{
if (Model.UpdateRunningStatus == null)
{
<div>@Html.ActionLink("Check Now", MVC.API.System.UpdateCheck())</div>
}
else
{
<div>Running now - @Html.ActionLink("Check Status", MVC.Config.Logging.TaskStatus(Model.UpdateRunningStatus.SessionId))</div>
}
}
<div class="smallMessage">
Next Scheduled: @CommonHelpers.FriendlyDate(Model.UpdateNextScheduled, "Unknown")
[Released @(CommonHelpers.FriendlyDate(Model.UpdateLatestResponse.VersionReleasedTimestamp))]
</div>
<div class="smallMessage">@(new HtmlString(Model.UpdateLatestResponse.Blurb))</div>
<a href="@(Model.UpdateLatestResponse.UrlLink)" target="_blank">Download Now</a>
</td>
</tr>
</table>
</div>
}
else
{
<tr>
<th style="width: 135px">Status:
</th>
<td>
<span class="icon success" style="margin-right: 6px;"></span><span>The latest version is installed</span>
</td>
</tr>
}
}
}
<tr>
<th style="width: 135px">Check for Update:@{
if (Model.UpdateBetaDeployment)
{
<div class="alert"><span class="icon warning" style="margin-right: 6px;"></span>Beta Deployment</div>
}
}
</th>
<td>
@{
if (Model.UpdateRunningStatus == null)
{
<div>@Html.ActionLink("Check Now", MVC.API.System.UpdateCheck())</div>
}
else
{
<div>Running now - @Html.ActionLink("Check Status", MVC.Config.Logging.TaskStatus(Model.UpdateRunningStatus.SessionId))</div>
}
}
<div class="smallMessage">
Next Scheduled: @CommonHelpers.FriendlyDate(Model.UpdateNextScheduled, "Unknown")
</div>
</td>
</tr>
</table>
</div>
@if (canConfigProxy)
{
using (Html.BeginForm())
{
<div class="form" style="width: 450px; margin-top: 15px;">
<h2>Proxy Settings</h2>
<table>
@@ -170,10 +176,52 @@
@Html.ValidationMessageFor(m => m.ProxyPassword)
</td>
</tr>
<tr>
<th style="width: 135px">&nbsp;
</th>
<td>
<input type="submit" class="button small" value="Save Proxy Settings" />
</td>
</tr>
</table>
</div>
<div class="actionBar">
@Html.ActionLinkButton("Update Device Last Network Logons", MVC.API.System.UpdateLastNetworkLogonDates())
<input type="submit" class="button" value="Save Configuration" />
}
}
else
{
<div class="form" style="width: 450px; margin-top: 15px;">
<h2>Proxy Settings</h2>
<table>
<tr>
<th style="width: 135px">Address:
</th>
<td>
@Html.DisplayFor(m => m.ProxyAddress)
</td>
</tr>
<tr>
<th style="width: 135px">Port:
</th>
<td>
@Html.DisplayFor(m => m.ProxyPort)
</td>
</tr>
<tr>
<th style="width: 135px">Username:
</th>
<td>
@Html.DisplayFor(m => m.ProxyUsername)
</td>
</tr>
<tr>
<th style="width: 135px">Password:
</th>
<td>********
</td>
</tr>
</table>
</div>
}
<div class="actionBar">
@Html.ActionLinkButton("Update Device Last Network Logons", MVC.API.System.UpdateLastNetworkLogonDates())
</div>
@@ -2,7 +2,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18033
// Runtime Version:4.0.30319.18051
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -28,12 +28,14 @@ namespace Disco.Web.Areas.Config.Views.SystemConfig
using System.Web.WebPages;
using Disco.BI.Extensions;
using Disco.Models.Repository;
using Disco.Services.Authorization;
using Disco.Services.Web;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Config/Views/SystemConfig/Index.cshtml")]
public partial class Index : System.Web.Mvc.WebViewPage<Disco.Web.Areas.Config.Models.SystemConfig.IndexModel>
public partial class Index : Disco.Services.Web.WebViewPage<Disco.Web.Areas.Config.Models.SystemConfig.IndexModel>
{
public Index()
{
@@ -43,204 +45,195 @@ namespace Disco.Web.Areas.Config.Views.SystemConfig
#line 2 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Authorization.Require(Claims.Config.System.Show);
var canConfigProxy = Authorization.Has(Claims.Config.System.ConfigureProxy);
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "System");
#line default
#line hidden
WriteLiteral("\r\n");
#line 5 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
using (Html.BeginForm())
{
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral("\r\n<div");
WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 450px\"");
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th");
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th");
WriteLiteral(" style=\"width: 135px\"");
WriteLiteral(">Disco Version:\r\n </th>\r\n <td>\r\n " +
" <div>\r\n <code>");
WriteLiteral(">Disco Version:\r\n </th>\r\n <td>\r\n <div>\r\n " +
" <code>");
#line 14 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Model.DiscoVersion.ToString(4));
#line 16 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Model.DiscoVersion.ToString(4));
#line default
#line hidden
WriteLiteral("</code>\r\n </div>\r\n <div");
WriteLiteral("</code>\r\n </div>\r\n <div");
WriteLiteral(" class=\"smallMessage\"");
WriteAttribute("title", Tuple.Create(" title=\"", 546), Tuple.Create("\"", 595)
WriteAttribute("title", Tuple.Create(" title=\"", 616), Tuple.Create("\"", 665)
#line 16 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
, Tuple.Create(Tuple.Create("", 554), Tuple.Create<System.Object, System.Int32>(Model.DiscoVersionBuilt.ToFullDateTime()
#line 18 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
, Tuple.Create(Tuple.Create("", 624), Tuple.Create<System.Object, System.Int32>(Model.DiscoVersionBuilt.ToFullDateTime()
#line default
#line hidden
, 554), false)
, 624), false)
);
WriteLiteral(">\r\n Built ");
WriteLiteral(">\r\n Built ");
#line 17 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Model.DiscoVersionBuilt.ToFuzzy("Unknown"));
#line 19 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Model.DiscoVersionBuilt.ToFuzzy("Unknown"));
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n " +
" <tr>\r\n <th");
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n <tr>\r\n " +
" <th");
WriteLiteral(" style=\"width: 135px\"");
WriteLiteral(">Database Connection:\r\n </th>\r\n <td>\r\n " +
" <table");
WriteLiteral(">Database Connection:\r\n </th>\r\n <td>\r\n <tabl" +
"e");
WriteLiteral(" class=\"sub\"");
WriteLiteral(">\r\n <tr>\r\n <th>Server:</th>\r\n " +
" <td><span");
WriteLiteral(">\r\n <tr>\r\n <th>Server:</th>\r\n " +
" <td><span");
WriteLiteral(" class=\"code\"");
WriteLiteral(">");
#line 28 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Model.DatabaseServer);
#line 30 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Model.DatabaseServer);
#line default
#line hidden
WriteLiteral("</span></td>\r\n </tr>\r\n <tr>\r\n " +
" <th>Database:</th>\r\n <td><span");
WriteLiteral("</span></td>\r\n </tr>\r\n <tr>\r\n " +
" <th>Database:</th>\r\n <td><span");
WriteLiteral(" class=\"code\"");
WriteLiteral(">");
#line 32 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Model.DatabaseName);
#line 34 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Model.DatabaseName);
#line default
#line hidden
WriteLiteral("</span></td>\r\n </tr>\r\n <tr>\r\n " +
" <th>Authentication:</th>\r\n <td>" +
"");
#line 36 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Model.DatabaseAuthentication);
#line default
#line hidden
WriteLiteral("</td>\r\n </tr>\r\n");
WriteLiteral("</span></td>\r\n </tr>\r\n <tr>\r\n " +
" <th>Authentication:</th>\r\n <td>");
#line 38 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line default
#line hidden
#line 38 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (Model.DatabaseSqlAuthUsername != null)
{
Write(Model.DatabaseAuthentication);
#line default
#line hidden
WriteLiteral(" <tr>\r\n <th>SQL&nbsp;Us" +
"er:</th>\r\n <td><span");
WriteLiteral("</td>\r\n </tr>\r\n");
#line 40 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line default
#line hidden
#line 40 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (Model.DatabaseSqlAuthUsername != null)
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n <th>SQL&nbsp;User:</th>" +
"\r\n <td><span");
WriteLiteral(" class=\"code\"");
WriteLiteral(">");
#line 42 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Model.DatabaseSqlAuthUsername);
#line default
#line hidden
WriteLiteral("</span></td>\r\n </tr> \r\n");
#line 44 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
Write(Model.DatabaseSqlAuthUsername);
#line default
#line hidden
WriteLiteral("\r\n </table>\r\n </td>\r\n </tr>\r\n " +
" <tr>\r\n <th");
WriteLiteral("</span></td>\r\n </tr> \r\n");
#line 46 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
#line default
#line hidden
WriteLiteral("\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n " +
" <th");
WriteLiteral(" style=\"width: 135px\"");
WriteLiteral(">Data Store Location:\r\n </th>\r\n <td>\r\n " +
" <span");
WriteLiteral(">Data Store Location:\r\n </th>\r\n <td>\r\n <span" +
"");
WriteLiteral(" class=\"code\"");
WriteLiteral(">");
#line 53 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Model.DataStoreLocation);
#line 55 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Model.DataStoreLocation);
#line default
#line hidden
WriteLiteral("</span>\r\n ");
WriteLiteral("</span>\r\n ");
WriteLiteral("\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n");
WriteLiteral(" <div");
WriteLiteral("\r\n </td>\r\n </tr>\r\n </table>\r\n</div>\r\n<div");
WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 450px; margin-top: 15px;\"");
WriteLiteral(">\r\n <h2>Updates</h2>\r\n <table>\r\n");
WriteLiteral(">\r\n <h2>Updates</h2>\r\n <table>\r\n");
#line 63 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 65 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line default
#line hidden
#line 63 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (Model.UpdateLatestResponse == null)
{
#line 65 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (Model.UpdateLatestResponse == null)
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n <th");
WriteLiteral(" <tr>\r\n <th");
WriteLiteral(" style=\"width: 135px\"");
WriteLiteral(">Last Check:\r\n </th>\r\n <td>\r\n " +
" <div");
WriteLiteral(">Last Check:\r\n </th>\r\n <td>\r\n <d" +
"iv");
WriteLiteral(" class=\"error\"");
@@ -250,47 +243,47 @@ WriteLiteral(" class=\"icon error\"");
WriteLiteral(" style=\"margin-right: 6px;\"");
WriteLiteral("></span>Never</div>\r\n </td>\r\n </tr>\r\n");
WriteLiteral("></span>Never</div>\r\n </td>\r\n </tr>\r\n");
#line 73 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
else
{
#line 75 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n <th");
WriteLiteral(" <tr>\r\n <th");
WriteLiteral(" style=\"width: 135px\"");
WriteLiteral(">Last Run:\r\n </th>\r\n <td>\r\n " +
" <span>");
WriteLiteral(">Last Run:\r\n </th>\r\n <td>\r\n <spa" +
"n>");
#line 80 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(CommonHelpers.FriendlyDate(Model.UpdateLatestResponse.ResponseTimestamp));
#line 82 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(CommonHelpers.FriendlyDate(Model.UpdateLatestResponse.ResponseTimestamp));
#line default
#line hidden
WriteLiteral("</span>\r\n </td>\r\n </tr>\r\n");
WriteLiteral("</span>\r\n </td>\r\n </tr>\r\n");
#line 83 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (Model.UpdateLatestResponse.IsUpdatable(typeof(DiscoApplication).Assembly.GetName().Version))
{
#line 85 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (Model.UpdateLatestResponse.IsUpdatable(typeof(DiscoApplication).Assembly.GetName().Version))
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n <th");
WriteLiteral(" <tr>\r\n <th");
WriteLiteral(" style=\"width: 135px\"");
WriteLiteral(">Update Available:\r\n </th>\r\n <td>\r\n " +
" <div>\r\n <span");
WriteLiteral(">Update Available:\r\n </th>\r\n <td>\r\n " +
" <div>\r\n <span");
WriteLiteral(" class=\"icon warning\"");
@@ -299,101 +292,100 @@ WriteLiteral(" style=\"margin-right: 6px;\"");
WriteLiteral("></span>Version ");
#line 90 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Model.UpdateLatestResponse.Version);
#line 92 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Model.UpdateLatestResponse.Version);
#line default
#line hidden
WriteLiteral(" is available\r\n </div>\r\n <div");
WriteLiteral(" is available\r\n </div>\r\n <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n [Released ");
WriteLiteral(">\r\n [Released ");
#line 93 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(CommonHelpers.FriendlyDate(Model.UpdateLatestResponse.VersionReleasedTimestamp));
#line 95 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(CommonHelpers.FriendlyDate(Model.UpdateLatestResponse.VersionReleasedTimestamp));
#line default
#line hidden
WriteLiteral("]\r\n </div>\r\n <div");
WriteLiteral("]\r\n </div>\r\n <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">");
#line 95 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(new HtmlString(Model.UpdateLatestResponse.Blurb));
#line 97 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(new HtmlString(Model.UpdateLatestResponse.Blurb));
#line default
#line hidden
WriteLiteral("</div>\r\n <a");
WriteLiteral("</div>\r\n <a");
WriteAttribute("href", Tuple.Create(" href=\"", 4129), Tuple.Create("\"", 4173)
WriteAttribute("href", Tuple.Create(" href=\"", 3813), Tuple.Create("\"", 3857)
#line 96 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
, Tuple.Create(Tuple.Create("", 4136), Tuple.Create<System.Object, System.Int32>(Model.UpdateLatestResponse.UrlLink
#line 98 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
, Tuple.Create(Tuple.Create("", 3820), Tuple.Create<System.Object, System.Int32>(Model.UpdateLatestResponse.UrlLink
#line default
#line hidden
, 4136), false)
, 3820), false)
);
WriteLiteral(" target=\"_blank\"");
WriteLiteral(">Download Now</a>\r\n </td>\r\n </tr>\r\n");
WriteLiteral(">Download Now</a>\r\n </td>\r\n </tr>\r\n");
#line 99 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
else
{
#line 101 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n <th");
WriteLiteral(" <tr>\r\n <th");
WriteLiteral(" style=\"width: 135px\"");
WriteLiteral(">Status:\r\n </th>\r\n <td>\r\n " +
" <span");
WriteLiteral(">Status:\r\n </th>\r\n <td>\r\n <span");
WriteLiteral(" class=\"icon success\"");
WriteLiteral(" style=\"margin-right: 6px;\"");
WriteLiteral("></span><span>The latest version is installed</span>\r\n </td>\r\n" +
" </tr>\r\n");
WriteLiteral("></span><span>The latest version is installed</span>\r\n </td>\r\n " +
" </tr>\r\n");
#line 109 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
}
#line 111 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
}
#line default
#line hidden
WriteLiteral("\r\n <tr>\r\n <th");
WriteLiteral("\r\n <tr>\r\n <th");
WriteLiteral(" style=\"width: 135px\"");
WriteLiteral(">Check for Update:");
#line 113 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (Model.UpdateBetaDeployment)
{
#line 115 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (Model.UpdateBetaDeployment)
{
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" <div");
WriteLiteral(" class=\"alert\"");
@@ -406,34 +398,34 @@ WriteLiteral(" style=\"margin-right: 6px;\"");
WriteLiteral("></span>Beta Deployment</div>\r\n");
#line 117 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
#line 119 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
#line default
#line hidden
WriteLiteral("\r\n </th>\r\n <td>\r\n");
#line 123 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line default
#line hidden
WriteLiteral("\r\n </th>\r\n <td>\r\n");
#line 121 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line default
#line hidden
#line 121 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (Model.UpdateRunningStatus == null)
{
#line 123 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (Model.UpdateRunningStatus == null)
{
#line default
#line hidden
WriteLiteral(" <div>");
WriteLiteral(" <div>");
#line 124 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ActionLink("Check Now", MVC.API.System.UpdateCheck()));
#line 126 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ActionLink("Check Now", MVC.API.System.UpdateCheck()));
#line default
@@ -441,19 +433,19 @@ WriteLiteral(" <div>");
WriteLiteral("</div>\r\n");
#line 125 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
else
{
#line 127 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" <div>Running now - ");
WriteLiteral(" <div>Running now - ");
#line 128 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ActionLink("Check Status", MVC.Config.Logging.TaskStatus(Model.UpdateRunningStatus.SessionId)));
#line 130 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ActionLink("Check Status", MVC.Config.Logging.TaskStatus(Model.UpdateRunningStatus.SessionId)));
#line default
@@ -461,28 +453,38 @@ WriteLiteral(" <div>Running now - ");
WriteLiteral("</div>\r\n");
#line 129 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
#line 131 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
#line default
#line hidden
WriteLiteral("\r\n <div");
WriteLiteral("\r\n <div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">\r\n Next Scheduled: ");
WriteLiteral(">\r\n Next Scheduled: ");
#line 132 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(CommonHelpers.FriendlyDate(Model.UpdateNextScheduled, "Unknown"));
#line 134 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(CommonHelpers.FriendlyDate(Model.UpdateNextScheduled, "Unknown"));
#line default
#line hidden
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n <" +
"/table>\r\n </div>\r\n");
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n </table>\r\n</div>\r" +
"\n");
#line 140 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (canConfigProxy)
{
using (Html.BeginForm())
{
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" class=\"form\"");
@@ -499,7 +501,7 @@ WriteLiteral(">Address:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 145 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 151 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.EditorFor(m => m.ProxyAddress));
@@ -510,7 +512,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 146 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 152 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ValidationMessageFor(m => m.ProxyAddress));
@@ -526,7 +528,7 @@ WriteLiteral(">Port:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 153 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 159 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.EditorFor(m => m.ProxyPort));
@@ -537,7 +539,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 154 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 160 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ValidationMessageFor(m => m.ProxyPort));
@@ -553,7 +555,7 @@ WriteLiteral(">Username:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 161 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 167 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.EditorFor(m => m.ProxyUsername));
@@ -564,7 +566,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 162 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 168 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ValidationMessageFor(m => m.ProxyUsername));
@@ -580,7 +582,7 @@ WriteLiteral(">Password:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 169 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 175 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.EditorFor(m => m.ProxyPassword));
@@ -591,46 +593,123 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 170 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 176 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ValidationMessageFor(m => m.ProxyPassword));
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n");
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
"");
WriteLiteral(" style=\"width: 135px\"");
WriteLiteral(">&nbsp;\r\n </th>\r\n <td>\r\n <input");
WriteLiteral(" type=\"submit\"");
WriteLiteral(" class=\"button small\"");
WriteLiteral(" value=\"Save Proxy Settings\"");
WriteLiteral(" />\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n");
#line 188 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
}
else
{
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" class=\"form\"");
WriteLiteral(" style=\"width: 450px; margin-top: 15px;\"");
WriteLiteral(">\r\n <h2>Proxy Settings</h2>\r\n <table>\r\n <tr>\r\n " +
" <th");
WriteLiteral(" style=\"width: 135px\"");
WriteLiteral(">Address:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 199 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.DisplayFor(m => m.ProxyAddress));
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
"");
WriteLiteral(" style=\"width: 135px\"");
WriteLiteral(">Port:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 206 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.DisplayFor(m => m.ProxyPort));
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
"");
WriteLiteral(" style=\"width: 135px\"");
WriteLiteral(">Username:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 213 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.DisplayFor(m => m.ProxyUsername));
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
"");
WriteLiteral(" style=\"width: 135px\"");
WriteLiteral(">Password:\r\n </th>\r\n <td>********\r\n " +
"</td>\r\n </tr>\r\n </table>\r\n </div>\r\n");
#line 224 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
#line default
#line hidden
WriteLiteral("<div");
WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n");
WriteLiteral(" ");
WriteLiteral(" ");
#line 176 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ActionLinkButton("Update Device Last Network Logons", MVC.API.System.UpdateLastNetworkLogonDates()));
#line 226 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ActionLinkButton("Update Device Last Network Logons", MVC.API.System.UpdateLastNetworkLogonDates()));
#line default
#line hidden
WriteLiteral("\r\n <input");
WriteLiteral("\r\n</div>\r\n");
WriteLiteral(" type=\"submit\"");
WriteLiteral(" class=\"button\"");
WriteLiteral(" value=\"Save Configuration\"");
WriteLiteral(" />\r\n </div>\r\n");
#line 179 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
#line default
#line hidden
}
}
}