Update: FontAwesome Pass 2
Removal of bitmap icons, replacing with vector based icons from FontAwesome. Includes other UI style changes.
This commit is contained in:
@@ -50,11 +50,11 @@
|
||||
var displayName = sg.Id == sg.Name ? sg.Id : string.Format("{0} [{1}]", sg.Name, sg.Id);
|
||||
<li class="@(sg.IsGroup ? "group" : "user")">@if (sg.IsGroup)
|
||||
{
|
||||
@displayName
|
||||
<i class="fa fa-users fa-lg"></i>@displayName
|
||||
}
|
||||
else
|
||||
{
|
||||
<a href="@(Url.Action(MVC.User.Show(sg.Id)))#UserDetailTab-Authorization">@displayName</a>
|
||||
<a href="@(Url.Action(MVC.User.Show(sg.Id)))#UserDetailTab-Authorization"><i class="fa fa-user fa-lg"></i>@displayName</a>
|
||||
}</li>
|
||||
}
|
||||
</ul>
|
||||
@@ -67,7 +67,15 @@
|
||||
<ul id="Config_AuthRoles_Subjects_Update_Dialog_List" class="none">
|
||||
@foreach (var sg in Model.Subjects)
|
||||
{
|
||||
<li class="@(sg.IsGroup ? "group" : "user")" data-subjectid="@sg.Id">@(sg.Id == sg.Name ? sg.Id : string.Format("{0} [{1}]", sg.Name, sg.Id)) <span class="remove"></span></li>
|
||||
var displayName = sg.Id == sg.Name ? sg.Id : string.Format("{0} [{1}]", sg.Name, sg.Id);
|
||||
<li class="@(sg.IsGroup ? "group" : "user")" data-subjectid="@sg.Id">@if (sg.IsGroup)
|
||||
{
|
||||
<i class="fa fa-users fa-lg"></i>@displayName
|
||||
}
|
||||
else
|
||||
{
|
||||
<i class="fa fa-user fa-lg"></i>@displayName
|
||||
}<i class="fa fa-times-circle remove"></i></li>
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
@@ -168,9 +176,17 @@
|
||||
}).done(function(response){
|
||||
if (response){
|
||||
if (list.find('li[data-subjectid="'+response.Id+'"]').length == 0){
|
||||
|
||||
var liIcon = $('<i>').addClass('fa fa-lg');
|
||||
if (response.Type === 'user')
|
||||
liIcon.addClass('fa-user');
|
||||
else
|
||||
liIcon.addClass('fa-users');
|
||||
|
||||
var li = $('<li>')
|
||||
.append(liIcon)
|
||||
.append($('<span>').text(response.Id == response.Name ? response.Id : response.Name + ' [' + response.Id + ']'))
|
||||
.append($('<span>').addClass('remove'))
|
||||
.append($('<i>').addClass('fa fa-times-circle remove'))
|
||||
.addClass(response.Type)
|
||||
.attr('data-subjectid', response.Id)
|
||||
.attr('data-subjectstatus', 'new');
|
||||
@@ -292,7 +308,7 @@
|
||||
@Html.ActionLinkButton("Delete", MVC.API.AuthorizationRole.Delete(Model.Token.Role.Id, true), "Config_AuthRoles_Actions_Delete_Button")
|
||||
<div id="Config_AuthRoles_Actions_Delete_Dialog" title="Delete this Authorization Role?">
|
||||
<p>
|
||||
<span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>
|
||||
<i class="fa fa-exclamation-triangle fa-lg warning"></i>
|
||||
This item will be permanently deleted and cannot be recovered.<br />
|
||||
<br />
|
||||
Are you sure?
|
||||
|
||||
@@ -206,20 +206,32 @@ WriteLiteral(">");
|
||||
#line 51 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
if (sg.IsGroup)
|
||||
{
|
||||
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <i");
|
||||
|
||||
WriteLiteral(" class=\"fa fa-users fa-lg\"");
|
||||
|
||||
WriteLiteral("></i>");
|
||||
|
||||
|
||||
#line 53 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 53 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
Write(displayName);
|
||||
Write(displayName);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 53 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -229,22 +241,26 @@ WriteLiteral(">");
|
||||
#line hidden
|
||||
WriteLiteral(" <a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 2724), Tuple.Create("\"", 2794)
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 2757), Tuple.Create("\"", 2827)
|
||||
|
||||
#line 57 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2731), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.User.Show(sg.Id))
|
||||
, Tuple.Create(Tuple.Create("", 2764), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.User.Show(sg.Id))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2731), false)
|
||||
, Tuple.Create(Tuple.Create("", 2766), Tuple.Create("#UserDetailTab-Authorization", 2766), true)
|
||||
, 2764), false)
|
||||
, Tuple.Create(Tuple.Create("", 2799), Tuple.Create("#UserDetailTab-Authorization", 2799), true)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
WriteLiteral("><i");
|
||||
|
||||
WriteLiteral(" class=\"fa fa-user fa-lg\"");
|
||||
|
||||
WriteLiteral("></i>");
|
||||
|
||||
|
||||
#line 57 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
Write(displayName);
|
||||
Write(displayName);
|
||||
|
||||
|
||||
#line default
|
||||
@@ -319,26 +335,27 @@ WriteLiteral(">\r\n");
|
||||
#line 68 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
foreach (var sg in Model.Subjects)
|
||||
{
|
||||
var displayName = sg.Id == sg.Name ? sg.Id : string.Format("{0} [{1}]", sg.Name, sg.Id);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <li");
|
||||
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 3687), Tuple.Create("\"", 3727)
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 3878), Tuple.Create("\"", 3918)
|
||||
|
||||
#line 70 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3695), Tuple.Create<System.Object, System.Int32>(sg.IsGroup ? "group" : "user"
|
||||
#line 71 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3886), Tuple.Create<System.Object, System.Int32>(sg.IsGroup ? "group" : "user"
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3695), false)
|
||||
, 3886), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" data-subjectid=\"");
|
||||
|
||||
|
||||
#line 70 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
#line 71 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
Write(sg.Id);
|
||||
|
||||
|
||||
@@ -349,20 +366,76 @@ WriteLiteral("\"");
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 70 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
Write(sg.Id == sg.Name ? sg.Id : string.Format("{0} [{1}]", sg.Name, sg.Id));
|
||||
#line 71 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
if (sg.IsGroup)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <span");
|
||||
WriteLiteral(" <i");
|
||||
|
||||
WriteLiteral(" class=\"remove\"");
|
||||
WriteLiteral(" class=\"fa fa-users fa-lg\"");
|
||||
|
||||
WriteLiteral("></span></li>\r\n");
|
||||
WriteLiteral("></i>");
|
||||
|
||||
|
||||
#line 71 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
#line 73 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 73 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
Write(displayName);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 73 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <i");
|
||||
|
||||
WriteLiteral(" class=\"fa fa-user fa-lg\"");
|
||||
|
||||
WriteLiteral("></i>");
|
||||
|
||||
|
||||
#line 77 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 77 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
Write(displayName);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 77 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
|
||||
}
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("<i");
|
||||
|
||||
WriteLiteral(" class=\"fa fa-times-circle remove\"");
|
||||
|
||||
WriteLiteral("></i></li>\r\n");
|
||||
|
||||
|
||||
#line 79 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -391,14 +464,14 @@ WriteLiteral(">Add</a>\r\n </div>\r\n
|
||||
|
||||
WriteLiteral(" id=\"Config_AuthRoles_Subjects_Update_Dialog_Form\"");
|
||||
|
||||
WriteAttribute("action", Tuple.Create(" action=\"", 4386), Tuple.Create("\"", 4483)
|
||||
WriteAttribute("action", Tuple.Create(" action=\"", 5163), Tuple.Create("\"", 5260)
|
||||
|
||||
#line 78 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 4395), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.AuthorizationRole.UpdateSubjects(Model.Token.Role.Id, null, true))
|
||||
#line 86 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 5172), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.AuthorizationRole.UpdateSubjects(Model.Token.Role.Id, null, true))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4395), false)
|
||||
, 5172), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" method=\"post\"");
|
||||
@@ -425,7 +498,7 @@ WriteLiteral("></form>\r\n </div>\r\n <scr
|
||||
"ce: \'");
|
||||
|
||||
|
||||
#line 107 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
#line 115 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.AuthorizationRole.SearchSubjects()));
|
||||
|
||||
|
||||
@@ -469,7 +542,7 @@ WriteLiteral("\',\r\n minLength: 2,\r
|
||||
"\n url: \'");
|
||||
|
||||
|
||||
#line 165 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
#line 173 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.AuthorizationRole.Subject()));
|
||||
|
||||
|
||||
@@ -479,42 +552,48 @@ WriteLiteral("\',\r\n method: \'get\',\r\n
|
||||
" data: { Id: id }\r\n }).done(function(re" +
|
||||
"sponse){\r\n if (response){\r\n " +
|
||||
" if (list.find(\'li[data-subjectid=\"\'+response.Id+\'\"]\').leng" +
|
||||
"th == 0){\r\n var li = $(\'<li>\')\r\n " +
|
||||
" .append($(\'<span>\').text(response.Id " +
|
||||
"== response.Name ? response.Id : response.Name + \' [\' + response.Id + \']\'))\r\n " +
|
||||
" .append($(\'<span>\').addClass(\'remo" +
|
||||
"ve\'))\r\n .addClass(response.Type)\r" +
|
||||
"\n .attr(\'data-subjectid\', respons" +
|
||||
"e.Id)\r\n .attr(\'data-subjectstatus" +
|
||||
"\', \'new\');\r\n\r\n list.append(li);\r\n\r\n " +
|
||||
" updateNoSubjects(); " +
|
||||
" \r\n }else{\r\n " +
|
||||
" alert(\'That subject has already been added\');" +
|
||||
"\r\n }\r\n " +
|
||||
" }else{\r\n alert(\'Unknown Id\');\r\n " +
|
||||
" }\r\n }).fail(function(j" +
|
||||
"qXHR, textStatus, errorThrown){\r\n alert(\'Erro" +
|
||||
"r: \' + errorThrown);\r\n });\r\n " +
|
||||
" }\r\n\r\n function updateNoSubjects(){\r\n " +
|
||||
" if (list.find(\'li:visible\').length > 0)\r\n " +
|
||||
" noSubjects.hide();\r\n else\r" +
|
||||
"\n noSubjects.show();\r\n " +
|
||||
" }\r\n\r\n function saveChanges(){\r\n " +
|
||||
" var form = $(\'#Config_AuthRoles_Subjects_Update_Dialog_Form\').emp" +
|
||||
"ty();\r\n\r\n list.find(\'li[data-subjectstatus!=\"remo" +
|
||||
"ved\"]\').each(function(){\r\n var subjectId = $(" +
|
||||
"this).attr(\'data-subjectid\');\r\n \r\n " +
|
||||
" form.append($(\'<input>\').attr({\r\n " +
|
||||
" \'name\': \'Subjects\',\r\n \'" +
|
||||
"type\': \'hidden\'\r\n }).val(subjectId));\r\n\r\n " +
|
||||
" }).get();\r\n\r\n form.su" +
|
||||
"bmit();\r\n\r\n dialog.dialog(\"disable\");\r\n " +
|
||||
" dialog.dialog(\"option\", \"buttons\", null);\r\n " +
|
||||
" }\r\n\r\n $(function(){\r\n " +
|
||||
" $(\'#Config_AuthRoles_Subjects_Update\').click(showDialog);\r\n " +
|
||||
" });\r\n\r\n })();\r\n </" +
|
||||
"script>\r\n </div>\r\n </td>\r\n </tr>\r\n <tr>\r" +
|
||||
"\n <td");
|
||||
"th == 0){\r\n \r\n " +
|
||||
" var liIcon = $(\'<i>\').addClass(\'fa fa-lg\');\r\n " +
|
||||
" if (response.Type === \'user\')\r\n " +
|
||||
" liIcon.addClass(\'fa-user\');\r\n " +
|
||||
" else\r\n liIc" +
|
||||
"on.addClass(\'fa-users\');\r\n\r\n var li =" +
|
||||
" $(\'<li>\')\r\n .append(liIcon)\r\n " +
|
||||
" .append($(\'<span>\').text(response.I" +
|
||||
"d == response.Name ? response.Id : response.Name + \' [\' + response.Id + \']\'))\r\n" +
|
||||
" .append($(\'<i>\').addClass(\'fa fa" +
|
||||
"-times-circle remove\'))\r\n .addCla" +
|
||||
"ss(response.Type)\r\n .attr(\'data-s" +
|
||||
"ubjectid\', response.Id)\r\n .attr(\'" +
|
||||
"data-subjectstatus\', \'new\');\r\n\r\n list" +
|
||||
".append(li);\r\n\r\n updateNoSubjects(); " +
|
||||
" \r\n " +
|
||||
" }else{\r\n alert(\'That subject has alr" +
|
||||
"eady been added\');\r\n }\r\n " +
|
||||
" }else{\r\n alert(\'Unknow" +
|
||||
"n Id\');\r\n }\r\n " +
|
||||
"}).fail(function(jqXHR, textStatus, errorThrown){\r\n " +
|
||||
" alert(\'Error: \' + errorThrown);\r\n });\r\n " +
|
||||
" }\r\n\r\n function updateNoS" +
|
||||
"ubjects(){\r\n if (list.find(\'li:visible\').length >" +
|
||||
" 0)\r\n noSubjects.hide();\r\n " +
|
||||
" else\r\n noSubjects.show();\r\n " +
|
||||
" }\r\n\r\n function saveChanges(){\r" +
|
||||
"\n var form = $(\'#Config_AuthRoles_Subjects_Update" +
|
||||
"_Dialog_Form\').empty();\r\n\r\n list.find(\'li[data-su" +
|
||||
"bjectstatus!=\"removed\"]\').each(function(){\r\n " +
|
||||
"var subjectId = $(this).attr(\'data-subjectid\');\r\n " +
|
||||
" \r\n form.append($(\'<input>\').attr({\r\n " +
|
||||
" \'name\': \'Subjects\',\r\n " +
|
||||
" \'type\': \'hidden\'\r\n }).val(su" +
|
||||
"bjectId));\r\n\r\n }).get();\r\n\r\n " +
|
||||
" form.submit();\r\n\r\n dialog.dialog(\"disa" +
|
||||
"ble\");\r\n dialog.dialog(\"option\", \"buttons\", null)" +
|
||||
";\r\n }\r\n\r\n $(function(){\r\n " +
|
||||
" $(\'#Config_AuthRoles_Subjects_Update\').click(show" +
|
||||
"Dialog);\r\n });\r\n\r\n })();\r\n " +
|
||||
" </script>\r\n </div>\r\n </td>\r\n </" +
|
||||
"tr>\r\n <tr>\r\n <td");
|
||||
|
||||
WriteLiteral(" colspan=\"2\"");
|
||||
|
||||
@@ -533,7 +612,7 @@ WriteLiteral(" class=\"button small disabled\"");
|
||||
WriteLiteral(">Save Changes</a>");
|
||||
|
||||
|
||||
#line 232 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
#line 248 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
Write(AjaxHelpers.AjaxLoader());
|
||||
|
||||
|
||||
@@ -543,7 +622,7 @@ WriteLiteral("\r\n </div>\r\n <script>\r\n
|
||||
"(){\r\n var claimNodes = ");
|
||||
|
||||
|
||||
#line 236 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
#line 252 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
Write(new HtmlString(Newtonsoft.Json.JsonConvert.SerializeObject(Model.ClaimNavigatorFancyTreeNodes)));
|
||||
|
||||
|
||||
@@ -582,7 +661,7 @@ WriteLiteral(@";
|
||||
url: '");
|
||||
|
||||
|
||||
#line 266 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
#line 282 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
Write(Url.Action(MVC.API.AuthorizationRole.UpdateClaims(Model.Token.Role.Id)));
|
||||
|
||||
|
||||
@@ -622,7 +701,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 292 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
#line 308 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
|
||||
Write(Html.ActionLinkButton("Delete", MVC.API.AuthorizationRole.Delete(Model.Token.Role.Id, true), "Config_AuthRoles_Actions_Delete_Button"));
|
||||
|
||||
|
||||
@@ -634,15 +713,13 @@ WriteLiteral(" id=\"Config_AuthRoles_Actions_Delete_Dialog\"");
|
||||
|
||||
WriteLiteral(" title=\"Delete this Authorization Role?\"");
|
||||
|
||||
WriteLiteral(">\r\n <p>\r\n <span");
|
||||
WriteLiteral(">\r\n <p>\r\n <i");
|
||||
|
||||
WriteLiteral(" class=\"ui-icon ui-icon-alert\"");
|
||||
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg warning\"");
|
||||
|
||||
WriteLiteral(" style=\"float: left; margin: 0 7px 20px 0;\"");
|
||||
|
||||
WriteLiteral("></span>\r\n This item will be permanently deleted and cannot be recover" +
|
||||
"ed.<br />\r\n <br />\r\n Are you sure?\r\n </p>\r\n </di" +
|
||||
"v>\r\n <script");
|
||||
WriteLiteral("></i>\r\n This item will be permanently deleted and cannot be recovered." +
|
||||
"<br />\r\n <br />\r\n Are you sure?\r\n </p>\r\n </div>\r" +
|
||||
"\n <script");
|
||||
|
||||
WriteLiteral(" type=\"text/javascript\"");
|
||||
|
||||
|
||||
@@ -124,8 +124,9 @@
|
||||
if (Model.UpdateAvailable)
|
||||
{
|
||||
<div id="updateAvailableContainer">
|
||||
<i class="fa fa-cloud-download info"></i>
|
||||
<div>An updated version of Disco is available</div>
|
||||
<a href="@Model.UpdateResponse.UrlLink" target="_blank">Download Disco v@(Model.UpdateResponse.Version)</a>
|
||||
<a href="@Model.UpdateResponse.UrlLink" class="button small alert" target="_blank">Download v@(Model.UpdateResponse.Version)</a>
|
||||
</div>
|
||||
<script>
|
||||
(function () {
|
||||
@@ -134,10 +135,10 @@
|
||||
var updateAvailableContainer = $('#updateAvailableContainer');
|
||||
updateAvailableContainer.appendTo(layout_PageHeading);
|
||||
@{
|
||||
if (Model.UpdateResponse.VersionReleasedTimestamp < DateTime.Now.AddDays(-7))
|
||||
if (Model.UpdateResponse.VersionReleasedTimestamp < DateTime.Now.AddDays(-14))
|
||||
{
|
||||
<text>
|
||||
updateAvailableContainer.effect("shake", { times: 3 }, 100);
|
||||
updateAvailableContainer.effect("shake", { times: 3 }, 500);
|
||||
</text>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -776,25 +776,31 @@ WriteLiteral(" <div");
|
||||
|
||||
WriteLiteral(" id=\"updateAvailableContainer\"");
|
||||
|
||||
WriteLiteral(">\r\n <div>An updated version of Disco is available</div>\r\n <a");
|
||||
WriteLiteral(">\r\n <i");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 6601), Tuple.Create("\"", 6637)
|
||||
WriteLiteral(" class=\"fa fa-cloud-download info\"");
|
||||
|
||||
WriteLiteral("></i>\r\n <div>An updated version of Disco is available</div>\r\n <a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 6652), Tuple.Create("\"", 6688)
|
||||
|
||||
#line 128 "..\..\Areas\Config\Views\Config\Index.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 6608), Tuple.Create<System.Object, System.Int32>(Model.UpdateResponse.UrlLink
|
||||
#line 129 "..\..\Areas\Config\Views\Config\Index.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 6659), Tuple.Create<System.Object, System.Int32>(Model.UpdateResponse.UrlLink
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 6608), false)
|
||||
, 6659), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" class=\"button small alert\"");
|
||||
|
||||
WriteLiteral(" target=\"_blank\"");
|
||||
|
||||
WriteLiteral(">Download Disco v");
|
||||
WriteLiteral(">Download v");
|
||||
|
||||
|
||||
#line 128 "..\..\Areas\Config\Views\Config\Index.cshtml"
|
||||
Write(Model.UpdateResponse.Version);
|
||||
#line 129 "..\..\Areas\Config\Views\Config\Index.cshtml"
|
||||
Write(Model.UpdateResponse.Version);
|
||||
|
||||
|
||||
#line default
|
||||
@@ -810,15 +816,15 @@ WriteLiteral(@" <script>
|
||||
");
|
||||
|
||||
|
||||
#line 136 "..\..\Areas\Config\Views\Config\Index.cshtml"
|
||||
#line 137 "..\..\Areas\Config\Views\Config\Index.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 136 "..\..\Areas\Config\Views\Config\Index.cshtml"
|
||||
#line 137 "..\..\Areas\Config\Views\Config\Index.cshtml"
|
||||
|
||||
if (Model.UpdateResponse.VersionReleasedTimestamp < DateTime.Now.AddDays(-7))
|
||||
if (Model.UpdateResponse.VersionReleasedTimestamp < DateTime.Now.AddDays(-14))
|
||||
{
|
||||
|
||||
|
||||
@@ -826,13 +832,13 @@ WriteLiteral(@" <script>
|
||||
#line hidden
|
||||
WriteLiteral(" ");
|
||||
|
||||
WriteLiteral("\r\n updateAvailableContainer.effect(\"shake\", { times: 3 }, 100);\r\n " +
|
||||
WriteLiteral("\r\n updateAvailableContainer.effect(\"shake\", { times: 3 }, 500);\r\n " +
|
||||
" ");
|
||||
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
|
||||
#line 142 "..\..\Areas\Config\Views\Config\Index.cshtml"
|
||||
#line 143 "..\..\Areas\Config\Views\Config\Index.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -841,7 +847,7 @@ WriteLiteral("\r\n");
|
||||
WriteLiteral("\r\n });\r\n })();\r\n </script>\r\n");
|
||||
|
||||
|
||||
#line 147 "..\..\Areas\Config\Views\Config\Index.cshtml"
|
||||
#line 148 "..\..\Areas\Config\Views\Config\Index.cshtml"
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
{
|
||||
var missingCount = Model.DeviceBatch.UnitQuantity.Value - Model.DeviceCount;
|
||||
<div style="padding: 0.7em 0.7em; margin-top: 20px;" class="ui-state-highlight ui-corner-all">
|
||||
<span style="margin-right: 0.3em; float: left;" class="ui-icon ui-icon-alert"></span>
|
||||
<i class="fa fa-info-circle information"></i>
|
||||
@Model.DeviceCount.ToString("n0") of @(Model.DeviceBatch.UnitQuantity.Value.ToString("n0")) purchased devices are managed by Disco. <strong>@missingCount.ToString("n0") @(missingCount == 1 ? "is" : "are") not managed</strong>.
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -504,13 +504,11 @@ WriteLiteral(" style=\"padding: 0.7em 0.7em; margin-top: 20px;\"");
|
||||
|
||||
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
|
||||
|
||||
WriteLiteral(">\r\n <span");
|
||||
WriteLiteral(">\r\n <i");
|
||||
|
||||
WriteLiteral(" style=\"margin-right: 0.3em; float: left;\"");
|
||||
WriteLiteral(" class=\"fa fa-info-circle information\"");
|
||||
|
||||
WriteLiteral(" class=\"ui-icon ui-icon-alert\"");
|
||||
|
||||
WriteLiteral("></span>\r\n");
|
||||
WriteLiteral("></i>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
@@ -29,10 +29,13 @@
|
||||
<input type="text" class="cost" value="@item.Cost.ToString("C")" />
|
||||
</td>
|
||||
<td>
|
||||
<span class="edit@(item.JobSubTypes.Count > 0 ? " editAlert" : string.Empty)"></span>
|
||||
<span class="fa-stack edit">
|
||||
<i class="fa fa-list-alt fa-stack-2x"></i>
|
||||
<i class="fa fa-asterisk fa-stack-1x@(item.JobSubTypes.Count == 0 ? " hidden" : string.Empty)"></i>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="remove"></span>
|
||||
<i class="fa fa-times-circle remove"></i>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
@@ -47,7 +50,7 @@
|
||||
var $deviceComponents = $('#deviceComponents');
|
||||
|
||||
$('#addDeviceComponent').click(function () {
|
||||
var dc = $('<tr><td><input type="text" class="description" /></td><td><input type="text" class="cost" /></td><td><span class="edit"></span></td><td><span class="remove"></span></td></tr>');
|
||||
var dc = $('<tr><td><input type="text" class="description" /></td><td><input type="text" class="cost" /></td><td><span class="fa-stack edit"><i class="fa fa-list-alt fa-stack-2x"></i><i class="fa fa-asterisk fa-stack-1x hidden"></i></span></td><td><i class="fa fa-times-circle remove"></i></td></tr>');
|
||||
dc.find('input').focus(function () { $(this).select() })
|
||||
dc.insertBefore($deviceComponents.find('tr').last());
|
||||
dc.find('input.description').focus();
|
||||
@@ -57,8 +60,8 @@
|
||||
$deviceComponents.on('change', 'input', updateComponent);
|
||||
$deviceComponents.on('focus', 'input', function () { $(this).select(); });
|
||||
|
||||
$deviceComponents.on('click', 'span.remove', removeComponent);
|
||||
$deviceComponents.on('click', 'span.edit', editComponentJobTypes);
|
||||
$deviceComponents.on('click', '.remove', removeComponent);
|
||||
$deviceComponents.on('click', '.edit', editComponentJobTypes);
|
||||
|
||||
function removeComponentConfirmed(id, row) {
|
||||
var data = { id: id };
|
||||
@@ -194,9 +197,9 @@
|
||||
success: function (d) {
|
||||
if (d.Result == 'OK') {
|
||||
if (d.Component.JobSubTypes.length > 0) {
|
||||
edit$this.addClass('editAlert');
|
||||
edit$this.find('.fa-asterisk').removeClass('hidden');
|
||||
} else {
|
||||
edit$this.removeClass('editAlert');
|
||||
edit$this.find('.fa-asterisk').addClass('hidden');
|
||||
}
|
||||
$dialogUpdateJobTypes.dialog("enable");
|
||||
$dialogUpdateJobTypes.dialog("close");
|
||||
@@ -266,7 +269,7 @@
|
||||
</div>
|
||||
<div id="dialogConfirmRemove" title="Delete this Component?">
|
||||
<p>
|
||||
<span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>
|
||||
<i class="fa fa-exclamation-triangle fa-lg warning"></i>
|
||||
This item will be permanently deleted and cannot be recovered. Are you sure?
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -149,25 +149,36 @@ WriteAttribute("value", Tuple.Create(" value=\"", 1010), Tuple.Create("\"", 1042
|
||||
|
||||
WriteLiteral(" />\r\n </td>\r\n <td>\r\n <span");
|
||||
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 1118), Tuple.Create("\"", 1189)
|
||||
, Tuple.Create(Tuple.Create("", 1126), Tuple.Create("edit", 1126), true)
|
||||
WriteLiteral(" class=\"fa-stack edit\"");
|
||||
|
||||
WriteLiteral(">\r\n <i");
|
||||
|
||||
WriteLiteral(" class=\"fa fa-list-alt fa-stack-2x\"");
|
||||
|
||||
WriteLiteral("></i>\r\n <i");
|
||||
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 1237), Tuple.Create("\"", 1328)
|
||||
, Tuple.Create(Tuple.Create("", 1245), Tuple.Create("fa", 1245), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 1247), Tuple.Create("fa-asterisk", 1248), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 1259), Tuple.Create("fa-stack-1x", 1260), true)
|
||||
|
||||
#line 32 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1130), Tuple.Create<System.Object, System.Int32>(item.JobSubTypes.Count > 0 ? " editAlert" : string.Empty
|
||||
#line 34 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1271), Tuple.Create<System.Object, System.Int32>(item.JobSubTypes.Count == 0 ? " hidden" : string.Empty
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1130), false)
|
||||
, 1271), false)
|
||||
);
|
||||
|
||||
WriteLiteral("></span>\r\n </td>\r\n <td>\r\n <span");
|
||||
WriteLiteral("></i>\r\n </span>\r\n </td>\r\n <td>\r\n" +
|
||||
" <i");
|
||||
|
||||
WriteLiteral(" class=\"remove\"");
|
||||
WriteLiteral(" class=\"fa fa-times-circle remove\"");
|
||||
|
||||
WriteLiteral("></span>\r\n </td>\r\n </tr>\r\n");
|
||||
WriteLiteral("></i>\r\n </td>\r\n </tr>\r\n");
|
||||
|
||||
|
||||
#line 38 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 41 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -194,7 +205,7 @@ WriteLiteral(@">
|
||||
var $deviceComponents = $('#deviceComponents');
|
||||
|
||||
$('#addDeviceComponent').click(function () {
|
||||
var dc = $('<tr><td><input type=""text"" class=""description"" /></td><td><input type=""text"" class=""cost"" /></td><td><span class=""edit""></span></td><td><span class=""remove""></span></td></tr>');
|
||||
var dc = $('<tr><td><input type=""text"" class=""description"" /></td><td><input type=""text"" class=""cost"" /></td><td><span class=""fa-stack edit""><i class=""fa fa-list-alt fa-stack-2x""></i><i class=""fa fa-asterisk fa-stack-1x hidden""></i></span></td><td><i class=""fa fa-times-circle remove""></i></td></tr>');
|
||||
dc.find('input').focus(function () { $(this).select() })
|
||||
dc.insertBefore($deviceComponents.find('tr').last());
|
||||
dc.find('input.description').focus();
|
||||
@@ -204,8 +215,8 @@ WriteLiteral(@">
|
||||
$deviceComponents.on('change', 'input', updateComponent);
|
||||
$deviceComponents.on('focus', 'input', function () { $(this).select(); });
|
||||
|
||||
$deviceComponents.on('click', 'span.remove', removeComponent);
|
||||
$deviceComponents.on('click', 'span.edit', editComponentJobTypes);
|
||||
$deviceComponents.on('click', '.remove', removeComponent);
|
||||
$deviceComponents.on('click', '.edit', editComponentJobTypes);
|
||||
|
||||
function removeComponentConfirmed(id, row) {
|
||||
var data = { id: id };
|
||||
@@ -213,7 +224,7 @@ WriteLiteral(@">
|
||||
url: '");
|
||||
|
||||
|
||||
#line 66 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 69 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceModel.ComponentRemove()));
|
||||
|
||||
|
||||
@@ -245,7 +256,7 @@ WriteLiteral("\',\r\n dataType: \'json\',\r\n
|
||||
" };\r\n $.ajax({\r\n url: \'");
|
||||
|
||||
|
||||
#line 108 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 111 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceModel.ComponentUpdate()));
|
||||
|
||||
|
||||
@@ -280,7 +291,7 @@ WriteLiteral(@"',
|
||||
url: '");
|
||||
|
||||
|
||||
#line 134 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 137 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceModel.ComponentAdd(null, null, null)));
|
||||
|
||||
|
||||
@@ -320,7 +331,7 @@ WriteLiteral(@"',
|
||||
url: '");
|
||||
|
||||
|
||||
#line 165 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 168 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceModel.Component()));
|
||||
|
||||
|
||||
@@ -349,7 +360,7 @@ WriteLiteral("\',\r\n dataType: \'json\',\r\n
|
||||
" $.ajax({\r\n url: \'");
|
||||
|
||||
|
||||
#line 189 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 192 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceModel.ComponentUpdateJobSubTypes()));
|
||||
|
||||
|
||||
@@ -361,40 +372,41 @@ WriteLiteral("\',\r\n dataType: \'json\',
|
||||
" success: function (d) {\r\n " +
|
||||
" if (d.Result == \'OK\') {\r\n " +
|
||||
" if (d.Component.JobSubTypes.length > 0) {\r\n " +
|
||||
" edit$this.addClass(\'editAlert\');\r\n " +
|
||||
" } else {\r\n " +
|
||||
" edit$this.removeClass(\'editAlert\');\r\n " +
|
||||
" }\r\n $dialogUpdate" +
|
||||
"JobTypes.dialog(\"enable\");\r\n $dia" +
|
||||
"logUpdateJobTypes.dialog(\"close\");\r\n " +
|
||||
"} else {\r\n alert(\'Unable to updat" +
|
||||
"e component sub types: \' + d.Result);\r\n " +
|
||||
" }\r\n },\r\n " +
|
||||
" error: function (jqXHR, textStatus, errorThrown) {\r\n " +
|
||||
" alert(\'Unable to update component sub types: \' + textS" +
|
||||
"tatus);\r\n }\r\n " +
|
||||
" });\r\n };\r\n " +
|
||||
" var buttons = $dialogUpdateJobTypes.dialog(\"option\", \"buttons\", buttons);\r\n " +
|
||||
" $dialogUpdateJobTypes.dialog(\'open\');\r\n " +
|
||||
" } else {\r\n alert(\'Unable to load c" +
|
||||
"omponent: \' + d.Result);\r\n }\r\n " +
|
||||
" },\r\n error: function (jqXHR, textStatus, errorThrown) {\r" +
|
||||
"\n alert(\'Unable to load component: \' + textStatus);\r\n" +
|
||||
" }\r\n });\r\n }\r\n\r\n " +
|
||||
" }\r\n\r\n $(\"#dialogConfirmRemove\").dialog({\r\n resiza" +
|
||||
"ble: false,\r\n height: 140,\r\n modal: true,\r\n " +
|
||||
" autoOpen: false,\r\n buttons: {\r\n \"Remo" +
|
||||
"ve\": function () {\r\n $(this).dialog(\"close\");\r\n " +
|
||||
" },\r\n Cancel: function () {\r\n " +
|
||||
" $(this).dialog(\"close\");\r\n }\r\n }\r\n " +
|
||||
" });\r\n\r\n $(\'#dialogUpdateJobTypes\').dialog({\r\n resizab" +
|
||||
"le: false,\r\n modal: true,\r\n autoOpen: false,\r\n " +
|
||||
" width: 550,\r\n buttons: {\r\n \"Save\":" +
|
||||
" function () {\r\n $(this).dialog(\"close\");\r\n " +
|
||||
" },\r\n Cancel: function () {\r\n $(t" +
|
||||
"his).dialog(\"close\");\r\n }\r\n }\r\n });" +
|
||||
"\r\n\r\n $(\'#CheckboxBulkSelect_dialogUpdateJobTypes\').checkboxBulkSelect" +
|
||||
"({ parentSelector: \'div\' });\r\n });\r\n </script>\r\n");
|
||||
" edit$this.find(\'.fa-asterisk\').removeClass(\'hidden\');" +
|
||||
"\r\n } else {\r\n " +
|
||||
" edit$this.find(\'.fa-asterisk\').addClass(\'hidden\'" +
|
||||
");\r\n }\r\n " +
|
||||
" $dialogUpdateJobTypes.dialog(\"enable\");\r\n " +
|
||||
" $dialogUpdateJobTypes.dialog(\"close\");\r\n " +
|
||||
" } else {\r\n " +
|
||||
" alert(\'Unable to update component sub types: \' + d.Result);\r\n " +
|
||||
" }\r\n " +
|
||||
" },\r\n error: function (jqXHR, textStatus" +
|
||||
", errorThrown) {\r\n alert(\'Unable to u" +
|
||||
"pdate component sub types: \' + textStatus);\r\n " +
|
||||
" }\r\n });\r\n " +
|
||||
" };\r\n var buttons = $dialogUpdateJobTypes.dialog(" +
|
||||
"\"option\", \"buttons\", buttons);\r\n $dialogUpdateJob" +
|
||||
"Types.dialog(\'open\');\r\n } else {\r\n " +
|
||||
" alert(\'Unable to load component: \' + d.Result);\r\n " +
|
||||
" }\r\n },\r\n error: function" +
|
||||
" (jqXHR, textStatus, errorThrown) {\r\n alert(\'Unable t" +
|
||||
"o load component: \' + textStatus);\r\n }\r\n " +
|
||||
" });\r\n }\r\n\r\n }\r\n\r\n $(\"#dialogConfirmRemov" +
|
||||
"e\").dialog({\r\n resizable: false,\r\n height: 140,\r\n " +
|
||||
" modal: true,\r\n autoOpen: false,\r\n b" +
|
||||
"uttons: {\r\n \"Remove\": function () {\r\n " +
|
||||
"$(this).dialog(\"close\");\r\n },\r\n Cancel: fu" +
|
||||
"nction () {\r\n $(this).dialog(\"close\");\r\n " +
|
||||
" }\r\n }\r\n });\r\n\r\n $(\'#dialogUpdateJobTypes" +
|
||||
"\').dialog({\r\n resizable: false,\r\n modal: true,\r\n " +
|
||||
" autoOpen: false,\r\n width: 550,\r\n but" +
|
||||
"tons: {\r\n \"Save\": function () {\r\n $(th" +
|
||||
"is).dialog(\"close\");\r\n },\r\n Cancel: functi" +
|
||||
"on () {\r\n $(this).dialog(\"close\");\r\n }" +
|
||||
"\r\n }\r\n });\r\n\r\n $(\'#CheckboxBulkSelect_dialo" +
|
||||
"gUpdateJobTypes\').checkboxBulkSelect({ parentSelector: \'div\' });\r\n });\r\n " +
|
||||
" </script>\r\n");
|
||||
|
||||
WriteLiteral(" <div");
|
||||
|
||||
@@ -407,7 +419,7 @@ WriteLiteral(">\r\n <div>\r\n <h2>Hardware Non-Warranty Job Ty
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 262 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 265 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
Write(CommonHelpers.CheckBoxList("SubTypes", Model.JobSubTypes.ToSelectListItems(), 2));
|
||||
|
||||
|
||||
@@ -427,17 +439,15 @@ WriteLiteral(" id=\"dialogConfirmRemove\"");
|
||||
|
||||
WriteLiteral(" title=\"Delete this Component?\"");
|
||||
|
||||
WriteLiteral(">\r\n <p>\r\n <span");
|
||||
WriteLiteral(">\r\n <p>\r\n <i");
|
||||
|
||||
WriteLiteral(" class=\"ui-icon ui-icon-alert\"");
|
||||
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg warning\"");
|
||||
|
||||
WriteLiteral(" style=\"float: left; margin: 0 7px 20px 0;\"");
|
||||
|
||||
WriteLiteral("></span>\r\n This item will be permanently deleted and cannot be recover" +
|
||||
"ed. Are you sure?\r\n </p>\r\n </div>\r\n");
|
||||
WriteLiteral("></i>\r\n This item will be permanently deleted and cannot be recovered." +
|
||||
" Are you sure?\r\n </p>\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 273 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 276 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -452,7 +462,7 @@ WriteLiteral(" id=\"deviceComponents\"");
|
||||
WriteLiteral(" data-devicemodelid=\"");
|
||||
|
||||
|
||||
#line 276 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 279 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
Write(Model.DeviceModelId.HasValue ? Model.DeviceModelId.Value.ToString() : string.Empty);
|
||||
|
||||
|
||||
@@ -465,13 +475,13 @@ WriteLiteral(">\r\n <tr>\r\n <th>Description\r\n </
|
||||
"/tr>\r\n");
|
||||
|
||||
|
||||
#line 285 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 288 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 285 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 288 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
foreach (var item in Model.DeviceComponents)
|
||||
{
|
||||
|
||||
@@ -483,7 +493,7 @@ WriteLiteral(" <tr");
|
||||
WriteLiteral(" data-devicecomponentid=\"");
|
||||
|
||||
|
||||
#line 287 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 290 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
Write(item.Id);
|
||||
|
||||
|
||||
@@ -496,7 +506,7 @@ WriteLiteral(">\r\n <td>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 289 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 292 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
Write(item.Description);
|
||||
|
||||
|
||||
@@ -507,7 +517,7 @@ WriteLiteral("\r\n </td>\r\n <td>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 292 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 295 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
Write(item.Cost.ToString("C"));
|
||||
|
||||
|
||||
@@ -516,13 +526,13 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </td>\r\n <td>\r\n");
|
||||
|
||||
|
||||
#line 295 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 298 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 295 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 298 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
if (item.JobSubTypes.Count > 0)
|
||||
{
|
||||
|
||||
@@ -532,13 +542,13 @@ WriteLiteral("\r\n </td>\r\n <td>\r\n");
|
||||
WriteLiteral(" <ul>\r\n");
|
||||
|
||||
|
||||
#line 298 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 301 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 298 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 301 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
foreach (var jst in item.JobSubTypes)
|
||||
{
|
||||
|
||||
@@ -548,7 +558,7 @@ WriteLiteral(" <ul>\r\n");
|
||||
WriteLiteral(" <li>");
|
||||
|
||||
|
||||
#line 300 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 303 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
Write(jst.Description);
|
||||
|
||||
|
||||
@@ -557,7 +567,7 @@ WriteLiteral(" <li>");
|
||||
WriteLiteral("</li>\r\n");
|
||||
|
||||
|
||||
#line 301 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 304 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -566,7 +576,7 @@ WriteLiteral("</li>\r\n");
|
||||
WriteLiteral(" </ul>\r\n");
|
||||
|
||||
|
||||
#line 303 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 306 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -581,7 +591,7 @@ WriteLiteral(" class=\"smallMessage\"");
|
||||
WriteLiteral("><None Specified></span>\r\n");
|
||||
|
||||
|
||||
#line 307 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 310 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -590,7 +600,7 @@ WriteLiteral("><None Specified></span>\r\n");
|
||||
WriteLiteral(" </td>\r\n </tr>\r\n");
|
||||
|
||||
|
||||
#line 310 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 313 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -599,7 +609,7 @@ WriteLiteral(" </td>\r\n </tr>\r\n");
|
||||
WriteLiteral(" </table>\r\n");
|
||||
|
||||
|
||||
#line 312 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
#line 315 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
|
||||
}
|
||||
|
||||
#line default
|
||||
|
||||
@@ -693,7 +693,7 @@
|
||||
{
|
||||
<div id="dialogConfirmDelete" title="Delete this Device Profile?">
|
||||
<p>
|
||||
<span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>
|
||||
<i class="fa fa-exclamation-triangle fa-lg warning"></i>
|
||||
This item will be permanently deleted and cannot be recovered. Are you sure?
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -1950,14 +1950,12 @@ WriteLiteral(" id=\"dialogConfirmDelete\"");
|
||||
|
||||
WriteLiteral(" title=\"Delete this Device Profile?\"");
|
||||
|
||||
WriteLiteral(">\r\n <p>\r\n <span");
|
||||
WriteLiteral(">\r\n <p>\r\n <i");
|
||||
|
||||
WriteLiteral(" class=\"ui-icon ui-icon-alert\"");
|
||||
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg warning\"");
|
||||
|
||||
WriteLiteral(" style=\"float: left; margin: 0 7px 20px 0;\"");
|
||||
|
||||
WriteLiteral("></span>\r\n This item will be permanently deleted and cannot be recover" +
|
||||
"ed. Are you sure?\r\n </p>\r\n </div>\r\n");
|
||||
WriteLiteral("></i>\r\n This item will be permanently deleted and cannot be recovered." +
|
||||
" Are you sure?\r\n </p>\r\n </div>\r\n");
|
||||
|
||||
WriteLiteral(" <script");
|
||||
|
||||
|
||||
@@ -70,8 +70,7 @@
|
||||
<table class="logEventsViewport" data-bind="visible: messages().length > 0" style="display: none">
|
||||
<tbody data-bind="foreach: messages">
|
||||
<tr>
|
||||
<td class="icon" data-bind="attr: { title: FormattedTimestamp }, css: { information: EventTypeSeverity == 0, warning: EventTypeSeverity == 1, error: EventTypeSeverity == 2 }">
|
||||
</td>
|
||||
<td class="icon"><i class="fa" data-bind="css: { 'fa-info-circle': EventTypeSeverity == 0, 'fa-exclamation-triangle': EventTypeSeverity == 1, 'fa-exclamation-circle': EventTypeSeverity == 2 }"></i></td>
|
||||
<td class="message" data-bind="text: FormattedMessage, attr: { title: EventTypeName }"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -107,7 +106,6 @@
|
||||
var urlPageThumbnail = '@(Url.Action(MVC.API.DocumentTemplate.ImporterThumbnail()))/'
|
||||
var urlDocumentTemplate = '@(Url.Action(MVC.Config.DocumentTemplate.Index()))/';
|
||||
var urlManuallyAssign = '@(Url.Action(MVC.Config.DocumentTemplate.UndetectedPages()))';
|
||||
var iconErrorUrl = 'url(@(Links.ClientSource.Style.Images.Status.fail32_png))';
|
||||
var isLive = false;
|
||||
|
||||
function pageViewModel() {
|
||||
|
||||
@@ -227,11 +227,15 @@ WriteLiteral(">\r\n <tr>\r\n
|
||||
|
||||
WriteLiteral(" class=\"icon\"");
|
||||
|
||||
WriteLiteral(" data-bind=\"attr: { title: FormattedTimestamp }, css: { information: EventTypeSev" +
|
||||
"erity == 0, warning: EventTypeSeverity == 1, error: EventTypeSeverity == 2 }\"");
|
||||
WriteLiteral("><i");
|
||||
|
||||
WriteLiteral("> \r\n </td>\r\n <" +
|
||||
"td");
|
||||
WriteLiteral(" class=\"fa\"");
|
||||
|
||||
WriteLiteral(" data-bind=\"css: { \'fa-info-circle\': EventTypeSeverity == 0, \'fa-exclamation-tria" +
|
||||
"ngle\': EventTypeSeverity == 1, \'fa-exclamation-circle\': EventTypeSeverity == 2 }" +
|
||||
"\"");
|
||||
|
||||
WriteLiteral("></i></td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"message\"");
|
||||
|
||||
@@ -266,7 +270,7 @@ WriteLiteral(">\r\n $(function () {\r\n var vm;\r\n var host =
|
||||
" var urlDeviceShow = \'");
|
||||
|
||||
|
||||
#line 104 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
#line 103 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
Write(Url.Action(MVC.Device.Show()));
|
||||
|
||||
|
||||
@@ -275,7 +279,7 @@ WriteLiteral(">\r\n $(function () {\r\n var vm;\r\n var host =
|
||||
WriteLiteral("/\'\r\n var urlJobShow = \'");
|
||||
|
||||
|
||||
#line 105 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
#line 104 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
Write(Url.Action(MVC.Job.Show()));
|
||||
|
||||
|
||||
@@ -284,7 +288,7 @@ WriteLiteral("/\'\r\n var urlJobShow = \'");
|
||||
WriteLiteral("/\'\r\n var urlUserShow = \'");
|
||||
|
||||
|
||||
#line 106 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
#line 105 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
Write(Url.Action(MVC.User.Show()));
|
||||
|
||||
|
||||
@@ -293,7 +297,7 @@ WriteLiteral("/\'\r\n var urlUserShow = \'");
|
||||
WriteLiteral("/\'\r\n var urlPageThumbnail = \'");
|
||||
|
||||
|
||||
#line 107 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
#line 106 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
Write(Url.Action(MVC.API.DocumentTemplate.ImporterThumbnail()));
|
||||
|
||||
|
||||
@@ -302,7 +306,7 @@ WriteLiteral("/\'\r\n var urlPageThumbnail = \'");
|
||||
WriteLiteral("/\'\r\n var urlDocumentTemplate = \'");
|
||||
|
||||
|
||||
#line 108 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
#line 107 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
Write(Url.Action(MVC.Config.DocumentTemplate.Index()));
|
||||
|
||||
|
||||
@@ -311,124 +315,115 @@ WriteLiteral("/\'\r\n var urlDocumentTemplate = \'");
|
||||
WriteLiteral("/\';\r\n var urlManuallyAssign = \'");
|
||||
|
||||
|
||||
#line 109 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
#line 108 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
Write(Url.Action(MVC.Config.DocumentTemplate.UndetectedPages()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\';\r\n var iconErrorUrl = \'url(");
|
||||
WriteLiteral("\';\r\n var isLive = false;\r\n\r\n function pageViewModel() {\r\n " +
|
||||
" var self = this;\r\n\r\n self.noSessions = ko.observable(true);\r\n " +
|
||||
" self.sessions = ko.observableArray();\r\n self.sessionIndex = {};" +
|
||||
"\r\n\r\n self.sessionRendered = function (e, d) {\r\n if (!d" +
|
||||
".sessionEnded()) {\r\n d.progressbar = $(e).find(\'.sessionProgr" +
|
||||
"ess\').progressbar();\r\n }\r\n };\r\n }\r\n func" +
|
||||
"tion sessionViewModel(id) {\r\n var self = this;\r\n\r\n self.ti" +
|
||||
"tle = ko.observable(id);\r\n self.messages = ko.observableArray();\r\n " +
|
||||
" self.progressStatus = ko.observable();\r\n self.progressValue " +
|
||||
"= ko.observable();\r\n self.startTime = ko.observable();\r\n s" +
|
||||
"elf.sessionEnded = ko.observable(false);\r\n\r\n self.sessionPages = ko.o" +
|
||||
"bservableArray();\r\n self.sessionPagesIndex = {};\r\n self.ad" +
|
||||
"dSessionPage = function (sessionPage) {\r\n //if (isLive) {\r\n " +
|
||||
" self.sessionPages.push(sessionPage);\r\n self.sessionPage" +
|
||||
"sIndex[sessionPage.pageNumber] = sessionPage;\r\n //}\r\n " +
|
||||
"}\r\n }\r\n function sessionPageViewModel(sessionId, pageNumber) {\r\n " +
|
||||
" var self = this;\r\n\r\n self.sessionId = sessionId;\r\n " +
|
||||
" self.pageNumber = pageNumber;\r\n self.title = \'Page \' + pageNumber;" +
|
||||
"\r\n self.progressStatus = ko.observable();\r\n self.progressV" +
|
||||
"alue = ko.observable();\r\n self.undetected = ko.observable(false);\r\n " +
|
||||
" self.detected = ko.observable(false);\r\n self.documentTempla" +
|
||||
"teId = ko.observable();\r\n self.documentTemplate = ko.observable();\r\n " +
|
||||
" self.assignedDataType = ko.observable();\r\n self.assignedDa" +
|
||||
"taId = ko.observable();\r\n self.assignedData = ko.observable();\r\n " +
|
||||
" self.thumbnailEnabled = ko.observable(0);\r\n self.updateThumbna" +
|
||||
"il = function () {\r\n self.thumbnailEnabled(self.thumbnailEnabled(" +
|
||||
") + 1);\r\n }\r\n self.documentTemplateUrl = ko.computed(funct" +
|
||||
"ion () {\r\n return urlDocumentTemplate + self.documentTemplateId()" +
|
||||
";\r\n });\r\n self.manuallyAssignUrl = ko.computed(function ()" +
|
||||
" {\r\n return urlManuallyAssign + \'#\' + self.sessionId + \'_\' + self" +
|
||||
".pageNumber;\r\n });\r\n self.assignedDataUrl = ko.computed(fu" +
|
||||
"nction () {\r\n var t = self.assignedDataType();\r\n v" +
|
||||
"ar dId = self.assignedDataId();\r\n switch (t) {\r\n " +
|
||||
" case \'Device\':\r\n return urlDeviceShow + dId;\r\n " +
|
||||
" case \'Job\':\r\n return urlJobShow + dId;\r\n " +
|
||||
" case \'User\':\r\n return urlUserShow + dId;\r\n" +
|
||||
" }\r\n return null;\r\n });\r\n se" +
|
||||
"lf.thumbnailUrl = ko.computed(function () {\r\n var enabled = self." +
|
||||
"thumbnailEnabled();\r\n if (enabled > 0) {\r\n ret" +
|
||||
"urn \'url(\' + urlPageThumbnail + \'?SessionId=\' + self.sessionId + \'&PageNumber=\' " +
|
||||
"+ self.pageNumber + \'&NoCache=\' + enabled + \')\';\r\n }\r\n " +
|
||||
" return null;\r\n });\r\n }\r\n\r\n function parseLog(log) " +
|
||||
"{\r\n if (log.ModuleId === 40 && log.Arguments && log.Arguments.length " +
|
||||
"> 0) {\r\n // find session\r\n var sessionId = log.Arg" +
|
||||
"uments[0];\r\n var session = vm.sessionIndex[sessionId];\r\n " +
|
||||
" if (!session && log.EventTypeId === 10) { // Starting Session (Ignore \'pa" +
|
||||
"rtial\' sessions)\r\n session = new sessionViewModel(log.Argumen" +
|
||||
"ts[1]);\r\n vm.sessionIndex[sessionId] = session;\r\n " +
|
||||
" vm.sessions.unshift(session);\r\n vm.noSessions(false);" +
|
||||
"\r\n }\r\n if (session) {\r\n switch " +
|
||||
"(log.EventTypeId) {\r\n case 10: // SessionStarting\r\n " +
|
||||
" session.startTime(log.FormattedTimestamp.substring(log.For" +
|
||||
"mattedTimestamp.indexOf(\' \') + 1));\r\n break;\r\n " +
|
||||
" case 11: // SessionProgress\r\n sessio" +
|
||||
"n.progressValue(log.Arguments[1]);\r\n session.progress" +
|
||||
"Status(log.Arguments[2]);\r\n break;\r\n " +
|
||||
" case 12: // SessionFinished\r\n session.sessionE" +
|
||||
"nded(true);\r\n session.progressStatus(\'Import Finished" +
|
||||
"\');\r\n break;\r\n case 15: // Ses" +
|
||||
"sionWarning\r\n session.messages.unshift(log);\r\n " +
|
||||
" break;\r\n case 16: // SessionError\r\n " +
|
||||
" session.messages.unshift(log);\r\n " +
|
||||
" break;\r\n case 100: // ImportPageStarting\r\n " +
|
||||
" session.addSessionPage(new sessionPageViewModel(sessionId, l" +
|
||||
"og.Arguments[1]));\r\n break;\r\n " +
|
||||
"case 104: // ImportPageImageUpdate\r\n var p = session." +
|
||||
"sessionPagesIndex[log.Arguments[1]];\r\n if (p) {\r\n " +
|
||||
" p.updateThumbnail();\r\n }\r" +
|
||||
"\n break;\r\n case 105: // Import" +
|
||||
"PageProgress\r\n var p = session.sessionPagesIndex[log." +
|
||||
"Arguments[1]];\r\n if (p) {\r\n " +
|
||||
" p.progressValue(log.Arguments[2]);\r\n p.prog" +
|
||||
"ressStatus(log.Arguments[3]);\r\n }\r\n " +
|
||||
" break;\r\n case 110: // ImportPageDetected\r\n " +
|
||||
" var p = session.sessionPagesIndex[log.Arguments[1]];\r\n " +
|
||||
" if (p) {\r\n p.documentTem" +
|
||||
"plateId(log.Arguments[2]);\r\n p.documentTemplate(l" +
|
||||
"og.Arguments[3]);\r\n p.assignedDataType(log.Argume" +
|
||||
"nts[4]);\r\n p.assignedDataId(log.Arguments[5]);\r\n " +
|
||||
" p.assignedData(log.Arguments[6]);\r\n " +
|
||||
" p.detected(true);\r\n if (!isLive" +
|
||||
") {\r\n p.updateThumbnail();\r\n " +
|
||||
" }\r\n }\r\n ses" +
|
||||
"sion.messages.unshift(log);\r\n break;\r\n " +
|
||||
" case 115: // ImportPageUndetected\r\n var p = " +
|
||||
"session.sessionPagesIndex[log.Arguments[1]];\r\n if (p)" +
|
||||
" {\r\n p.undetected(true);\r\n " +
|
||||
" if (!isLive) {\r\n p.updateThumbnail()" +
|
||||
";\r\n }\r\n }\r\n " +
|
||||
" session.messages.unshift(log);\r\n bre" +
|
||||
"ak;\r\n case 150: // Ignore: ImportPageUndetectedStored\r\n " +
|
||||
" break;\r\n default:\r\n " +
|
||||
" session.messages.unshift(log);\r\n }\r\n " +
|
||||
" }\r\n }\r\n }\r\n function init() {\r\n // Cr" +
|
||||
"eate View Model\r\n vm = new pageViewModel();\r\n\r\n // Load Lo" +
|
||||
"gs\r\n var d = new Date();\r\n var loadData = {\r\n " +
|
||||
" Format: \"json\",\r\n Start: d.getFullYear() + \'-\' + (d.getMonth()" +
|
||||
" + 1) + \'-\' + d.getDate(),\r\n End: null,\r\n ModuleId" +
|
||||
": 40,\r\n Take: 2000\r\n };\r\n $.ajax({\r\n " +
|
||||
" url: \'");
|
||||
|
||||
|
||||
#line 110 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
Write(Links.ClientSource.Style.Images.Status.fail32_png);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(")\';\r\n var isLive = false;\r\n\r\n function pageViewModel() {\r\n " +
|
||||
" var self = this;\r\n\r\n self.noSessions = ko.observable(true);\r\n " +
|
||||
" self.sessions = ko.observableArray();\r\n self.sessionIndex = {}" +
|
||||
";\r\n\r\n self.sessionRendered = function (e, d) {\r\n if (!" +
|
||||
"d.sessionEnded()) {\r\n d.progressbar = $(e).find(\'.sessionProg" +
|
||||
"ress\').progressbar();\r\n }\r\n };\r\n }\r\n fun" +
|
||||
"ction sessionViewModel(id) {\r\n var self = this;\r\n\r\n self.t" +
|
||||
"itle = ko.observable(id);\r\n self.messages = ko.observableArray();\r\n " +
|
||||
" self.progressStatus = ko.observable();\r\n self.progressValue" +
|
||||
" = ko.observable();\r\n self.startTime = ko.observable();\r\n " +
|
||||
"self.sessionEnded = ko.observable(false);\r\n\r\n self.sessionPages = ko." +
|
||||
"observableArray();\r\n self.sessionPagesIndex = {};\r\n self.a" +
|
||||
"ddSessionPage = function (sessionPage) {\r\n //if (isLive) {\r\n " +
|
||||
" self.sessionPages.push(sessionPage);\r\n self.sessionPag" +
|
||||
"esIndex[sessionPage.pageNumber] = sessionPage;\r\n //}\r\n " +
|
||||
" }\r\n }\r\n function sessionPageViewModel(sessionId, pageNumber) {\r\n " +
|
||||
" var self = this;\r\n\r\n self.sessionId = sessionId;\r\n " +
|
||||
" self.pageNumber = pageNumber;\r\n self.title = \'Page \' + pageNumber" +
|
||||
";\r\n self.progressStatus = ko.observable();\r\n self.progress" +
|
||||
"Value = ko.observable();\r\n self.undetected = ko.observable(false);\r\n " +
|
||||
" self.detected = ko.observable(false);\r\n self.documentTempl" +
|
||||
"ateId = ko.observable();\r\n self.documentTemplate = ko.observable();\r\n" +
|
||||
" self.assignedDataType = ko.observable();\r\n self.assignedD" +
|
||||
"ataId = ko.observable();\r\n self.assignedData = ko.observable();\r\n " +
|
||||
" self.thumbnailEnabled = ko.observable(0);\r\n self.updateThumbn" +
|
||||
"ail = function () {\r\n self.thumbnailEnabled(self.thumbnailEnabled" +
|
||||
"() + 1);\r\n }\r\n self.documentTemplateUrl = ko.computed(func" +
|
||||
"tion () {\r\n return urlDocumentTemplate + self.documentTemplateId(" +
|
||||
");\r\n });\r\n self.manuallyAssignUrl = ko.computed(function (" +
|
||||
") {\r\n return urlManuallyAssign + \'#\' + self.sessionId + \'_\' + sel" +
|
||||
"f.pageNumber;\r\n });\r\n self.assignedDataUrl = ko.computed(f" +
|
||||
"unction () {\r\n var t = self.assignedDataType();\r\n " +
|
||||
"var dId = self.assignedDataId();\r\n switch (t) {\r\n " +
|
||||
" case \'Device\':\r\n return urlDeviceShow + dId;\r\n " +
|
||||
" case \'Job\':\r\n return urlJobShow + dId;\r\n " +
|
||||
" case \'User\':\r\n return urlUserShow + dId;\r" +
|
||||
"\n }\r\n return null;\r\n });\r\n s" +
|
||||
"elf.thumbnailUrl = ko.computed(function () {\r\n var enabled = self" +
|
||||
".thumbnailEnabled();\r\n if (enabled > 0) {\r\n re" +
|
||||
"turn \'url(\' + urlPageThumbnail + \'?SessionId=\' + self.sessionId + \'&PageNumber=\'" +
|
||||
" + self.pageNumber + \'&NoCache=\' + enabled + \')\';\r\n }\r\n " +
|
||||
" return null;\r\n });\r\n }\r\n\r\n function parseLog(log)" +
|
||||
" {\r\n if (log.ModuleId === 40 && log.Arguments && log.Arguments.length" +
|
||||
" > 0) {\r\n // find session\r\n var sessionId = log.Ar" +
|
||||
"guments[0];\r\n var session = vm.sessionIndex[sessionId];\r\n " +
|
||||
" if (!session && log.EventTypeId === 10) { // Starting Session (Ignore \'p" +
|
||||
"artial\' sessions)\r\n session = new sessionViewModel(log.Argume" +
|
||||
"nts[1]);\r\n vm.sessionIndex[sessionId] = session;\r\n " +
|
||||
" vm.sessions.unshift(session);\r\n vm.noSessions(false)" +
|
||||
";\r\n }\r\n if (session) {\r\n switch" +
|
||||
" (log.EventTypeId) {\r\n case 10: // SessionStarting\r\n " +
|
||||
" session.startTime(log.FormattedTimestamp.substring(log.Fo" +
|
||||
"rmattedTimestamp.indexOf(\' \') + 1));\r\n break;\r\n " +
|
||||
" case 11: // SessionProgress\r\n sessi" +
|
||||
"on.progressValue(log.Arguments[1]);\r\n session.progres" +
|
||||
"sStatus(log.Arguments[2]);\r\n break;\r\n " +
|
||||
" case 12: // SessionFinished\r\n session.session" +
|
||||
"Ended(true);\r\n session.progressStatus(\'Import Finishe" +
|
||||
"d\');\r\n break;\r\n case 15: // Se" +
|
||||
"ssionWarning\r\n session.messages.unshift(log);\r\n " +
|
||||
" break;\r\n case 16: // SessionError\r\n" +
|
||||
" session.messages.unshift(log);\r\n " +
|
||||
" break;\r\n case 100: // ImportPageStarting\r\n " +
|
||||
" session.addSessionPage(new sessionPageViewModel(sessionId, " +
|
||||
"log.Arguments[1]));\r\n break;\r\n " +
|
||||
" case 104: // ImportPageImageUpdate\r\n var p = session" +
|
||||
".sessionPagesIndex[log.Arguments[1]];\r\n if (p) {\r\n " +
|
||||
" p.updateThumbnail();\r\n }" +
|
||||
"\r\n break;\r\n case 105: // Impor" +
|
||||
"tPageProgress\r\n var p = session.sessionPagesIndex[log" +
|
||||
".Arguments[1]];\r\n if (p) {\r\n " +
|
||||
" p.progressValue(log.Arguments[2]);\r\n p.pro" +
|
||||
"gressStatus(log.Arguments[3]);\r\n }\r\n " +
|
||||
" break;\r\n case 110: // ImportPageDetected\r\n " +
|
||||
" var p = session.sessionPagesIndex[log.Arguments[1]];\r\n " +
|
||||
" if (p) {\r\n p.documentTe" +
|
||||
"mplateId(log.Arguments[2]);\r\n p.documentTemplate(" +
|
||||
"log.Arguments[3]);\r\n p.assignedDataType(log.Argum" +
|
||||
"ents[4]);\r\n p.assignedDataId(log.Arguments[5]);\r\n" +
|
||||
" p.assignedData(log.Arguments[6]);\r\n " +
|
||||
" p.detected(true);\r\n if (!isLiv" +
|
||||
"e) {\r\n p.updateThumbnail();\r\n " +
|
||||
" }\r\n }\r\n se" +
|
||||
"ssion.messages.unshift(log);\r\n break;\r\n " +
|
||||
" case 115: // ImportPageUndetected\r\n var p =" +
|
||||
" session.sessionPagesIndex[log.Arguments[1]];\r\n if (p" +
|
||||
") {\r\n p.undetected(true);\r\n " +
|
||||
" if (!isLive) {\r\n p.updateThumbnail(" +
|
||||
");\r\n }\r\n }\r\n " +
|
||||
" session.messages.unshift(log);\r\n br" +
|
||||
"eak;\r\n case 150: // Ignore: ImportPageUndetectedStored\r\n " +
|
||||
" break;\r\n default:\r\n " +
|
||||
" session.messages.unshift(log);\r\n }\r\n " +
|
||||
" }\r\n }\r\n }\r\n function init() {\r\n // C" +
|
||||
"reate View Model\r\n vm = new pageViewModel();\r\n\r\n // Load L" +
|
||||
"ogs\r\n var d = new Date();\r\n var loadData = {\r\n " +
|
||||
" Format: \"json\",\r\n Start: d.getFullYear() + \'-\' + (d.getMonth(" +
|
||||
") + 1) + \'-\' + d.getDate(),\r\n End: null,\r\n ModuleI" +
|
||||
"d: 40,\r\n Take: 2000\r\n };\r\n $.ajax({\r\n " +
|
||||
" url: \'");
|
||||
|
||||
|
||||
#line 285 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
#line 283 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
Write(Url.Action(MVC.API.Logging.RetrieveEvents()));
|
||||
|
||||
|
||||
@@ -457,7 +452,7 @@ WriteLiteral(@"',
|
||||
liveConnection = $.connection('");
|
||||
|
||||
|
||||
#line 305 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
#line 303 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
Write(Url.Content("~/API/Logging/Notifications"));
|
||||
|
||||
|
||||
@@ -466,7 +461,7 @@ WriteLiteral(@"',
|
||||
WriteLiteral("\', { addToGroups: \'");
|
||||
|
||||
|
||||
#line 305 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
#line 303 "..\..\Areas\Config\Views\DocumentTemplate\ImportStatus.cshtml"
|
||||
Write(Disco.BI.DocumentTemplateBI.Importer.DocumentImporterLog.Current.LiveLogGroupName);
|
||||
|
||||
|
||||
|
||||
@@ -389,7 +389,7 @@
|
||||
@Html.Partial(MVC.Config.DocumentTemplate.Views._ExpressionsTable, Model.TemplateExpressions)
|
||||
<div id="dialogConfirmDelete" title="Delete this Document Template?">
|
||||
<p>
|
||||
<span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 100px 0;"></span>This item will be permanently deleted and cannot be recovered.<br />
|
||||
<i class="fa fa-exclamation-triangle fa-lg warning"></i>This item will be permanently deleted and cannot be recovered.<br />
|
||||
<em>This <strong>will not delete attachments</strong> which have already been imported,
|
||||
but any generated documents will no longer be automatically imported.</em><br />
|
||||
Are you sure?
|
||||
|
||||
@@ -982,13 +982,11 @@ WriteLiteral(" id=\"dialogConfirmDelete\"");
|
||||
|
||||
WriteLiteral(" title=\"Delete this Document Template?\"");
|
||||
|
||||
WriteLiteral(">\r\n <p>\r\n <span");
|
||||
WriteLiteral(">\r\n <p>\r\n <i");
|
||||
|
||||
WriteLiteral(" class=\"ui-icon ui-icon-alert\"");
|
||||
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg warning\"");
|
||||
|
||||
WriteLiteral(" style=\"float: left; margin: 0 7px 100px 0;\"");
|
||||
|
||||
WriteLiteral(@"></span>This item will be permanently deleted and cannot be recovered.<br />
|
||||
WriteLiteral(@"></i>This item will be permanently deleted and cannot be recovered.<br />
|
||||
<em>This <strong>will not delete attachments</strong> which have already been imported,
|
||||
but any generated documents will no longer be automatically imported.</em><br />
|
||||
Are you sure?
|
||||
@@ -1088,16 +1086,16 @@ WriteLiteral(" id=\"dialogBulkGenerate\"");
|
||||
|
||||
WriteLiteral(" class=\"hiddenDialog\"");
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 20958), Tuple.Create("\"", 21009)
|
||||
, Tuple.Create(Tuple.Create("", 20966), Tuple.Create("Bulk", 20966), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 20970), Tuple.Create("Generate:", 20971), true)
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 20927), Tuple.Create("\"", 20978)
|
||||
, Tuple.Create(Tuple.Create("", 20935), Tuple.Create("Bulk", 20935), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 20939), Tuple.Create("Generate:", 20940), true)
|
||||
|
||||
#line 435 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
|
||||
, Tuple.Create(Tuple.Create(" ", 20980), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Id
|
||||
, Tuple.Create(Tuple.Create(" ", 20949), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Id
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 20981), false)
|
||||
, 20950), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">\r\n <div");
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
</div>
|
||||
<div id="dialogRemove" title="Delete this Page?">
|
||||
<p>
|
||||
<span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>
|
||||
<i class="fa fa-exclamation-triangle fa-lg warning"></i>
|
||||
Are you sure?
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -159,13 +159,11 @@ WriteLiteral(" id=\"dialogRemove\"");
|
||||
|
||||
WriteLiteral(" title=\"Delete this Page?\"");
|
||||
|
||||
WriteLiteral(">\r\n <p>\r\n <span");
|
||||
WriteLiteral(">\r\n <p>\r\n <i");
|
||||
|
||||
WriteLiteral(" class=\"ui-icon ui-icon-alert\"");
|
||||
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg warning\"");
|
||||
|
||||
WriteLiteral(" style=\"float: left; margin: 0 7px 20px 0;\"");
|
||||
|
||||
WriteLiteral("></span>\r\n Are you sure?\r\n </p>\r\n</div>\r\n<script");
|
||||
WriteLiteral("></i>\r\n Are you sure?\r\n </p>\r\n</div>\r\n<script");
|
||||
|
||||
WriteLiteral(" type=\"text/javascript\"");
|
||||
|
||||
|
||||
@@ -101,11 +101,8 @@
|
||||
<table class="logEventsViewport" data-bind="visible: messages().length > 0" style="display: none">
|
||||
<tbody data-bind="foreach: messages">
|
||||
<tr>
|
||||
<td class="icon" data-bind="attr: {title: FormattedTimestamp}, css: {information: EventTypeSeverity == 0, warning: EventTypeSeverity == 1, error: EventTypeSeverity == 2}">
|
||||
|
||||
</td>
|
||||
<td class="message" data-bind="text: FormattedMessage, attr: {title: EventTypeName}">
|
||||
</td>
|
||||
<td class="icon"><i class="fa" data-bind="css: { 'fa-info-circle': EventTypeSeverity == 0, 'fa-exclamation-triangle': EventTypeSeverity == 1, 'fa-exclamation-circle': EventTypeSeverity == 2 }"></i></td>
|
||||
<td class="message" data-bind="text: FormattedMessage, attr: {title: EventTypeName}"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -262,19 +262,23 @@ WriteLiteral(">\r\n <tr>\r\n
|
||||
|
||||
WriteLiteral(" class=\"icon\"");
|
||||
|
||||
WriteLiteral(" data-bind=\"attr: {title: FormattedTimestamp}, css: {information: EventTypeSeveri" +
|
||||
"ty == 0, warning: EventTypeSeverity == 1, error: EventTypeSeverity == 2}\"");
|
||||
WriteLiteral("><i");
|
||||
|
||||
WriteLiteral(">\r\n \r\n </" +
|
||||
"td>\r\n <td");
|
||||
WriteLiteral(" class=\"fa\"");
|
||||
|
||||
WriteLiteral(" data-bind=\"css: { \'fa-info-circle\': EventTypeSeverity == 0, \'fa-exclamation-tria" +
|
||||
"ngle\': EventTypeSeverity == 1, \'fa-exclamation-circle\': EventTypeSeverity == 2 }" +
|
||||
"\"");
|
||||
|
||||
WriteLiteral("></i></td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"message\"");
|
||||
|
||||
WriteLiteral(" data-bind=\"text: FormattedMessage, attr: {title: EventTypeName}\"");
|
||||
|
||||
WriteLiteral(">\r\n </td>\r\n </tr>\r\n " +
|
||||
" </tbody>\r\n </table>\r\n </di" +
|
||||
"v>\r\n </div>\r\n <div");
|
||||
WriteLiteral("></td>\r\n </tr>\r\n </tbody>\r\n " +
|
||||
" </table>\r\n </div>\r\n </div>\r\n " +
|
||||
" <div");
|
||||
|
||||
WriteLiteral(" class=\"sessionInfoConsole\"");
|
||||
|
||||
@@ -318,7 +322,7 @@ WriteLiteral(@">
|
||||
var deviceBaseUrl = '");
|
||||
|
||||
|
||||
#line 143 "..\..\Areas\Config\Views\Enrolment\Status.cshtml"
|
||||
#line 140 "..\..\Areas\Config\Views\Enrolment\Status.cshtml"
|
||||
Write(Url.Action(MVC.Device.Show()));
|
||||
|
||||
|
||||
@@ -327,7 +331,7 @@ WriteLiteral(@">
|
||||
WriteLiteral("/\'\r\n var deviceModelImageUrl = \'");
|
||||
|
||||
|
||||
#line 144 "..\..\Areas\Config\Views\Enrolment\Status.cshtml"
|
||||
#line 141 "..\..\Areas\Config\Views\Enrolment\Status.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceModel.Image()));
|
||||
|
||||
|
||||
@@ -336,7 +340,7 @@ WriteLiteral("/\'\r\n var deviceModelImageUrl = \'");
|
||||
WriteLiteral("/\'\r\n var iconWarningUrl = \'url(");
|
||||
|
||||
|
||||
#line 145 "..\..\Areas\Config\Views\Enrolment\Status.cshtml"
|
||||
#line 142 "..\..\Areas\Config\Views\Enrolment\Status.cshtml"
|
||||
Write(Links.ClientSource.Style.Images.Status.warning32_png);
|
||||
|
||||
|
||||
@@ -345,7 +349,7 @@ WriteLiteral("/\'\r\n var iconWarningUrl = \'url(");
|
||||
WriteLiteral(")\';\r\n var iconErrorUrl = \'url(");
|
||||
|
||||
|
||||
#line 146 "..\..\Areas\Config\Views\Enrolment\Status.cshtml"
|
||||
#line 143 "..\..\Areas\Config\Views\Enrolment\Status.cshtml"
|
||||
Write(Links.ClientSource.Style.Images.Status.fail32_png);
|
||||
|
||||
|
||||
@@ -448,7 +452,7 @@ WriteLiteral(")\';\r\n\r\n function pageViewModel() {\r\n var
|
||||
" vm = new pageViewModel();\r\n $.ajax({\r\n url: \'");
|
||||
|
||||
|
||||
#line 310 "..\..\Areas\Config\Views\Enrolment\Status.cshtml"
|
||||
#line 307 "..\..\Areas\Config\Views\Enrolment\Status.cshtml"
|
||||
Write(Url.Action(MVC.API.DeviceModel.Index()));
|
||||
|
||||
|
||||
@@ -482,7 +486,7 @@ WriteLiteral(@"',
|
||||
url: '");
|
||||
|
||||
|
||||
#line 335 "..\..\Areas\Config\Views\Enrolment\Status.cshtml"
|
||||
#line 332 "..\..\Areas\Config\Views\Enrolment\Status.cshtml"
|
||||
Write(Url.Action(MVC.API.Logging.RetrieveEvents()));
|
||||
|
||||
|
||||
@@ -518,7 +522,7 @@ WriteLiteral(@"',
|
||||
liveConnection = $.connection('");
|
||||
|
||||
|
||||
#line 362 "..\..\Areas\Config\Views\Enrolment\Status.cshtml"
|
||||
#line 359 "..\..\Areas\Config\Views\Enrolment\Status.cshtml"
|
||||
Write(Url.Content("~/API/Logging/Notifications"));
|
||||
|
||||
|
||||
@@ -527,7 +531,7 @@ WriteLiteral(@"',
|
||||
WriteLiteral("\', { addToGroups: \'");
|
||||
|
||||
|
||||
#line 362 "..\..\Areas\Config\Views\Enrolment\Status.cshtml"
|
||||
#line 359 "..\..\Areas\Config\Views\Enrolment\Status.cshtml"
|
||||
Write(Disco.BI.DeviceBI.EnrolmentLog.Current.LiveLogGroupName);
|
||||
|
||||
|
||||
|
||||
@@ -77,8 +77,7 @@
|
||||
@if (Model.OrganisationAddresses.Count > 1)
|
||||
{
|
||||
<div id="messageMultiSiteMode" style="padding: 0.7em 0.7em; margin-top: 20px;" class="ui-state-highlight ui-corner-all">
|
||||
<span style="margin-right: 0.3em; float: left;" class="ui-icon ui-icon-info"></span>
|
||||
Multi-Site mode is recommended where multiple addresses are configured.
|
||||
<i class="fa fa-info-circle information"></i> Multi-Site mode is recommended where multiple addresses are configured.
|
||||
</div>
|
||||
}
|
||||
</td>
|
||||
@@ -119,7 +118,7 @@
|
||||
<td>
|
||||
@if (canConfigAddresses)
|
||||
{
|
||||
<span class="edit" title="Edit Address"></span><span class="delete" title="Delete Address"></span>
|
||||
<i class="fa fa-edit information edit" title="Edit Address"></i> <i class="fa fa-times-circle warning delete" title="Delete Address"></i>
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -205,8 +204,11 @@
|
||||
{
|
||||
<div id="dialogConfirmRemove" title="Delete this Address?">
|
||||
<p>
|
||||
<span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>
|
||||
This item will be permanently deleted and cannot be recovered. Are you sure?
|
||||
<i class="fa fa-exclamation-triangle fa-lg warning"></i>
|
||||
This item will be permanently deleted and cannot be recovered.
|
||||
</p>
|
||||
<p>
|
||||
<strong>Are you sure?</strong>
|
||||
</p>
|
||||
</div>
|
||||
<div id="dialogEdit" title="Edit/Create Address">
|
||||
@@ -291,7 +293,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
$('#organisationAddresses').find('span.delete').click(function () {
|
||||
$('#organisationAddresses').find('i.delete').click(function () {
|
||||
var componentRow = $(this).closest('tr');
|
||||
var id = componentRow.attr('data-addressid');
|
||||
if (id) {
|
||||
@@ -336,7 +338,7 @@
|
||||
dialog.dialog('open');
|
||||
}
|
||||
|
||||
$('#organisationAddresses').find('span.edit').click(function () {
|
||||
$('#organisationAddresses').find('i.edit').click(function () {
|
||||
var componentRow = $(this).closest('tr');
|
||||
editAddress(componentRow);
|
||||
});
|
||||
|
||||
@@ -362,17 +362,15 @@ WriteLiteral(" style=\"padding: 0.7em 0.7em; margin-top: 20px;\"");
|
||||
|
||||
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
|
||||
|
||||
WriteLiteral(">\r\n <span");
|
||||
WriteLiteral(">\r\n <i");
|
||||
|
||||
WriteLiteral(" style=\"margin-right: 0.3em; float: left;\"");
|
||||
WriteLiteral(" class=\"fa fa-info-circle information\"");
|
||||
|
||||
WriteLiteral(" class=\"ui-icon ui-icon-info\"");
|
||||
|
||||
WriteLiteral("></span>\r\n Multi-Site mode is recommended where multiple a" +
|
||||
"ddresses are configured.\r\n </div>\r\n");
|
||||
WriteLiteral("></i> Multi-Site mode is recommended where multiple addresses are configured" +
|
||||
".\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 83 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 82 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -385,13 +383,13 @@ WriteLiteral(" style=\"width: 160px\"");
|
||||
WriteLiteral(">Addresses:\r\n");
|
||||
|
||||
|
||||
#line 88 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 87 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 88 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 87 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
if (canConfigAddresses)
|
||||
{
|
||||
|
||||
@@ -413,7 +411,7 @@ WriteLiteral(" class=\"button\"");
|
||||
WriteLiteral(">Create</a>\r\n");
|
||||
|
||||
|
||||
#line 93 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 92 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -422,13 +420,13 @@ WriteLiteral(">Create</a>\r\n");
|
||||
WriteLiteral(" </th>\r\n <td>\r\n");
|
||||
|
||||
|
||||
#line 96 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 95 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 96 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 95 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
if (Model.OrganisationAddresses.Count > 0)
|
||||
{
|
||||
|
||||
@@ -445,13 +443,13 @@ WriteLiteral(">\r\n <tr>\r\n <
|
||||
" </tr>\r\n");
|
||||
|
||||
|
||||
#line 106 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 105 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 106 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 105 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
foreach (var item in Model.OrganisationAddresses)
|
||||
{
|
||||
|
||||
@@ -463,7 +461,7 @@ WriteLiteral(" <tr");
|
||||
WriteLiteral(" data-addressid=\"");
|
||||
|
||||
|
||||
#line 108 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 107 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(item.Id);
|
||||
|
||||
|
||||
@@ -479,7 +477,7 @@ WriteLiteral(" class=\"name\"");
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 110 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 109 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.Name));
|
||||
|
||||
|
||||
@@ -492,7 +490,7 @@ WriteLiteral(" class=\"shortName\"");
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 110 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 109 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.ShortName));
|
||||
|
||||
|
||||
@@ -506,7 +504,7 @@ WriteLiteral(" class=\"address\"");
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 113 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 112 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.Address));
|
||||
|
||||
|
||||
@@ -519,7 +517,7 @@ WriteLiteral(" class=\"suburb\"");
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 114 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 113 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.Suburb));
|
||||
|
||||
|
||||
@@ -532,7 +530,7 @@ WriteLiteral(" class=\"postcode\"");
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 114 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 113 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.Postcode));
|
||||
|
||||
|
||||
@@ -545,7 +543,7 @@ WriteLiteral(" class=\"state\"");
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 115 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 114 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.State));
|
||||
|
||||
|
||||
@@ -558,7 +556,7 @@ WriteLiteral(" class=\"country\"");
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 115 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 114 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.Country));
|
||||
|
||||
|
||||
@@ -575,7 +573,7 @@ WriteLiteral(" class=\"phoneNumber\"");
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 116 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 115 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.PhoneNumber));
|
||||
|
||||
|
||||
@@ -592,7 +590,7 @@ WriteLiteral(" class=\"faxNumber\"");
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 117 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 116 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Html.DisplayFor(modelItem => item.FaxNumber));
|
||||
|
||||
|
||||
@@ -602,37 +600,37 @@ WriteLiteral("</span>\r\n </td>\r\n
|
||||
"td>\r\n");
|
||||
|
||||
|
||||
#line 120 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 119 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 120 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 119 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
if (canConfigAddresses)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <span");
|
||||
WriteLiteral(" <i");
|
||||
|
||||
WriteLiteral(" class=\"edit\"");
|
||||
WriteLiteral(" class=\"fa fa-edit information edit\"");
|
||||
|
||||
WriteLiteral(" title=\"Edit Address\"");
|
||||
|
||||
WriteLiteral("></span>");
|
||||
WriteLiteral("></i> ");
|
||||
|
||||
WriteLiteral("<span");
|
||||
WriteLiteral("<i");
|
||||
|
||||
WriteLiteral(" class=\"delete\"");
|
||||
WriteLiteral(" class=\"fa fa-times-circle warning delete\"");
|
||||
|
||||
WriteLiteral(" title=\"Delete Address\"");
|
||||
|
||||
WriteLiteral("></span>\r\n");
|
||||
WriteLiteral("></i>\r\n");
|
||||
|
||||
|
||||
#line 123 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 122 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -641,7 +639,7 @@ WriteLiteral("></span>\r\n");
|
||||
WriteLiteral(" </td>\r\n </tr>\r\n");
|
||||
|
||||
|
||||
#line 126 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 125 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -650,7 +648,7 @@ WriteLiteral(" </td>\r\n
|
||||
WriteLiteral(" </table>\r\n");
|
||||
|
||||
|
||||
#line 128 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 127 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -665,7 +663,7 @@ WriteLiteral(" class=\"smallMessage\"");
|
||||
WriteLiteral(">No Addresses Stored</span>\r\n");
|
||||
|
||||
|
||||
#line 132 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 131 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -674,7 +672,7 @@ WriteLiteral(">No Addresses Stored</span>\r\n");
|
||||
WriteLiteral(" </td>\r\n </tr>\r\n </table>\r\n</div>\r\n");
|
||||
|
||||
|
||||
#line 137 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 136 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
if (Authorization.Has(Claims.Config.Organisation.ConfigureLogo))
|
||||
{
|
||||
|
||||
@@ -690,13 +688,13 @@ WriteLiteral(" title=\"Update Organisation Logo\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 140 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 139 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 140 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 139 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
using (Html.BeginForm(MVC.API.System.OrganisationLogo(true, null, null), FormMethod.Post, new { enctype = "multipart/form-data" }))
|
||||
{
|
||||
|
||||
@@ -765,7 +763,7 @@ WriteLiteral(" class=\"field-validation-valid field-validation-error\"");
|
||||
WriteLiteral(">* Required</span>\r\n </div>\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 155 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 154 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -807,14 +805,14 @@ WriteLiteral(">\r\n $(function () {\r\n var button = $(\'#butt
|
||||
" </script>\r\n");
|
||||
|
||||
|
||||
#line 203 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 202 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 204 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 203 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
if (canConfigAddresses)
|
||||
{
|
||||
|
||||
@@ -827,14 +825,13 @@ WriteLiteral(" id=\"dialogConfirmRemove\"");
|
||||
|
||||
WriteLiteral(" title=\"Delete this Address?\"");
|
||||
|
||||
WriteLiteral(">\r\n <p>\r\n <span");
|
||||
WriteLiteral(">\r\n <p>\r\n <i");
|
||||
|
||||
WriteLiteral(" class=\"ui-icon ui-icon-alert\"");
|
||||
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg warning\"");
|
||||
|
||||
WriteLiteral(" style=\"float: left; margin: 0 7px 20px 0;\"");
|
||||
|
||||
WriteLiteral("></span>\r\n This item will be permanently deleted and cannot be recover" +
|
||||
"ed. Are you sure?\r\n </p>\r\n </div>\r\n");
|
||||
WriteLiteral("></i>\r\n This item will be permanently deleted and cannot be recovered." +
|
||||
"\r\n </p>\r\n <p>\r\n <strong>Are you sure?</strong>\r\n " +
|
||||
" </p>\r\n </div>\r\n");
|
||||
|
||||
WriteLiteral(" <div");
|
||||
|
||||
@@ -934,7 +931,7 @@ WriteLiteral(@">
|
||||
}
|
||||
}
|
||||
});
|
||||
$('#organisationAddresses').find('span.delete').click(function () {
|
||||
$('#organisationAddresses').find('i.delete').click(function () {
|
||||
var componentRow = $(this).closest('tr');
|
||||
var id = componentRow.attr('data-addressid');
|
||||
if (id) {
|
||||
@@ -943,7 +940,7 @@ WriteLiteral(@">
|
||||
buttons['Delete'] = function () { $(this).dialog(""disable""); window.location.href = '");
|
||||
|
||||
|
||||
#line 300 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 302 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Url.Action(MVC.API.System.DeleteOrganisationAddress()));
|
||||
|
||||
|
||||
@@ -972,22 +969,21 @@ WriteLiteral("\' + \'?redirect=true&id=\' + id; };\r\n var button
|
||||
"state);\r\n $(\'#editCountry\').val(country);\r\n $(\'#editPhoneN" +
|
||||
"umber\').val(phoneNumber);\r\n $(\'#editFaxNumber\').val(faxNumber);\r\n " +
|
||||
" dialog.dialog(\'open\');\r\n }\r\n\r\n $(\'#organisationAddresses\')" +
|
||||
".find(\'span.edit\').click(function () {\r\n var componentRow = $(this).c" +
|
||||
"losest(\'tr\');\r\n editAddress(componentRow);\r\n });\r\n\r\n $(" +
|
||||
"\'#createAddress\').click(function () {\r\n editAddress();\r\n r" +
|
||||
"eturn false;\r\n });\r\n\r\n var submitAddress = function () {\r\n " +
|
||||
" var dialog = $(\'#dialogEdit\');\r\n var data = {\r\n Id" +
|
||||
": dialog.attr(\'data-addressid\'),\r\n ShortName: $(\'#editShortName\')" +
|
||||
".val(),\r\n Name: $(\'#editName\').val(),\r\n Address: $" +
|
||||
"(\'#editAddress\').val(),\r\n Suburb: $(\'#editSuburb\').val(),\r\n " +
|
||||
" Postcode: $(\'#editPostcode\').val(),\r\n State: $(\'#editSt" +
|
||||
"ate\').val(),\r\n Country: $(\'#editCountry\').val(),\r\n " +
|
||||
" PhoneNumber: $(\'#editPhoneNumber\').val(),\r\n FaxNumber: $(\'#editF" +
|
||||
"axNumber\').val()\r\n };\r\n\r\n $.ajax({\r\n url: \'" +
|
||||
"");
|
||||
".find(\'i.edit\').click(function () {\r\n var componentRow = $(this).clos" +
|
||||
"est(\'tr\');\r\n editAddress(componentRow);\r\n });\r\n\r\n $(\'#c" +
|
||||
"reateAddress\').click(function () {\r\n editAddress();\r\n retu" +
|
||||
"rn false;\r\n });\r\n\r\n var submitAddress = function () {\r\n " +
|
||||
" var dialog = $(\'#dialogEdit\');\r\n var data = {\r\n Id: d" +
|
||||
"ialog.attr(\'data-addressid\'),\r\n ShortName: $(\'#editShortName\').va" +
|
||||
"l(),\r\n Name: $(\'#editName\').val(),\r\n Address: $(\'#" +
|
||||
"editAddress\').val(),\r\n Suburb: $(\'#editSuburb\').val(),\r\n " +
|
||||
" Postcode: $(\'#editPostcode\').val(),\r\n State: $(\'#editState" +
|
||||
"\').val(),\r\n Country: $(\'#editCountry\').val(),\r\n Ph" +
|
||||
"oneNumber: $(\'#editPhoneNumber\').val(),\r\n FaxNumber: $(\'#editFaxN" +
|
||||
"umber\').val()\r\n };\r\n\r\n $.ajax({\r\n url: \'");
|
||||
|
||||
|
||||
#line 365 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 367 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Url.Action(MVC.API.System.UpdateOrganisationAddress()));
|
||||
|
||||
|
||||
@@ -998,7 +994,7 @@ WriteLiteral("\',\r\n dataType: \'json\',\r\n data
|
||||
"f (d == \'OK\') {\r\n window.location.href = \'");
|
||||
|
||||
|
||||
#line 371 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 373 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
Write(Url.Action(MVC.Config.Organisation.Index()));
|
||||
|
||||
|
||||
@@ -1037,7 +1033,7 @@ WriteLiteral(@"';
|
||||
");
|
||||
|
||||
|
||||
#line 401 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
#line 403 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
|
||||
}
|
||||
|
||||
#line default
|
||||
|
||||
@@ -71,17 +71,17 @@
|
||||
<div>
|
||||
<input id="uninstallPluginData" type="checkbox" /><label for="uninstallPluginData"> Uninstall Plugin Data</label>
|
||||
<div id="uninstallPluginDataAlert" style="display: none; padding: 0.7em 0.7em; margin-top: 8px;" class="ui-state-error ui-corner-all">
|
||||
<span style="margin-right: 0.3em; float: left;" class="ui-icon ui-icon-alert"></span>NOTE: Data will be permanently deleted
|
||||
<i class="fa fa-exclamation-triangle fa-lg"></i> NOTE: Data will be permanently deleted
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="dialogUninstallPluginConfirm" title="Confirm Plugin Uninstall">
|
||||
<div style="padding: 0.7em 0.7em; margin-top: 8px;" class="ui-state-highlight ui-corner-all">
|
||||
<span style="margin-right: 0.3em; float: left;" class="ui-icon ui-icon-help"></span>Are you sure you want to uninstall this plugin?
|
||||
<i class="fa fa-info-circle information"></i> Are you sure you want to uninstall this plugin?
|
||||
<h4 id="uninstallPluginConfirm"></h4>
|
||||
</div>
|
||||
<div id="uninstallPluginDataConfirm" style="display: none; padding: 0.7em 0.7em; margin-top: 8px;" class="ui-state-error ui-corner-all">
|
||||
<span style="margin-right: 0.3em; float: left;" class="ui-icon ui-icon-alert"></span>NOTE: Data will be permanently deleted
|
||||
<i class="fa fa-exclamation-triangle fa-lg"></i> NOTE: Data will be permanently deleted
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
@@ -171,10 +171,11 @@
|
||||
if (Model.PluginUpdates.Count > 0)
|
||||
{
|
||||
<div id="updateAvailableContainer">
|
||||
<i class="fa fa-cloud-download"></i>
|
||||
<div>@(Model.PluginUpdates.Count) plugin update@(Model.PluginUpdates.Count == 1 ? " is" : "s are") available</div>
|
||||
@if (canInstall)
|
||||
{
|
||||
@Html.ActionLinkButton("Update Now", MVC.API.Plugin.UpdateAll())
|
||||
@Html.ActionLinkSmallButton("Update Now", MVC.API.Plugin.UpdateAll(), null, "alert")
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -350,14 +350,12 @@ WriteLiteral(" style=\"display: none; padding: 0.7em 0.7em; margin-top: 8px;\"")
|
||||
|
||||
WriteLiteral(" class=\"ui-state-error ui-corner-all\"");
|
||||
|
||||
WriteLiteral(">\r\n <span");
|
||||
WriteLiteral(">\r\n <i");
|
||||
|
||||
WriteLiteral(" style=\"margin-right: 0.3em; float: left;\"");
|
||||
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg\"");
|
||||
|
||||
WriteLiteral(" class=\"ui-icon ui-icon-alert\"");
|
||||
|
||||
WriteLiteral("></span>NOTE: Data will be permanently deleted\r\n </div>\r\n " +
|
||||
" </div>\r\n </div>\r\n");
|
||||
WriteLiteral("></i> NOTE: Data will be permanently deleted\r\n </div>\r\n " +
|
||||
" </div>\r\n </div>\r\n");
|
||||
|
||||
WriteLiteral(" <div");
|
||||
|
||||
@@ -371,13 +369,11 @@ WriteLiteral(" style=\"padding: 0.7em 0.7em; margin-top: 8px;\"");
|
||||
|
||||
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
|
||||
|
||||
WriteLiteral(">\r\n <span");
|
||||
WriteLiteral(">\r\n <i");
|
||||
|
||||
WriteLiteral(" style=\"margin-right: 0.3em; float: left;\"");
|
||||
WriteLiteral(" class=\"fa fa-info-circle information\"");
|
||||
|
||||
WriteLiteral(" class=\"ui-icon ui-icon-help\"");
|
||||
|
||||
WriteLiteral("></span>Are you sure you want to uninstall this plugin?\r\n <h4");
|
||||
WriteLiteral("></i> Are you sure you want to uninstall this plugin?\r\n <h4");
|
||||
|
||||
WriteLiteral(" id=\"uninstallPluginConfirm\"");
|
||||
|
||||
@@ -389,14 +385,12 @@ WriteLiteral(" style=\"display: none; padding: 0.7em 0.7em; margin-top: 8px;\"")
|
||||
|
||||
WriteLiteral(" class=\"ui-state-error ui-corner-all\"");
|
||||
|
||||
WriteLiteral(">\r\n <span");
|
||||
WriteLiteral(">\r\n <i");
|
||||
|
||||
WriteLiteral(" style=\"margin-right: 0.3em; float: left;\"");
|
||||
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg\"");
|
||||
|
||||
WriteLiteral(" class=\"ui-icon ui-icon-alert\"");
|
||||
|
||||
WriteLiteral("></span>NOTE: Data will be permanently deleted\r\n </div>\r\n </div" +
|
||||
">\r\n");
|
||||
WriteLiteral("></i> NOTE: Data will be permanently deleted\r\n </div>\r\n </" +
|
||||
"div>\r\n");
|
||||
|
||||
WriteLiteral(" <script>\r\n $(function () {\r\n // Uninstall\r\n " +
|
||||
" var uninstallUrl = \'");
|
||||
@@ -460,10 +454,14 @@ WriteLiteral(" <div");
|
||||
|
||||
WriteLiteral(" id=\"updateAvailableContainer\"");
|
||||
|
||||
WriteLiteral(">\r\n <div>");
|
||||
WriteLiteral(">\r\n <i");
|
||||
|
||||
WriteLiteral(" class=\"fa fa-cloud-download\"");
|
||||
|
||||
WriteLiteral("></i>\r\n <div>");
|
||||
|
||||
|
||||
#line 174 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
#line 175 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
Write(Model.PluginUpdates.Count);
|
||||
|
||||
|
||||
@@ -472,7 +470,7 @@ WriteLiteral(">\r\n <div>");
|
||||
WriteLiteral(" plugin update");
|
||||
|
||||
|
||||
#line 174 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
#line 175 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
Write(Model.PluginUpdates.Count == 1 ? " is" : "s are");
|
||||
|
||||
|
||||
@@ -481,13 +479,13 @@ WriteLiteral(" plugin update");
|
||||
WriteLiteral(" available</div>\r\n");
|
||||
|
||||
|
||||
#line 175 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
#line 176 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 175 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
#line 176 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
if (canInstall)
|
||||
{
|
||||
|
||||
@@ -495,15 +493,15 @@ WriteLiteral(" available</div>\r\n");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 177 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
Write(Html.ActionLinkButton("Update Now", MVC.API.Plugin.UpdateAll()));
|
||||
#line 178 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
Write(Html.ActionLinkSmallButton("Update Now", MVC.API.Plugin.UpdateAll(), null, "alert"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 177 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
|
||||
#line 178 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -518,7 +516,7 @@ WriteLiteral(" class=\"smallMessage\"");
|
||||
WriteLiteral(">You do not have sufficient permission to install these updates.</div>\r\n");
|
||||
|
||||
|
||||
#line 182 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
#line 183 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -538,7 +536,7 @@ WriteLiteral(@" <script>
|
||||
");
|
||||
|
||||
|
||||
#line 193 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
#line 194 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -552,13 +550,13 @@ WriteLiteral(" class=\"actionBar\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 198 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
#line 199 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 198 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
#line 199 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
if (canUninstall && Model.PluginManifests.Count > 0)
|
||||
{
|
||||
|
||||
@@ -566,14 +564,14 @@ WriteLiteral(">\r\n");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 200 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
#line 201 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
Write(Html.ActionLinkButton("Uninstall Plugins", MVC.Config.Plugins.Index(), "buttonUninstall"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 200 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
#line 201 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
|
||||
}
|
||||
|
||||
@@ -583,7 +581,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 202 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
#line 203 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
if (canInstall)
|
||||
{
|
||||
|
||||
@@ -591,14 +589,14 @@ WriteLiteral(" ");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 204 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
#line 205 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
Write(Html.ActionLinkButton("Install Plugins", MVC.Config.Plugins.Install()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 204 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
#line 205 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
<h4 id="dialogInstallPluginDetails"></h4>
|
||||
|
||||
<div style="padding: 0.7em 0.7em; margin-top: 8px;" class="ui-state-highlight ui-corner-all">
|
||||
<span style="margin-right: 0.3em; margin-bottom: 2em; float: left;" class="ui-icon ui-icon-alert"></span>Warning: All plugins run with the same level of network privileges as the Disco Web App.<br />
|
||||
<i class="fa fa-exclamation-triangle fa-lg information"></i> Warning: All plugins run with the same level of network privileges as the Disco Web App.<br />
|
||||
<strong>Only Install plugins from a trusted source.</strong>
|
||||
</div>
|
||||
</div>
|
||||
@@ -84,7 +84,7 @@
|
||||
}
|
||||
</div>
|
||||
<div style="padding: 0.7em 0.7em; margin-top: 8px;" class="ui-state-error ui-corner-all">
|
||||
<span style="margin-right: 0.3em; margin-bottom: 2em; float: left;" class="ui-icon ui-icon-alert"></span>Warning: All plugins run with the same level of network privileges as the Disco Web App.<br />
|
||||
<i class="fa fa-exclamation-triangle fa-lg"></i> Warning: All plugins run with the same level of network privileges as the Disco Web App.<br />
|
||||
<strong>Only install plugins from a trusted source.</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -394,15 +394,13 @@ WriteLiteral(" style=\"padding: 0.7em 0.7em; margin-top: 8px;\"");
|
||||
|
||||
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
|
||||
|
||||
WriteLiteral(">\r\n <span");
|
||||
WriteLiteral(">\r\n <i");
|
||||
|
||||
WriteLiteral(" style=\"margin-right: 0.3em; margin-bottom: 2em; float: left;\"");
|
||||
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg information\"");
|
||||
|
||||
WriteLiteral(" class=\"ui-icon ui-icon-alert\"");
|
||||
|
||||
WriteLiteral("></span>Warning: All plugins run with the same level of network privileges as the" +
|
||||
" Disco Web App.<br />\r\n <strong>Only Install plugins from a trusted sourc" +
|
||||
"e.</strong>\r\n </div>\r\n</div>\r\n");
|
||||
WriteLiteral("></i> Warning: All plugins run with the same level of network privileges as " +
|
||||
"the Disco Web App.<br />\r\n <strong>Only Install plugins from a trusted so" +
|
||||
"urce.</strong>\r\n </div>\r\n</div>\r\n");
|
||||
|
||||
|
||||
#line 76 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
|
||||
@@ -467,15 +465,13 @@ WriteLiteral(" style=\"padding: 0.7em 0.7em; margin-top: 8px;\"");
|
||||
|
||||
WriteLiteral(" class=\"ui-state-error ui-corner-all\"");
|
||||
|
||||
WriteLiteral(">\r\n <span");
|
||||
WriteLiteral(">\r\n <i");
|
||||
|
||||
WriteLiteral(" style=\"margin-right: 0.3em; margin-bottom: 2em; float: left;\"");
|
||||
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg\"");
|
||||
|
||||
WriteLiteral(" class=\"ui-icon ui-icon-alert\"");
|
||||
|
||||
WriteLiteral("></span>Warning: All plugins run with the same level of network privileges as the" +
|
||||
" Disco Web App.<br />\r\n <strong>Only install plugins from a trusted s" +
|
||||
"ource.</strong>\r\n </div>\r\n </div>\r\n");
|
||||
WriteLiteral("></i> Warning: All plugins run with the same level of network privileges as " +
|
||||
"the Disco Web App.<br />\r\n <strong>Only install plugins from a truste" +
|
||||
"d source.</strong>\r\n </div>\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 91 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
|
||||
|
||||
@@ -29,8 +29,7 @@
|
||||
<table class="logEventsViewport" data-bind="visible: EventLogs().length > 0" style="display: none">
|
||||
<tbody data-bind="foreach: EventLogs">
|
||||
<tr>
|
||||
<td class="icon" data-bind="css: {information: EventTypeSeverity == 0, warning: EventTypeSeverity == 1, error: EventTypeSeverity == 2}">
|
||||
</td>
|
||||
<td class="icon"><i class="fa" data-bind="css: {'fa-info-circle': EventTypeSeverity == 0, 'fa-exclamation-triangle': EventTypeSeverity == 1, 'fa-exclamation-circle': EventTypeSeverity == 2}"></i></td>
|
||||
<td class="timestamp" data-bind="text: FormattedTimestamp"></td>
|
||||
<td class="eventType" data-bind="text: EventTypeName, attr: {title: ModuleDescription}"></td>
|
||||
<td class="message" data-bind="text: FormattedMessage, attr: {title: $parent.LogArguments($data)}"></td>
|
||||
|
||||
@@ -136,10 +136,14 @@ WriteLiteral(">\r\n <tr>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"icon\"");
|
||||
|
||||
WriteLiteral(" data-bind=\"css: {information: EventTypeSeverity == 0, warning: EventTypeSeverity" +
|
||||
" == 1, error: EventTypeSeverity == 2}\"");
|
||||
WriteLiteral("><i");
|
||||
|
||||
WriteLiteral("> \r\n </td>\r\n <td");
|
||||
WriteLiteral(" class=\"fa\"");
|
||||
|
||||
WriteLiteral(" data-bind=\"css: {\'fa-info-circle\': EventTypeSeverity == 0, \'fa-exclamation-trian" +
|
||||
"gle\': EventTypeSeverity == 1, \'fa-exclamation-circle\': EventTypeSeverity == 2}\"");
|
||||
|
||||
WriteLiteral("></i></td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"timestamp\"");
|
||||
|
||||
@@ -161,13 +165,13 @@ WriteLiteral("></td>\r\n </tr>\r\n </tbody>\r\n
|
||||
"\r\n");
|
||||
|
||||
|
||||
#line 41 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
#line 40 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 41 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
#line 40 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
|
||||
var eventTypesFilterJson = (Model.EventTypesFilter != null) ? Newtonsoft.Json.JsonConvert.SerializeObject(Model.EventTypesFilter.Select(et => et.Id).ToArray()) : "null";
|
||||
|
||||
@@ -181,7 +185,7 @@ WriteLiteral(" type=\"text/javascript\"");
|
||||
WriteLiteral(">\r\n $(function () {\r\n var logEventsHost = $(\'LogEvents_");
|
||||
|
||||
|
||||
#line 46 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
#line 45 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
Write(uniqueId);
|
||||
|
||||
|
||||
@@ -190,7 +194,7 @@ WriteLiteral(">\r\n $(function () {\r\n var logEventsHost = $(
|
||||
WriteLiteral("\');\r\n var logModuleId = \'");
|
||||
|
||||
|
||||
#line 47 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
#line 46 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
Write(Model.ModuleFilter != null ? Model.ModuleFilter.ModuleId.ToString() : null);
|
||||
|
||||
|
||||
@@ -199,7 +203,7 @@ WriteLiteral("\');\r\n var logModuleId = \'");
|
||||
WriteLiteral("\';\r\n var logModuleLiveGroupName = \'");
|
||||
|
||||
|
||||
#line 48 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
#line 47 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
Write(Model.ModuleFilter != null ? Model.ModuleFilter.LiveLogGroupName : Disco.BI.Interop.SignalRHandlers.LogNotifications.AllNotifications);
|
||||
|
||||
|
||||
@@ -208,7 +212,7 @@ WriteLiteral("\';\r\n var logModuleLiveGroupName = \'");
|
||||
WriteLiteral("\';\r\n var logEventTypeFiltered = ");
|
||||
|
||||
|
||||
#line 49 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
#line 48 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
Write(eventTypesFilterJson);
|
||||
|
||||
|
||||
@@ -217,7 +221,7 @@ WriteLiteral("\';\r\n var logEventTypeFiltered = ");
|
||||
WriteLiteral(";\r\n var logStartFiler = ");
|
||||
|
||||
|
||||
#line 50 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
#line 49 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
Write(AjaxHelpers.JsonDate(Model.StartFilter));
|
||||
|
||||
|
||||
@@ -226,7 +230,7 @@ WriteLiteral(";\r\n var logStartFiler = ");
|
||||
WriteLiteral(";\r\n var logEndFiler = ");
|
||||
|
||||
|
||||
#line 51 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
#line 50 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
Write(AjaxHelpers.JsonDate(Model.EndFilter));
|
||||
|
||||
|
||||
@@ -235,7 +239,7 @@ WriteLiteral(";\r\n var logEndFiler = ");
|
||||
WriteLiteral(";\r\n var logTakeFiler = \'");
|
||||
|
||||
|
||||
#line 52 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
#line 51 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
Write(Model.TakeFilter);
|
||||
|
||||
|
||||
@@ -245,7 +249,7 @@ WriteLiteral("\';\r\n var liveConnection = null;\r\n var l
|
||||
"tion = \'");
|
||||
|
||||
|
||||
#line 54 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
#line 53 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
Write(Model.JavascriptLiveEventFunctionName);
|
||||
|
||||
|
||||
@@ -254,7 +258,7 @@ WriteLiteral("\';\r\n var liveConnection = null;\r\n var l
|
||||
WriteLiteral("\';\r\n var useLive = (\'True\'===\'");
|
||||
|
||||
|
||||
#line 55 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
#line 54 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
Write(Model.IsLive);
|
||||
|
||||
|
||||
@@ -297,7 +301,7 @@ WriteLiteral(@"');
|
||||
url: '");
|
||||
|
||||
|
||||
#line 89 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
#line 88 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
Write(Url.Action(MVC.API.Logging.RetrieveEvents()));
|
||||
|
||||
|
||||
@@ -334,7 +338,7 @@ WriteLiteral(@"',
|
||||
liveConnection = $.connection('");
|
||||
|
||||
|
||||
#line 117 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
#line 116 "..\..\Areas\Config\Views\Shared\LogEvents.cshtml"
|
||||
Write(Url.Content("~/API/Logging/Notifications"));
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
<th style="width: 135px">Last Check:
|
||||
</th>
|
||||
<td>
|
||||
<div class="error"><span class="icon error" style="margin-right: 6px;"></span>Never</div>
|
||||
<div class="error"><i class="fa fa-exclamation-circle fa-lg"></i> Never</div>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
@@ -87,7 +87,7 @@
|
||||
</th>
|
||||
<td>
|
||||
<div>
|
||||
<span class="icon warning" style="margin-right: 6px;"></span>Version @(Model.UpdateLatestResponse.Version) is available
|
||||
<i class="fa fa-info-circle fa-lg information"></i> Version @(Model.UpdateLatestResponse.Version) is available
|
||||
</div>
|
||||
<div class="smallMessage">
|
||||
[Released @(CommonHelpers.FriendlyDate(Model.UpdateLatestResponse.VersionReleasedTimestamp))]
|
||||
@@ -103,34 +103,32 @@
|
||||
<th style="width: 135px">Status:
|
||||
</th>
|
||||
<td>
|
||||
<span class="icon success" style="margin-right: 6px;"></span><span>The latest version is installed</span>
|
||||
<i class="fa fa-check-square fa-lg success"></i> <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>
|
||||
<th style="width: 135px">Check for Update:</th>
|
||||
<td>
|
||||
@{
|
||||
if (Model.UpdateRunningStatus == null)
|
||||
{
|
||||
<div>@Html.ActionLink("Check Now", MVC.API.System.UpdateCheck())</div>
|
||||
<span>@Html.ActionLinkSmallButton("Check Now", MVC.API.System.UpdateCheck())</span>
|
||||
<span class="smallMessage">[Will run automatically <strong>@CommonHelpers.FriendlyDate(Model.UpdateNextScheduled, "Unknown")</strong>]</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div>Running now - @Html.ActionLink("Check Status", MVC.Config.Logging.TaskStatus(Model.UpdateRunningStatus.SessionId))</div>
|
||||
<span>@Html.ActionLink("View Status", MVC.Config.Logging.TaskStatus(Model.UpdateRunningStatus.SessionId))</span>
|
||||
<span class="smallMessage">[Running Now]</span>
|
||||
}
|
||||
}
|
||||
<div class="smallMessage">
|
||||
Next Scheduled: @CommonHelpers.FriendlyDate(Model.UpdateNextScheduled, "Unknown")
|
||||
</div>
|
||||
@if (Model.UpdateBetaDeployment)
|
||||
{
|
||||
<hr />
|
||||
<span class="alert"><i class="fa fa-info-circle fa-lg"></i> Beta Deployment</span>
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -236,13 +236,11 @@ WriteLiteral(">Last Check:\r\n </th>\r\n <td>\r\n
|
||||
|
||||
WriteLiteral(" class=\"error\"");
|
||||
|
||||
WriteLiteral("><span");
|
||||
WriteLiteral("><i");
|
||||
|
||||
WriteLiteral(" class=\"icon error\"");
|
||||
WriteLiteral(" class=\"fa fa-exclamation-circle fa-lg\"");
|
||||
|
||||
WriteLiteral(" style=\"margin-right: 6px;\"");
|
||||
|
||||
WriteLiteral("></span>Never</div>\r\n </td>\r\n </tr>\r\n");
|
||||
WriteLiteral("></i> Never</div>\r\n </td>\r\n </tr>\r\n");
|
||||
|
||||
|
||||
#line 73 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
@@ -282,17 +280,15 @@ WriteLiteral(" <tr>\r\n <th");
|
||||
WriteLiteral(" style=\"width: 135px\"");
|
||||
|
||||
WriteLiteral(">Update Available:\r\n </th>\r\n <td>\r\n " +
|
||||
" <div>\r\n <span");
|
||||
" <div>\r\n <i");
|
||||
|
||||
WriteLiteral(" class=\"icon warning\"");
|
||||
WriteLiteral(" class=\"fa fa-info-circle fa-lg information\"");
|
||||
|
||||
WriteLiteral(" style=\"margin-right: 6px;\"");
|
||||
|
||||
WriteLiteral("></span>Version ");
|
||||
WriteLiteral("></i> Version ");
|
||||
|
||||
|
||||
#line 90 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Model.UpdateLatestResponse.Version);
|
||||
Write(Model.UpdateLatestResponse.Version);
|
||||
|
||||
|
||||
#line default
|
||||
@@ -325,14 +321,14 @@ WriteLiteral(">");
|
||||
#line hidden
|
||||
WriteLiteral("</div>\r\n <a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 3670), Tuple.Create("\"", 3714)
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 3659), Tuple.Create("\"", 3703)
|
||||
|
||||
#line 96 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3677), Tuple.Create<System.Object, System.Int32>(Model.UpdateLatestResponse.UrlLink
|
||||
, Tuple.Create(Tuple.Create("", 3666), Tuple.Create<System.Object, System.Int32>(Model.UpdateLatestResponse.UrlLink
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3677), false)
|
||||
, 3666), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" target=\"_blank\"");
|
||||
@@ -352,14 +348,12 @@ 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 <i");
|
||||
|
||||
WriteLiteral(" class=\"icon success\"");
|
||||
WriteLiteral(" class=\"fa fa-check-square fa-lg success\"");
|
||||
|
||||
WriteLiteral(" style=\"margin-right: 6px;\"");
|
||||
|
||||
WriteLiteral("></span><span>The latest version is installed</span>\r\n </td>\r\n " +
|
||||
" </tr>\r\n");
|
||||
WriteLiteral("></i> <span>The latest version is installed</span>\r\n </td>\r\n " +
|
||||
" </tr>\r\n");
|
||||
|
||||
|
||||
#line 109 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
@@ -373,46 +367,16 @@ WriteLiteral("\r\n <tr>\r\n <th");
|
||||
|
||||
WriteLiteral(" style=\"width: 135px\"");
|
||||
|
||||
WriteLiteral(">Check for Update:");
|
||||
WriteLiteral(">Check for Update:</th>\r\n <td>\r\n");
|
||||
|
||||
|
||||
#line 113 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
|
||||
if (Model.UpdateBetaDeployment)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <div");
|
||||
|
||||
WriteLiteral(" class=\"alert\"");
|
||||
|
||||
WriteLiteral("><span");
|
||||
|
||||
WriteLiteral(" class=\"icon warning\"");
|
||||
|
||||
WriteLiteral(" style=\"margin-right: 6px;\"");
|
||||
|
||||
WriteLiteral("></span>Beta Deployment</div>\r\n");
|
||||
|
||||
|
||||
#line 117 "..\..\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 115 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 121 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 115 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
|
||||
if (Model.UpdateRunningStatus == null)
|
||||
{
|
||||
@@ -420,19 +384,34 @@ WriteLiteral("\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <div>");
|
||||
WriteLiteral(" <span>");
|
||||
|
||||
|
||||
#line 124 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Html.ActionLink("Check Now", MVC.API.System.UpdateCheck()));
|
||||
#line 118 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Html.ActionLinkSmallButton("Check Now", MVC.API.System.UpdateCheck()));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</div>\r\n");
|
||||
WriteLiteral("</span>\r\n");
|
||||
|
||||
WriteLiteral(" <span");
|
||||
|
||||
WriteLiteral(" class=\"smallMessage\"");
|
||||
|
||||
WriteLiteral(">[Will run automatically <strong>");
|
||||
|
||||
|
||||
#line 125 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 119 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(CommonHelpers.FriendlyDate(Model.UpdateNextScheduled, "Unknown"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</strong>]</span>\r\n");
|
||||
|
||||
|
||||
#line 120 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -440,42 +419,69 @@ WriteLiteral("</div>\r\n");
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <div>Running now - ");
|
||||
WriteLiteral(" <span>");
|
||||
|
||||
|
||||
#line 128 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Html.ActionLink("Check Status", MVC.Config.Logging.TaskStatus(Model.UpdateRunningStatus.SessionId)));
|
||||
#line 123 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Html.ActionLink("View Status", MVC.Config.Logging.TaskStatus(Model.UpdateRunningStatus.SessionId)));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</div>\r\n");
|
||||
WriteLiteral("</span>\r\n");
|
||||
|
||||
WriteLiteral(" <span");
|
||||
|
||||
WriteLiteral(" class=\"smallMessage\"");
|
||||
|
||||
WriteLiteral(">[Running Now]</span>\r\n");
|
||||
|
||||
|
||||
#line 129 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 125 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n <div");
|
||||
|
||||
WriteLiteral(" class=\"smallMessage\"");
|
||||
|
||||
WriteLiteral(">\r\n Next Scheduled: ");
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
|
||||
#line 132 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(CommonHelpers.FriendlyDate(Model.UpdateNextScheduled, "Unknown"));
|
||||
#line 127 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 127 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
if (Model.UpdateBetaDeployment)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n </table>\r\n</div>\r" +
|
||||
"\n");
|
||||
WriteLiteral(" <hr />\r\n");
|
||||
|
||||
WriteLiteral(" <span");
|
||||
|
||||
WriteLiteral(" class=\"alert\"");
|
||||
|
||||
WriteLiteral("><i");
|
||||
|
||||
WriteLiteral(" class=\"fa fa-info-circle fa-lg\"");
|
||||
|
||||
WriteLiteral("></i> Beta Deployment</span>\r\n");
|
||||
|
||||
|
||||
#line 138 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 131 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </td>\r\n </tr>\r\n </table>\r\n</div>\r\n");
|
||||
|
||||
|
||||
#line 136 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
if (canConfigProxy)
|
||||
{
|
||||
using (Html.BeginForm())
|
||||
@@ -500,7 +506,7 @@ WriteLiteral(">Address:\r\n </th>\r\n <td>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 149 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 147 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Html.EditorFor(m => m.ProxyAddress));
|
||||
|
||||
|
||||
@@ -511,7 +517,7 @@ WriteLiteral("<br />\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 150 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 148 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Html.ValidationMessageFor(m => m.ProxyAddress));
|
||||
|
||||
|
||||
@@ -527,7 +533,7 @@ WriteLiteral(">Port:\r\n </th>\r\n <td>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 157 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 155 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Html.EditorFor(m => m.ProxyPort));
|
||||
|
||||
|
||||
@@ -538,7 +544,7 @@ WriteLiteral("<br />\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 158 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 156 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Html.ValidationMessageFor(m => m.ProxyPort));
|
||||
|
||||
|
||||
@@ -554,7 +560,7 @@ WriteLiteral(">Username:\r\n </th>\r\n <td>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 165 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 163 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Html.EditorFor(m => m.ProxyUsername));
|
||||
|
||||
|
||||
@@ -565,7 +571,7 @@ WriteLiteral("<br />\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 166 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 164 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Html.ValidationMessageFor(m => m.ProxyUsername));
|
||||
|
||||
|
||||
@@ -581,7 +587,7 @@ WriteLiteral(">Password:\r\n </th>\r\n <td>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 173 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 171 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Html.EditorFor(m => m.ProxyPassword));
|
||||
|
||||
|
||||
@@ -592,7 +598,7 @@ WriteLiteral("<br />\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 174 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 172 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Html.ValidationMessageFor(m => m.ProxyPassword));
|
||||
|
||||
|
||||
@@ -614,7 +620,7 @@ WriteLiteral(" value=\"Save Proxy Settings\"");
|
||||
WriteLiteral(" />\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 186 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 184 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -639,7 +645,7 @@ WriteLiteral(">Address:\r\n </th>\r\n <td>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 197 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 195 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Html.DisplayFor(m => m.ProxyAddress));
|
||||
|
||||
|
||||
@@ -655,7 +661,7 @@ WriteLiteral(">Port:\r\n </th>\r\n <td>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 204 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 202 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Html.DisplayFor(m => m.ProxyPort));
|
||||
|
||||
|
||||
@@ -671,7 +677,7 @@ WriteLiteral(">Username:\r\n </th>\r\n <td>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 211 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 209 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Html.DisplayFor(m => m.ProxyUsername));
|
||||
|
||||
|
||||
@@ -686,7 +692,7 @@ WriteLiteral(">Password:\r\n </th>\r\n <td>*******
|
||||
"</td>\r\n </tr>\r\n </table>\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 222 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 220 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -701,7 +707,7 @@ WriteLiteral(">\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 224 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
#line 222 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
||||
Write(Html.ActionLinkButton("Update Device Last Network Logons", MVC.API.System.UpdateLastNetworkLogonDates()));
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user