From ab553a05cb24b66040effa5427eb160c6f75912a Mon Sep 17 00:00:00 2001
From: Gary Sharp
Date: Wed, 25 Dec 2013 17:49:30 +1100
Subject: [PATCH] Update: FontAwesome Pass 2
Removal of bitmap icons, replacing with vector based icons from
FontAwesome. Includes other UI style changes.
---
Disco.BI/BI/Extensions/DeviceExtensions.cs | 11 +
Disco.Web/App_Code/AjaxHelpers.cshtml | 31 +-
Disco.Web/App_Code/AjaxHelpers.generated.cs | 71 ++-
.../Views/AuthorizationRole/Show.cshtml | 26 +-
.../Views/AuthorizationRole/Show.generated.cs | 223 ++++++----
.../Areas/Config/Views/Config/Index.cshtml | 7 +-
.../Config/Views/Config/Index.generated.cs | 34 +-
.../Config/Views/DeviceBatch/Show.cshtml | 2 +-
.../Views/DeviceBatch/Show.generated.cs | 8 +-
.../DeviceModel/_DeviceComponentsTable.cshtml | 19 +-
.../_DeviceComponentsTable.generated.cs | 160 +++----
.../Config/Views/DeviceProfile/Show.cshtml | 2 +-
.../Views/DeviceProfile/Show.generated.cs | 10 +-
.../DocumentTemplate/ImportStatus.cshtml | 4 +-
.../ImportStatus.generated.cs | 239 +++++------
.../Config/Views/DocumentTemplate/Show.cshtml | 2 +-
.../Views/DocumentTemplate/Show.generated.cs | 18 +-
.../DocumentTemplate/UndetectedPages.cshtml | 2 +-
.../UndetectedPages.generated.cs | 8 +-
.../Config/Views/Enrolment/Status.cshtml | 7 +-
.../Views/Enrolment/Status.generated.cs | 34 +-
.../Config/Views/Organisation/Index.cshtml | 16 +-
.../Views/Organisation/Index.generated.cs | 128 +++---
.../Areas/Config/Views/Plugins/Index.cshtml | 9 +-
.../Config/Views/Plugins/Index.generated.cs | 68 ++-
.../Areas/Config/Views/Plugins/Install.cshtml | 4 +-
.../Config/Views/Plugins/Install.generated.cs | 24 +-
.../Config/Views/Shared/LogEvents.cshtml | 3 +-
.../Views/Shared/LogEvents.generated.cs | 36 +-
.../Config/Views/SystemConfig/Index.cshtml | 28 +-
.../Views/SystemConfig/Index.generated.cs | 180 ++++----
.../Scripts/Modules/Disco-AjaxHelperIcons.js | 4 +-
.../Modules/Disco-AjaxHelperIcons.min.js | 6 +-
.../Modules/Disco-AjaxHelperIcons.min.js.map | 2 +-
.../disco.ajaxhelpericons.js | 2 +-
Disco.Web/ClientSource/Style/BundleSite.css | 127 +++---
.../ClientSource/Style/BundleSite.min.css | 2 +-
Disco.Web/ClientSource/Style/Config.css | 209 +++++----
Disco.Web/ClientSource/Style/Config.less | 224 ++++++----
Disco.Web/ClientSource/Style/Config.min.css | 2 +-
.../ClientSource/Style/Declarations.less | 19 +-
Disco.Web/ClientSource/Style/Device.css | 2 +-
Disco.Web/ClientSource/Style/Device.less | 2 +-
Disco.Web/ClientSource/Style/Device.min.css | 2 +-
Disco.Web/ClientSource/Style/Dialog.css | 34 +-
Disco.Web/ClientSource/Style/Dialog.min.css | 2 +-
.../Style/Fancytree/icons-disco-shrunk.png | Bin 0 -> 2125 bytes
.../Style/Fancytree/ui.fancytree.css | 2 +-
.../Style/Fancytree/ui.fancytree.min.css | 2 +-
.../Style/Images/Actions/editForm.png | Bin 633 -> 0 bytes
.../Style/Images/Actions/list.png | Bin 367 -> 0 bytes
.../Style/Images/Actions/listAlert.png | Bin 652 -> 0 bytes
.../Style/Images/Actions/remove.png | Bin 852 -> 0 bytes
.../Style/Images/Actions/removeSubtle.png | Bin 855 -> 0 bytes
.../Style/Images/Actions/user16.png | Bin 1067 -> 0 bytes
.../Style/Images/Actions/userGroup16.png | Bin 1167 -> 0 bytes
.../Style/Images/Status/error.png | Bin 852 -> 0 bytes
.../Style/Images/Status/information.png | Bin 901 -> 0 bytes
.../Style/Images/Status/jobStatus-Closed.png | Bin 700 -> 0 bytes
.../Images/Status/jobStatus-Insurance.png | Bin 773 -> 0 bytes
.../Style/Images/Status/jobStatus-Open.png | Bin 748 -> 0 bytes
.../Style/Images/Status/jobStatus-Repairs.png | Bin 763 -> 0 bytes
.../Style/Images/Status/jobStatus-User.png | Bin 769 -> 0 bytes
.../ClientSource/Style/Images/Status/ok.png | Bin 542 -> 0 bytes
.../Style/Images/Status/pbar-ani.gif | Bin 7970 -> 0 bytes
.../ClientSource/Style/Images/Status/save.png | Bin 586 -> 0 bytes
.../Style/Images/Status/success.png | Bin 539 -> 0 bytes
.../Style/Images/Status/updateAvailable.png | Bin 5494 -> 0 bytes
.../Style/Images/Status/warning.png | Bin 726 -> 0 bytes
.../Style/Images/SubSubMenuIcon.png | Bin 236 -> 0 bytes
.../ClientSource/Style/InitialConfig.css | 2 +-
.../ClientSource/Style/InitialConfig.min.css | 2 +-
Disco.Web/ClientSource/Style/Job.css | 6 +-
Disco.Web/ClientSource/Style/Job.less | 6 +-
Disco.Web/ClientSource/Style/Job.min.css | 2 +-
Disco.Web/ClientSource/Style/Site.css | 127 +++---
Disco.Web/ClientSource/Style/Site.less | 125 +++---
Disco.Web/ClientSource/Style/Site.min.css | 2 +-
Disco.Web/ClientSource/Style/User.css | 34 +-
Disco.Web/ClientSource/Style/User.less | 34 +-
Disco.Web/ClientSource/Style/User.min.css | 2 +-
Disco.Web/Disco.Web.csproj | 29 +-
Disco.Web/T4MVC.cs | 23 +-
.../Device/DeviceParts/_Resources.cshtml | 3 +-
.../DeviceParts/_Resources.generated.cs | 14 +-
.../Views/Device/DeviceParts/_Subject.cshtml | 44 +-
.../Device/DeviceParts/_Subject.generated.cs | 403 +++++++++---------
Disco.Web/Views/Device/Show.cshtml | 4 +-
Disco.Web/Views/Device/Show.generated.cs | 57 ++-
Disco.Web/Views/InitialConfig/Complete.cshtml | 10 +-
.../Views/InitialConfig/Complete.generated.cs | 61 +--
.../Views/Job/JobParts/Components.cshtml | 3 +-
.../Job/JobParts/Components.generated.cs | 16 +-
Disco.Web/Views/Job/JobParts/Resources.cshtml | 6 +-
.../Views/Job/JobParts/Resources.generated.cs | 124 +++---
Disco.Web/Views/Job/JobParts/Warranty.cshtml | 3 +-
.../Views/Job/JobParts/Warranty.generated.cs | 15 +-
Disco.Web/Views/Job/JobParts/_Subject.cshtml | 15 +-
.../Views/Job/JobParts/_Subject.generated.cs | 177 ++++----
Disco.Web/Views/Job/Show.cshtml | 2 +-
Disco.Web/Views/Job/Show.generated.cs | 19 +-
Disco.Web/Views/Shared/_DialogLayout.cshtml | 2 +-
.../Views/Shared/_DialogLayout.generated.cs | 4 +-
Disco.Web/Views/Shared/_EmptyLayout.cshtml | 2 +-
.../Views/Shared/_EmptyLayout.generated.cs | 4 +-
Disco.Web/Views/Shared/_JobTableRender.cshtml | 2 +-
.../Views/Shared/_JobTableRender.generated.cs | 37 +-
Disco.Web/Views/Shared/_Layout.cshtml | 2 +-
Disco.Web/Views/Shared/_Layout.generated.cs | 8 +-
.../User/UserParts/_Authorization.cshtml | 2 +-
.../UserParts/_Authorization.generated.cs | 2 +-
.../Views/User/UserParts/_Resources.cshtml | 3 +-
.../User/UserParts/_Resources.generated.cs | 12 +-
.../Views/User/UserParts/_Subject.cshtml | 7 +-
.../User/UserParts/_Subject.generated.cs | 121 +++---
115 files changed, 1928 insertions(+), 1707 deletions(-)
create mode 100644 Disco.Web/ClientSource/Style/Fancytree/icons-disco-shrunk.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Actions/editForm.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Actions/list.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Actions/listAlert.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Actions/remove.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Actions/removeSubtle.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Actions/user16.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Actions/userGroup16.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Status/error.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Status/information.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Status/jobStatus-Closed.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Status/jobStatus-Insurance.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Status/jobStatus-Open.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Status/jobStatus-Repairs.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Status/jobStatus-User.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Status/ok.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Status/pbar-ani.gif
delete mode 100644 Disco.Web/ClientSource/Style/Images/Status/save.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Status/success.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Status/updateAvailable.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/Status/warning.png
delete mode 100644 Disco.Web/ClientSource/Style/Images/SubSubMenuIcon.png
diff --git a/Disco.BI/BI/Extensions/DeviceExtensions.cs b/Disco.BI/BI/Extensions/DeviceExtensions.cs
index ae611ca7..bed7ff3d 100644
--- a/Disco.BI/BI/Extensions/DeviceExtensions.cs
+++ b/Disco.BI/BI/Extensions/DeviceExtensions.cs
@@ -223,6 +223,17 @@ namespace Disco.BI.Extensions
return r.Value.ReasonMessage();
}
+ public static string StatusCode(this Device Device)
+ {
+ if (Device.DecommissionedDate.HasValue)
+ return "Decommissioned";
+
+ if (!Device.EnrolledDate.HasValue)
+ return "NotEnrolled";
+
+ return "Active";
+ }
+
public static string Status(this Device Device)
{
if (Device.DecommissionedDate.HasValue)
diff --git a/Disco.Web/App_Code/AjaxHelpers.cshtml b/Disco.Web/App_Code/AjaxHelpers.cshtml
index 2f49ec43..cedbe674 100644
--- a/Disco.Web/App_Code/AjaxHelpers.cshtml
+++ b/Disco.Web/App_Code/AjaxHelpers.cshtml
@@ -3,30 +3,27 @@
@using Disco.Web;
@using Disco.Services.Web;
@helper AjaxLoader(string id = null)
- {
- Html.GetPageHelper().BundleDeferred("~/ClientScripts/Modules/Disco-AjaxHelperIcons");
-
+{
+ Html.GetPageHelper().BundleDeferred("~/ClientScripts/Modules/Disco-AjaxHelperIcons");
+
}
@helper AjaxSave()
- {
- Html.GetPageHelper().BundleDeferred("~/ClientScripts/Modules/Disco-AjaxHelperIcons");
-
+{
+
}
@helper AjaxRemove()
- {
- Html.GetPageHelper().BundleDeferred("~/ClientScripts/Modules/Disco-AjaxHelperIcons");
-
+{
+
}
@helper JsonDate(DateTime? date)
+{
+ if (date.HasValue)
{
- if (date.HasValue)
- {
- var d = date.Value;
+ var d = date.Value;
@(new HtmlString(string.Format("new Date({0}, {1}, {2}, {3}, {4}, {5})", d.Year, d.Month - 1, d.Day, d.Hour, d.Minute, d.Second)))
- }
- else
- {
+ }
+ else
+ {
@(new HtmlString("null"))
- }
+ }
}
\ No newline at end of file
diff --git a/Disco.Web/App_Code/AjaxHelpers.generated.cs b/Disco.Web/App_Code/AjaxHelpers.generated.cs
index cb0a9a50..9c7974a2 100644
--- a/Disco.Web/App_Code/AjaxHelpers.generated.cs
+++ b/Disco.Web/App_Code/AjaxHelpers.generated.cs
@@ -47,47 +47,47 @@ namespace Disco.Web
{
public static System.Web.WebPages.HelperResult AjaxLoader(string id = null)
- {
+{
return new System.Web.WebPages.HelperResult(__razor_helper_writer => {
#line 6 "..\..\App_Code\AjaxHelpers.cshtml"
-
- Html.GetPageHelper().BundleDeferred("~/ClientScripts/Modules/Disco-AjaxHelperIcons");
+
+ Html.GetPageHelper().BundleDeferred("~/ClientScripts/Modules/Disco-AjaxHelperIcons");
#line default
#line hidden
-WriteLiteralTo(@__razor_helper_writer, " ");
+WriteLiteralTo(@__razor_helper_writer, " class=\"ajaxLoading\" title=\"Loading...\">");
-WriteLiteralTo(@__razor_helper_writer, "\r\n");
+WriteLiteralTo(@__razor_helper_writer, " class=\"fa fa-check fa-lg hidden ajaxOk\" title=\"Ok\">\r\n");
-#line 10 "..\..\App_Code\AjaxHelpers.cshtml"
+#line 9 "..\..\App_Code\AjaxHelpers.cshtml"
#line default
#line hidden
@@ -98,23 +98,23 @@ WriteLiteralTo(@__razor_helper_writer, " class=\"ajaxHelperIcon ajaxOk\"\r\n
public static System.Web.WebPages.HelperResult AjaxSave()
- {
+{
return new System.Web.WebPages.HelperResult(__razor_helper_writer => {
-#line 12 "..\..\App_Code\AjaxHelpers.cshtml"
-
- Html.GetPageHelper().BundleDeferred("~/ClientScripts/Modules/Disco-AjaxHelperIcons");
+#line 11 "..\..\App_Code\AjaxHelpers.cshtml"
+
#line default
#line hidden
-WriteLiteralTo(@__razor_helper_writer, " \r\n");
+WriteLiteralTo(@__razor_helper_writer, " " +
+"\r\n");
-#line 15 "..\..\App_Code\AjaxHelpers.cshtml"
+#line 13 "..\..\App_Code\AjaxHelpers.cshtml"
#line default
#line hidden
@@ -125,23 +125,22 @@ WriteLiteralTo(@__razor_helper_writer, " {
-#line 17 "..\..\App_Code\AjaxHelpers.cshtml"
-
- Html.GetPageHelper().BundleDeferred("~/ClientScripts/Modules/Disco-AjaxHelperIcons");
+#line 15 "..\..\App_Code\AjaxHelpers.cshtml"
+
#line default
#line hidden
-WriteLiteralTo(@__razor_helper_writer, " \r\n");
+WriteLiteralTo(@__razor_helper_writer, " \r\n");
-#line 20 "..\..\App_Code\AjaxHelpers.cshtml"
+#line 17 "..\..\App_Code\AjaxHelpers.cshtml"
#line default
#line hidden
@@ -152,48 +151,48 @@ WriteLiteralTo(@__razor_helper_writer, " {
-#line 22 "..\..\App_Code\AjaxHelpers.cshtml"
-
- if (date.HasValue)
- {
- var d = date.Value;
+#line 19 "..\..\App_Code\AjaxHelpers.cshtml"
+
+ if (date.HasValue)
+ {
+ var d = date.Value;
#line default
#line hidden
-#line 26 "..\..\App_Code\AjaxHelpers.cshtml"
+#line 23 "..\..\App_Code\AjaxHelpers.cshtml"
WriteTo(@__razor_helper_writer, new HtmlString(string.Format("new Date({0}, {1}, {2}, {3}, {4}, {5})", d.Year, d.Month - 1, d.Day, d.Hour, d.Minute, d.Second)));
#line default
#line hidden
-#line 26 "..\..\App_Code\AjaxHelpers.cshtml"
+#line 23 "..\..\App_Code\AjaxHelpers.cshtml"
- }
- else
- {
+ }
+ else
+ {
#line default
#line hidden
-#line 30 "..\..\App_Code\AjaxHelpers.cshtml"
+#line 27 "..\..\App_Code\AjaxHelpers.cshtml"
WriteTo(@__razor_helper_writer, new HtmlString("null"));
#line default
#line hidden
-#line 30 "..\..\App_Code\AjaxHelpers.cshtml"
+#line 27 "..\..\App_Code\AjaxHelpers.cshtml"
- }
+ }
#line default
#line hidden
diff --git a/Disco.Web/Areas/Config/Views/AuthorizationRole/Show.cshtml b/Disco.Web/Areas/Config/Views/AuthorizationRole/Show.cshtml
index 759c05e2..c0e99021 100644
--- a/Disco.Web/Areas/Config/Views/AuthorizationRole/Show.cshtml
+++ b/Disco.Web/Areas/Config/Views/AuthorizationRole/Show.cshtml
@@ -50,11 +50,11 @@
var displayName = sg.Id == sg.Name ? sg.Id : string.Format("{0} [{1}]", sg.Name, sg.Id);
@if (sg.IsGroup)
{
- @displayName
+ @displayName
}
else
{
- @displayName
+ @displayName
}
}
@@ -67,7 +67,15 @@
@foreach (var sg in Model.Subjects)
{
- - @(sg.Id == sg.Name ? sg.Id : string.Format("{0} [{1}]", sg.Name, sg.Id))
+ var displayName = sg.Id == sg.Name ? sg.Id : string.Format("{0} [{1}]", sg.Name, sg.Id);
+ - @if (sg.IsGroup)
+ {
+ @displayName
+ }
+ else
+ {
+ @displayName
+ }
}
@@ -168,9 +176,17 @@
}).done(function(response){
if (response){
if (list.find('li[data-subjectid="'+response.Id+'"]').length == 0){
+
+ var liIcon = $('').addClass('fa fa-lg');
+ if (response.Type === 'user')
+ liIcon.addClass('fa-user');
+ else
+ liIcon.addClass('fa-users');
+
var li = $('')
+ .append(liIcon)
.append($('').text(response.Id == response.Name ? response.Id : response.Name + ' [' + response.Id + ']'))
- .append($('').addClass('remove'))
+ .append($('').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")
-
+
This item will be permanently deleted and cannot be recovered.
Are you sure?
diff --git a/Disco.Web/Areas/Config/Views/AuthorizationRole/Show.generated.cs b/Disco.Web/Areas/Config/Views/AuthorizationRole/Show.generated.cs
index afe949ae..97a02982 100644
--- a/Disco.Web/Areas/Config/Views/AuthorizationRole/Show.generated.cs
+++ b/Disco.Web/Areas/Config/Views/AuthorizationRole/Show.generated.cs
@@ -206,20 +206,32 @@ WriteLiteral(">");
#line 51 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
if (sg.IsGroup)
{
-
+
+
+ #line default
+ #line hidden
+WriteLiteral(" ");
+
+
+ #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(" (Url.Action(MVC.User.Show(sg.Id))
+ , Tuple.Create(Tuple.Create("", 2764), Tuple.Create(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(">");
#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(" (sg.IsGroup ? "group" : "user"
+ #line 71 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
+, Tuple.Create(Tuple.Create("", 3886), Tuple.Create(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(" \r\n");
+WriteLiteral(">");
- #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(" ");
+
+
+ #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("\r\n");
+
+
+ #line 79 "..\..\Areas\Config\Views\AuthorizationRole\Show.cshtml"
}
@@ -391,14 +464,14 @@ WriteLiteral(">Add\r\n
\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(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(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(">\r\n \r\n \')\r\n " +
-" .append($(\'\').text(response.Id " +
-"== response.Name ? response.Id : response.Name + \' [\' + response.Id + \']\'))\r\n " +
-" .append($(\'\').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($(\'\').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 \r\n \r\n \r\n \r" +
-"\n | \').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 =" +
+" $(\'\')\r\n .append(liIcon)\r\n " +
+" .append($(\'\').text(response.I" +
+"d == response.Name ? response.Id : response.Name + \' [\' + response.Id + \']\'))\r\n" +
+" .append($(\'\').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($(\'\').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 " +
+" \r\n \r\n | \r\n " +
+"tr>\r\n
\r\n | Save Changes");
- #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 \r\n \r\n");
- #line 147 "..\..\Areas\Config\Views\Config\Index.cshtml"
+ #line 148 "..\..\Areas\Config\Views\Config\Index.cshtml"
}
diff --git a/Disco.Web/Areas/Config/Views/DeviceBatch/Show.cshtml b/Disco.Web/Areas/Config/Views/DeviceBatch/Show.cshtml
index 2afd14a8..5dbd0672 100644
--- a/Disco.Web/Areas/Config/Views/DeviceBatch/Show.cshtml
+++ b/Disco.Web/Areas/Config/Views/DeviceBatch/Show.cshtml
@@ -134,7 +134,7 @@
{
var missingCount = Model.DeviceBatch.UnitQuantity.Value - Model.DeviceCount;
-
+
@Model.DeviceCount.ToString("n0") of @(Model.DeviceBatch.UnitQuantity.Value.ToString("n0")) purchased devices are managed by Disco. @missingCount.ToString("n0") @(missingCount == 1 ? "is" : "are") not managed.
}
diff --git a/Disco.Web/Areas/Config/Views/DeviceBatch/Show.generated.cs b/Disco.Web/Areas/Config/Views/DeviceBatch/Show.generated.cs
index f55a2711..d957684d 100644
--- a/Disco.Web/Areas/Config/Views/DeviceBatch/Show.generated.cs
+++ b/Disco.Web/Areas/Config/Views/DeviceBatch/Show.generated.cs
@@ -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 \r\n \r\n");
+WriteLiteral(">\r\n");
WriteLiteral(" ");
diff --git a/Disco.Web/Areas/Config/Views/DeviceModel/_DeviceComponentsTable.cshtml b/Disco.Web/Areas/Config/Views/DeviceModel/_DeviceComponentsTable.cshtml
index a3f1e5e3..88fc1d52 100644
--- a/Disco.Web/Areas/Config/Views/DeviceModel/_DeviceComponentsTable.cshtml
+++ b/Disco.Web/Areas/Config/Views/DeviceModel/_DeviceComponentsTable.cshtml
@@ -29,10 +29,13 @@
|
-
+
+
+
+
|
-
+
|
}
@@ -47,7 +50,7 @@
var $deviceComponents = $('#deviceComponents');
$('#addDeviceComponent').click(function () {
- var dc = $(' | | | |
');
+ var dc = $(' | | | |
');
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 @@
-
+
This item will be permanently deleted and cannot be recovered. Are you sure?
diff --git a/Disco.Web/Areas/Config/Views/DeviceModel/_DeviceComponentsTable.generated.cs b/Disco.Web/Areas/Config/Views/DeviceModel/_DeviceComponentsTable.generated.cs
index 580b792d..d322a95c 100644
--- a/Disco.Web/Areas/Config/Views/DeviceModel/_DeviceComponentsTable.generated.cs
+++ b/Disco.Web/Areas/Config/Views/DeviceModel/_DeviceComponentsTable.generated.cs
@@ -149,25 +149,36 @@ WriteAttribute("value", Tuple.Create(" value=\"", 1010), Tuple.Create("\"", 1042
WriteLiteral(" />\r\n \r\n \r\n \r\n \r\n (item.JobSubTypes.Count > 0 ? " editAlert" : string.Empty
+ #line 34 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
+, Tuple.Create(Tuple.Create("", 1271), Tuple.Create(item.JobSubTypes.Count == 0 ? " hidden" : string.Empty
#line default
#line hidden
-, 1130), false)
+, 1271), false)
);
-WriteLiteral(">\r\n | \r\n \r\n \r\n \r\n | \r\n \r\n" +
+" \r\n | \r\n \r\n");
+WriteLiteral(">\r\n \r\n \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 = $(' | | | |
');
+ var dc = $(' | | | |
');
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 \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 " +
+" \r\n");
WriteLiteral(" \r\n
\r\n
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
\r\n \r\n \r\n
\r\n This item will be permanently deleted and cannot be recover" +
-"ed. Are you sure?\r\n
\r\n
\r\n");
+WriteLiteral(">\r\n This item will be permanently deleted and cannot be recovered." +
+" Are you sure?\r\n \r\n
\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 \r\n | 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(" |
\r\n | \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 | \r\n \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 | \r\n \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 | \r\n \r\n");
WriteLiteral(" \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(" \r\n");
WriteLiteral(" - ");
- #line 300 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
+ #line 303 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
Write(jst.Description);
@@ -557,7 +567,7 @@ WriteLiteral("
- ");
WriteLiteral("
\r\n");
- #line 301 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
+ #line 304 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
}
@@ -566,7 +576,7 @@ WriteLiteral("\r\n");
WriteLiteral(" \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>\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>\r\n");
WriteLiteral(" | \r\n
\r\n");
- #line 310 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
+ #line 313 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
}
@@ -599,7 +609,7 @@ WriteLiteral(" \r\n \r\n");
WriteLiteral(" \r\n");
- #line 312 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
+ #line 315 "..\..\Areas\Config\Views\DeviceModel\_DeviceComponentsTable.cshtml"
}
#line default
diff --git a/Disco.Web/Areas/Config/Views/DeviceProfile/Show.cshtml b/Disco.Web/Areas/Config/Views/DeviceProfile/Show.cshtml
index 737bd4c6..e4479470 100644
--- a/Disco.Web/Areas/Config/Views/DeviceProfile/Show.cshtml
+++ b/Disco.Web/Areas/Config/Views/DeviceProfile/Show.cshtml
@@ -693,7 +693,7 @@
{
-
+
This item will be permanently deleted and cannot be recovered. Are you sure?
diff --git a/Disco.Web/Areas/Config/Views/DeviceProfile/Show.generated.cs b/Disco.Web/Areas/Config/Views/DeviceProfile/Show.generated.cs
index fc9cb7af..a072b91a 100644
--- a/Disco.Web/Areas/Config/Views/DeviceProfile/Show.generated.cs
+++ b/Disco.Web/Areas/Config/Views/DeviceProfile/Show.generated.cs
@@ -1950,14 +1950,12 @@ WriteLiteral(" id=\"dialogConfirmDelete\"");
WriteLiteral(" title=\"Delete this Device Profile?\"");
-WriteLiteral(">\r\n \r\n \r\n \r\n
\r\n This item will be permanently deleted and cannot be recover" +
-"ed. Are you sure?\r\n
\r\n \r\n");
+WriteLiteral(">\r\n This item will be permanently deleted and cannot be recovered." +
+" Are you sure?\r\n
\r\n \r\n");
WriteLiteral(" \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 \r\n \r\n \r\n
\r\n This item will be permanently deleted and cannot be recover" +
-"ed. Are you sure?\r\n
\r\n \r\n");
+WriteLiteral(">\r\n This item will be permanently deleted and cannot be recovered." +
+"\r\n \r\n \r\n Are you sure?\r\n " +
+"
\r\n \r\n");
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
diff --git a/Disco.Web/Areas/Config/Views/Plugins/Index.cshtml b/Disco.Web/Areas/Config/Views/Plugins/Index.cshtml
index 03c42ce2..8358d7f7 100644
--- a/Disco.Web/Areas/Config/Views/Plugins/Index.cshtml
+++ b/Disco.Web/Areas/Config/Views/Plugins/Index.cshtml
@@ -71,17 +71,17 @@
- Are you sure you want to uninstall this plugin?
+ Are you sure you want to uninstall this plugin?
- NOTE: Data will be permanently deleted
+ NOTE: Data will be permanently deleted
}
@@ -451,11 +450,9 @@
{
@Html.ActionLinkSmallButton("Update Assignment", MVC.API.Device.UpdateAssignedUserId(Model.Device.SerialNumber, null, true), "Device_Show_User_Actions_Assign_Button")
");
- #line 211 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 210 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
}
@@ -957,7 +956,7 @@ WriteLiteral(" title=\"Device Profile\"");
WriteLiteral(">");
- #line 217 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 216 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(Html.ActionLink(Model.Device.DeviceProfile.Name, MVC.Config.DeviceProfile.Index(Model.Device.DeviceProfileId)));
@@ -975,7 +974,7 @@ WriteLiteral(">Distribution:\r\n \r\n
" ");
- #line 222 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 221 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(Model.Device.DeviceProfile.DistributionType.ToString());
@@ -990,7 +989,7 @@ WriteLiteral(">Address:\r\n | \r\n
"");
- #line 228 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 227 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
if (Model.DeviceProfileDefaultOrganisationAddress != null)
{
@@ -1005,7 +1004,7 @@ WriteLiteral(" id=\"Device_Show_Policies_Profile_Address\"");
WriteLiteral(">");
- #line 231 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 230 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(Model.DeviceProfileDefaultOrganisationAddress.Name);
@@ -1014,7 +1013,7 @@ WriteLiteral(">");
WriteLiteral("\r\n");
- #line 232 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 231 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
}
else
{
@@ -1031,7 +1030,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">None\r\n");
- #line 236 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 235 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
}
@@ -1046,7 +1045,7 @@ WriteLiteral(">Provision Account:\r\n | \r\
" ");
- #line 243 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 242 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(Model.Device.DeviceProfile.ProvisionADAccount ? "Active Directory" : "No");
@@ -1061,7 +1060,7 @@ WriteLiteral(">Allocate Certificate:\r\n |
" ");
- #line 249 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 248 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(Model.DeviceProfileCertificateProvider != null ? Model.DeviceProfileCertificateProvider.Name : "No");
@@ -1071,13 +1070,13 @@ WriteLiteral("\r\n | \r\n <
" \r\n");
- #line 253 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 252 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line default
#line hidden
- #line 253 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 252 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
if (Model.Device.CanUpdateDeviceProfile())
{
@@ -1085,14 +1084,14 @@ WriteLiteral("\r\n \r\n <
#line default
#line hidden
- #line 255 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 254 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Update Profile", MVC.API.Device.UpdateDeviceProfileId(Model.Device.SerialNumber, null, true), "Device_Show_Policies_Profile_Actions_Update_Button"));
#line default
#line hidden
- #line 255 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 254 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
@@ -1114,13 +1113,13 @@ WriteLiteral(" class=\"none\"");
WriteLiteral(">\r\n");
- #line 260 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 259 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line default
#line hidden
- #line 260 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 259 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
foreach (var dp in Model.DeviceProfiles.OrderBy(i => i.Name))
{
@@ -1135,7 +1134,7 @@ WriteLiteral(" type=\"radio\"");
WriteLiteral(" data-deviceprofileid=\"");
- #line 263 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 262 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(dp.Id);
@@ -1145,45 +1144,45 @@ WriteLiteral("\"");
WriteLiteral(" name=\"DeviceProfile\"");
-WriteAttribute("id", Tuple.Create(" id=\"", 15468), Tuple.Create("\"", 15495)
-, Tuple.Create(Tuple.Create("", 15473), Tuple.Create("DeviceProfile_", 15473), true)
+WriteAttribute("id", Tuple.Create(" id=\"", 15482), Tuple.Create("\"", 15509)
+, Tuple.Create(Tuple.Create("", 15487), Tuple.Create("DeviceProfile_", 15487), true)
- #line 263 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
- , Tuple.Create(Tuple.Create("", 15487), Tuple.Create(dp.Id
+ #line 262 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ , Tuple.Create(Tuple.Create("", 15501), Tuple.Create(dp.Id
#line default
#line hidden
-, 15487), false)
+, 15501), false)
);
WriteLiteral(" /> \r\n");
- #line 264 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 263 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
}
@@ -1205,7 +1204,7 @@ WriteLiteral(" \r\n");
- #line 430 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 429 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
}
@@ -1632,7 +1631,7 @@ WriteLiteral(" title=\"Model Description\"");
WriteLiteral(">");
- #line 437 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 436 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(Html.ActionLink(Model.Device.DeviceModel.ToString(), MVC.Config.DeviceModel.Index(Model.Device.DeviceModelId)));
@@ -1644,14 +1643,14 @@ WriteLiteral(" id=\"Device_Show_Aspects_Model_Image\"");
WriteLiteral(" alt=\"Model Image\"");
-WriteAttribute("src", Tuple.Create(" src=\"", 27156), Tuple.Create("\"", 27266)
+WriteAttribute("src", Tuple.Create(" src=\"", 27170), Tuple.Create("\"", 27280)
- #line 438 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
- , Tuple.Create(Tuple.Create("", 27162), Tuple.Create(Url.Action(MVC.API.DeviceModel.Image(Model.Device.DeviceModelId, Model.Device.DeviceModel.ImageHash()))
+ #line 437 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ , Tuple.Create(Tuple.Create("", 27176), Tuple.Create(Url.Action(MVC.API.DeviceModel.Image(Model.Device.DeviceModelId, Model.Device.DeviceModel.ImageHash()))
#line default
#line hidden
-, 27162), false)
+, 27176), false)
);
WriteLiteral(" />\r\n \r\n \r\n \r\n \r\n \r\n");
- #line 445 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 444 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line default
#line hidden
- #line 445 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 444 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
if (Model.Device.CanCreateJob())
{
Html.BundleDeferred("~/ClientScripts/Modules/Disco-CreateJob");
@@ -1681,14 +1680,14 @@ WriteLiteral(">\r\n");
#line default
#line hidden
- #line 448 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 447 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Create Job", MVC.Job.Create(Model.Device.SerialNumber, Model.Device.AssignedUserId), "buttonCreateJob"));
#line default
#line hidden
- #line 448 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 447 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
}
@@ -1698,7 +1697,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
- #line 450 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 449 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
if (Model.Device.CanUpdateAssignment())
{
@@ -1706,14 +1705,14 @@ WriteLiteral(" ");
#line default
#line hidden
- #line 452 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 451 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Update Assignment", MVC.API.Device.UpdateAssignedUserId(Model.Device.SerialNumber, null, true), "Device_Show_User_Actions_Assign_Button"));
#line default
#line hidden
- #line 452 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 451 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
@@ -1727,20 +1726,18 @@ WriteLiteral(" class=\"dialog\"");
WriteLiteral(" title=\"Assign this Device?\"");
-WriteLiteral(">\r\n \r\n \r\n
\r\n Assign to User:\r\n " +
-" Assign to User:\r\n
\r\n " +
+"\r\n
\r\n \r\n");
+WriteLiteral(" />\r\n \r\n");
WriteLiteral(" \r\n");
- #line 680 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 675 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
}
@@ -2247,7 +2237,7 @@ WriteLiteral("\';\r\n\r\n button.click(function () {\r\n\
WriteLiteral(" ");
- #line 681 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 676 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
if (Model.Device.CanRecommission())
{
@@ -2255,14 +2245,14 @@ WriteLiteral(" ");
#line default
#line hidden
- #line 683 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 678 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Recommission", MVC.API.Device.Recommission(Model.Device.SerialNumber, true), "Device_Show_Device_Actions_Recommission_Button"));
#line default
#line hidden
- #line 683 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
+ #line 678 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
@@ -2274,14 +2264,11 @@ WriteLiteral(" id=\"Device_Show_Device_Actions_Recommission_Dialog\"");
WriteLiteral(" title=\"Recommission this Device?\"");
-WriteLiteral(">\r\n \r\n \r\n \r\n
\r\n Are you sure?\r\n
\r\n " +
-" \r\n");
+WriteLiteral("> Are you sure?\r\n \r\n \r\n");
WriteLiteral(" \r\n");
- #line 520 "..\..\Views\Job\JobParts\Resources.cshtml"
+ #line 518 "..\..\Views\Job\JobParts\Resources.cshtml"
}
#line default
#line hidden
- #line 521 "..\..\Views\Job\JobParts\Resources.cshtml"
+ #line 519 "..\..\Views\Job\JobParts\Resources.cshtml"
if (canShowLogs && canShowAttachments)
{
@@ -1348,7 +1344,7 @@ WriteLiteral("/\' + a.Id);\r\n e.find(\'.comments\').text(a.C
WriteLiteral(" \r\n");
- #line 426 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 425 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -1697,13 +1694,13 @@ WriteLiteral(">\r\n $(function () {\r\n
WriteLiteral("\r\n");
- #line 428 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 427 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default
#line hidden
- #line 428 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 427 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanClose())
{
@@ -1711,14 +1708,14 @@ WriteLiteral("\r\n");
#line default
#line hidden
- #line 430 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 429 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Close Job", MVC.API.Job.Close(Model.Job.Id, true), "Job_Show_Job_Actions_Close_Button"));
#line default
#line hidden
- #line 430 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 429 "..\..\Views\Job\JobParts\_Subject.cshtml"
@@ -1732,14 +1729,11 @@ WriteLiteral(" class=\"dialog\"");
WriteLiteral(" title=\"Close this Job?\"");
-WriteLiteral(">\r\n \r\n \r\n \r\n
\r\n Are you sure?\r\n
\r\n " +
-" \r\n");
+WriteLiteral("> Are you sure?\r\n \r\n \r\n");
WriteLiteral(" \r\n");
- #line 468 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 466 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -1776,7 +1770,7 @@ WriteLiteral(">\r\n $(function () {\r\n
WriteLiteral(" ");
- #line 469 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 467 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanReopen())
{
@@ -1784,14 +1778,14 @@ WriteLiteral(" ");
#line default
#line hidden
- #line 471 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 469 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Reopen Job", MVC.API.Job.Reopen(Model.Job.Id, true), "Job_Show_Job_Actions_Reopen_Button"));
#line default
#line hidden
- #line 471 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 469 "..\..\Views\Job\JobParts\_Subject.cshtml"
@@ -1805,14 +1799,11 @@ WriteLiteral(" class=\"dialog\"");
WriteLiteral(" title=\"Reopen this Job?\"");
-WriteLiteral(">\r\n \r\n \r\n \r\n
\r\n Are you sure?\r\n
\r\n " +
-" \r\n");
+WriteLiteral("> Are you sure?\r\n \r\n \r\n");
WriteLiteral(" \r\n");
- #line 510 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 507 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -1850,7 +1841,7 @@ WriteLiteral(">\r\n $(function () {\r\n
WriteLiteral(" ");
- #line 511 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 508 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanDelete())
{
@@ -1858,14 +1849,14 @@ WriteLiteral(" ");
#line default
#line hidden
- #line 513 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 510 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Delete Job", MVC.API.Job.Delete(Model.Job.Id, true), "Job_Show_Job_Actions_Delete_Button"));
#line default
#line hidden
- #line 513 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 510 "..\..\Views\Job\JobParts\_Subject.cshtml"
@@ -1879,15 +1870,12 @@ WriteLiteral(" class=\"dialog\"");
WriteLiteral(" title=\"Delete this Job?\"");
-WriteLiteral(">\r\n \r\n \r\n \r\n
\r\n This item will be permanently deleted and canno" +
-"t be recovered. Are you sure?\r\n
\r\n \r" +
-"\n");
+WriteLiteral("> This item will be permanently deleted and cannot be recovered. Are you" +
+" sure?\r\n \r\n \r\n");
WriteLiteral(" \r\n");
- #line 552 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 548 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -1925,7 +1913,7 @@ WriteLiteral(">\r\n $(function () {\r\n
WriteLiteral(" ");
- #line 553 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 549 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanLogWarranty())
{
@@ -1933,14 +1921,14 @@ WriteLiteral(" ");
#line default
#line hidden
- #line 555 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 551 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Log Warranty", MVC.Job.LogWarranty(Model.Job.Id, null, null), "Job_Show_Job_Actions_LogWarranty_Button"));
#line default
#line hidden
- #line 555 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 551 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -1950,7 +1938,7 @@ WriteLiteral(" ");
WriteLiteral(" ");
- #line 557 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 553 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanWarrantyCompleted())
{
@@ -1958,14 +1946,14 @@ WriteLiteral(" ");
#line default
#line hidden
- #line 559 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 555 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Warranty Complete", MVC.API.Job.UpdateWarrantyExternalCompletedDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_WarrantyComplete_Button", "alert"));
#line default
#line hidden
- #line 559 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 555 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -1975,7 +1963,7 @@ WriteLiteral(" ");
WriteLiteral(" ");
- #line 561 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 557 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanInsuranceClaimFormSent())
{
@@ -1983,14 +1971,14 @@ WriteLiteral(" ");
#line default
#line hidden
- #line 563 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 559 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Insurance Claim Sent", MVC.API.Job.UpdateInsuranceClaimFormSentDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_InsuranceClaimSent_Button", "alert"));
#line default
#line hidden
- #line 563 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 559 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -2000,7 +1988,7 @@ WriteLiteral(" ");
WriteLiteral(" ");
- #line 565 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 561 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanLogRepair())
{
@@ -2008,14 +1996,14 @@ WriteLiteral(" ");
#line default
#line hidden
- #line 567 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 563 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Repairs Logged", MVC.API.Job.LogRepair(Model.Job.Id, null, null, true), "Job_Show_Job_Actions_LogRepair_Button"));
#line default
#line hidden
- #line 567 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 563 "..\..\Views\Job\JobParts\_Subject.cshtml"
@@ -2032,13 +2020,13 @@ WriteLiteral(" title=\"Repairs Logged\"");
WriteLiteral(">\r\n");
- #line 569 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 565 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default
#line hidden
- #line 569 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 565 "..\..\Views\Job\JobParts\_Subject.cshtml"
using (Html.BeginForm(MVC.API.Job.LogRepair(Model.Job.Id, null, null, true)))
{
@@ -2070,7 +2058,7 @@ WriteLiteral(" name=\"RepairerReference\"");
WriteLiteral(" />\r\n \r\n");
- #line 579 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 575 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -2108,7 +2096,7 @@ WriteLiteral(">\r\n $(function () {\r\n
" });\r\n });\r\n \r\n");
- #line 617 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 613 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -2117,7 +2105,7 @@ WriteLiteral(">\r\n $(function () {\r\n
WriteLiteral(" ");
- #line 618 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 614 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanRepairComplete())
{
@@ -2125,14 +2113,14 @@ WriteLiteral(" ");
#line default
#line hidden
- #line 620 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 616 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Repairs Complete", MVC.API.Job.UpdateNonWarrantyRepairerCompletedDate(Model.Job.Id, "Now", true), "Job_Show_Job_Actions_RepairComplete_Button", "alert"));
#line default
#line hidden
- #line 620 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 616 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -2142,7 +2130,7 @@ WriteLiteral(" ");
WriteLiteral(" ");
- #line 622 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 618 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanConvertHWarToHNWar())
{
@@ -2150,14 +2138,14 @@ WriteLiteral(" ");
#line default
#line hidden
- #line 624 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 620 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Convert to Non-Warranty", MVC.API.Job.ConvertHWarToHNWar(Model.Job.Id, true), "Job_Show_Job_Actions_ConvertToHNWar_Button"));
#line default
#line hidden
- #line 624 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 620 "..\..\Views\Job\JobParts\_Subject.cshtml"
@@ -2171,15 +2159,12 @@ WriteLiteral(" class=\"dialog\"");
WriteLiteral(" title=\"Convert this Job?\"");
-WriteLiteral(">\r\n \r\n \r\n \r\n
\r\n This process is not reversible.
\r\n " +
-" Are you sure?\r\n
\r\n \r" +
-"\n");
+WriteLiteral("> This process is not reversible.
\r\n Are you" +
+" sure?\r\n \r\n \r\n");
WriteLiteral(" \r\n");
- #line 665 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 660 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -2217,13 +2202,13 @@ WriteLiteral(">\r\n $(function () {\r\n
WriteLiteral(" \r\n");
- #line 667 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 662 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default
#line hidden
- #line 667 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 662 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.Device != null)
{
@@ -2237,13 +2222,13 @@ WriteLiteral(" id=\"Job_Show_Device_Actions\"");
WriteLiteral(">\r\n");
- #line 670 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 665 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default
#line hidden
- #line 670 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 665 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanDeviceHeld())
{
@@ -2251,14 +2236,14 @@ WriteLiteral(">\r\n");
#line default
#line hidden
- #line 672 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 667 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Held", MVC.API.Job.DeviceHeld(Model.Job.Id, true), "Job_Show_Device_Actions_Held_Button"));
#line default
#line hidden
- #line 672 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 667 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -2268,7 +2253,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
- #line 674 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 669 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanDeviceReadyForReturn())
{
@@ -2276,14 +2261,14 @@ WriteLiteral(" ");
#line default
#line hidden
- #line 676 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 671 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Ready For Return", MVC.API.Job.DeviceReadyForReturn(Model.Job.Id, true), "Job_Show_Device_Actions_DeviceReadyForReturn_Button", "alert"));
#line default
#line hidden
- #line 676 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 671 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -2293,7 +2278,7 @@ WriteLiteral(" ");
WriteLiteral(" ");
- #line 678 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 673 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanDeviceReturned())
{
@@ -2301,14 +2286,14 @@ WriteLiteral(" ");
#line default
#line hidden
- #line 680 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 675 "..\..\Views\Job\JobParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Returned", MVC.API.Job.DeviceReturned(Model.Job.Id, true), "Job_Show_Device_Actions_DeviceReturned_Button", Model.Job.CanDeviceReadyForReturn() ? null : "alert"));
#line default
#line hidden
- #line 680 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 675 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -2318,7 +2303,7 @@ WriteLiteral(" ");
WriteLiteral(" \r\n");
- #line 683 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 678 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -2327,7 +2312,7 @@ WriteLiteral(" \r\n");
WriteLiteral(" ");
- #line 684 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 679 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.User != null)
{
@@ -2341,13 +2326,13 @@ WriteLiteral(" id=\"Job_Show_User_Actions\"");
WriteLiteral(">\r\n\r\n\r\n");
- #line 689 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 684 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default
#line hidden
- #line 689 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 684 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanWaitingForUserAction())
{
@@ -2375,13 +2360,13 @@ WriteLiteral(" title=\"Waiting for User Action\"");
WriteLiteral(">\r\n");
- #line 693 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 688 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default
#line hidden
- #line 693 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 688 "..\..\Views\Job\JobParts\_Subject.cshtml"
using (Html.BeginForm(MVC.API.Job.WaitingForUserAction(Model.Job.Id, null, true)))
{
@@ -2399,7 +2384,7 @@ WriteLiteral(" class=\"block\"");
WriteLiteral(">\r\n \r\n");
- #line 699 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 694 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -2434,7 +2419,7 @@ WriteLiteral(">\r\n $(function () {\r\n
" });\r\n \r\n");
- #line 732 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 727 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -2443,7 +2428,7 @@ WriteLiteral(">\r\n $(function () {\r\n
WriteLiteral(" ");
- #line 733 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 728 "..\..\Views\Job\JobParts\_Subject.cshtml"
if (Model.Job.CanNotWaitingForUserAction())
{
@@ -2471,13 +2456,13 @@ WriteLiteral(" title=\"Not Waiting for User Action\"");
WriteLiteral(">\r\n");
- #line 737 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 732 "..\..\Views\Job\JobParts\_Subject.cshtml"
#line default
#line hidden
- #line 737 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 732 "..\..\Views\Job\JobParts\_Subject.cshtml"
using (Html.BeginForm(MVC.API.Job.NotWaitingForUserAction(Model.Job.Id, null, true)))
{
@@ -2495,7 +2480,7 @@ WriteLiteral(" class=\"block\"");
WriteLiteral(">\r\n \r\n");
- #line 743 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 738 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -2531,7 +2516,7 @@ WriteLiteral(">\r\n $(function () {\r\n
" });\r\n \r\n");
- #line 777 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 772 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
@@ -2540,7 +2525,7 @@ WriteLiteral(">\r\n $(function () {\r\n
WriteLiteral("\r\n \r\n");
- #line 780 "..\..\Views\Job\JobParts\_Subject.cshtml"
+ #line 775 "..\..\Views\Job\JobParts\_Subject.cshtml"
}
diff --git a/Disco.Web/Views/Job/Show.cshtml b/Disco.Web/Views/Job/Show.cshtml
index 8045f690..7c142cfa 100644
--- a/Disco.Web/Views/Job/Show.cshtml
+++ b/Disco.Web/Views/Job/Show.cshtml
@@ -14,7 +14,7 @@
@{ var jobStatusInfo = Model.Job.Status();}
- @jobStatusInfo.Item2 @if (Model.LongRunning.HasValue)
+ @jobStatusInfo.Item2 @if (Model.LongRunning.HasValue)
{(Long Running: @Model.LongRunning.Value.Humanize(false))}