be7ee4cae8
feature: flag permissions
712 lines
22 KiB
C#
712 lines
22 KiB
C#
#pragma warning disable 1591
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:4.0.30319.42000
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace Disco.Web.Views.Device.DeviceParts
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Web;
|
|
using System.Web.Helpers;
|
|
using System.Web.Mvc;
|
|
using System.Web.Mvc.Ajax;
|
|
using System.Web.Mvc.Html;
|
|
using System.Web.Routing;
|
|
using System.Web.Security;
|
|
using System.Web.UI;
|
|
using System.Web.WebPages;
|
|
using Disco;
|
|
using Disco.Models.Repository;
|
|
using Disco.Services;
|
|
using Disco.Services.Authorization;
|
|
|
|
#line 2 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
using Disco.Services.Devices.DeviceFlags;
|
|
|
|
#line default
|
|
#line hidden
|
|
using Disco.Services.Web;
|
|
using Disco.Web;
|
|
using Disco.Web.Extensions;
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
|
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/Device/DeviceParts/_Flags.cshtml")]
|
|
public partial class _Flags : Disco.Services.Web.WebViewPage<Disco.Web.Models.Device.ShowModel>
|
|
{
|
|
public _Flags()
|
|
{
|
|
}
|
|
public override void Execute()
|
|
{
|
|
|
|
#line 3 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
|
|
var flagAssignments = Model.Device.DeviceFlagAssignments.Select(a => Tuple.Create(a, DeviceFlagService.GetDeviceFlag(a.DeviceFlagId))).Where(a => a.Item2.permission.CanShow()).ToList();
|
|
var activeAssignmentCount = flagAssignments.Count(a => !a.Item1.RemovedDate.HasValue);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n<div");
|
|
|
|
WriteLiteral(" id=\"DeviceDetailTab-Flags\"");
|
|
|
|
WriteLiteral(" class=\"DevicePart\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 8 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 8 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
if (flagAssignments.Count > 0)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <table");
|
|
|
|
WriteLiteral(" id=\"deviceFlags\"");
|
|
|
|
WriteLiteral(">\r\n <tr>\r\n <th");
|
|
|
|
WriteLiteral(" class=\"name\"");
|
|
|
|
WriteLiteral(">Name</th>\r\n <th");
|
|
|
|
WriteLiteral(" class=\"added\"");
|
|
|
|
WriteLiteral(">Added</th>\r\n <th");
|
|
|
|
WriteLiteral(" class=\"sla\"");
|
|
|
|
WriteLiteral(">Comments</th>\r\n <th");
|
|
|
|
WriteLiteral(" class=\"removed\"");
|
|
|
|
WriteLiteral(">Removed</th>\r\n </tr>\r\n");
|
|
|
|
|
|
#line 17 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 17 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
foreach (var fa in flagAssignments.OrderByDescending(a => a.Item1.AddedDate))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <tr");
|
|
|
|
WriteLiteral(" data-deviceflagassignmentid=\"");
|
|
|
|
|
|
#line 19 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
Write(fa.Item1.Id);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteLiteral(" data-flagassignmentaddeddate=\"");
|
|
|
|
|
|
#line 19 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
Write(fa.Item1.AddedDate.ToString("s"));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\"");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 967), Tuple.Create("\"", 1030)
|
|
|
|
#line 19 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 975), Tuple.Create<System.Object, System.Int32>(!fa.Item1.RemovedDate.HasValue ? "added" : "removed"
|
|
|
|
#line default
|
|
#line hidden
|
|
, 975), false)
|
|
);
|
|
|
|
WriteLiteral(">\r\n <td");
|
|
|
|
WriteLiteral(" class=\"name\"");
|
|
|
|
WriteLiteral(">\r\n <i");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 1099), Tuple.Create("\"", 1176)
|
|
, Tuple.Create(Tuple.Create("", 1107), Tuple.Create("fa", 1107), true)
|
|
, Tuple.Create(Tuple.Create(" ", 1109), Tuple.Create("fa-", 1110), true)
|
|
|
|
#line 21 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 1113), Tuple.Create<System.Object, System.Int32>(fa.Item2.flag.Icon
|
|
|
|
#line default
|
|
#line hidden
|
|
, 1113), false)
|
|
, Tuple.Create(Tuple.Create(" ", 1134), Tuple.Create("fa-fw", 1135), true)
|
|
, Tuple.Create(Tuple.Create(" ", 1140), Tuple.Create("fa-lg", 1141), true)
|
|
, Tuple.Create(Tuple.Create(" ", 1146), Tuple.Create("d-", 1147), true)
|
|
|
|
#line 21 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 1149), Tuple.Create<System.Object, System.Int32>(fa.Item2.flag.IconColour
|
|
|
|
#line default
|
|
#line hidden
|
|
, 1149), false)
|
|
);
|
|
|
|
WriteLiteral("></i>\r\n");
|
|
|
|
|
|
#line 22 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 22 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
if (Authorization.Has(Claims.Config.DeviceFlag.Show))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 24 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
Write(Html.ActionLink(fa.Item2.flag.Name, MVC.Config.DeviceFlag.Index(fa.Item2.flag.Id)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 24 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 28 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
Write(fa.Item2.flag.Name);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 28 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n <td");
|
|
|
|
WriteLiteral(" class=\"added\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 32 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
Write(CommonHelpers.FriendlyDateAndUser(fa.Item1.AddedDate, fa.Item1.AddedUser));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
|
|
#line 33 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 33 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
if (fa.Item1.OnAssignmentExpressionResult != null)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"expressionResult\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 35 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
Write(fa.Item1.OnAssignmentExpressionResult);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</div>\r\n");
|
|
|
|
|
|
#line 36 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n <td");
|
|
|
|
WriteLiteral(" class=\"comments\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 39 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 39 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
if (fa.Item2.permission.CanEdit())
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"editable\"");
|
|
|
|
WriteLiteral("><i");
|
|
|
|
WriteLiteral(" class=\"fa fa-fw fa-edit\"");
|
|
|
|
WriteLiteral(" title=\"Edit Comments\"");
|
|
|
|
WriteLiteral("></i></div>\r\n");
|
|
|
|
|
|
#line 42 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 43 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
if (fa.Item1.Comments == null)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"comments smallMessage\"");
|
|
|
|
WriteLiteral(">[no comments]</div>\r\n");
|
|
|
|
|
|
#line 46 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"comments\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 49 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
Write(fa.Item1.Comments.ToHtmlComment());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</div>\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"commentsRaw\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 50 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
Write(fa.Item1.Comments);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</div>\r\n");
|
|
|
|
|
|
#line 51 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n <td");
|
|
|
|
WriteAttribute("class", Tuple.Create(" class=\"", 2763), Tuple.Create("\"", 2826)
|
|
, Tuple.Create(Tuple.Create("", 2771), Tuple.Create("removed", 2771), true)
|
|
|
|
#line 53 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 2778), Tuple.Create<System.Object, System.Int32>(!fa.Item1.RemovedDate.HasValue ? " na" : null
|
|
|
|
#line default
|
|
#line hidden
|
|
, 2778), false)
|
|
);
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 54 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 54 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
if (fa.Item1.RemovedDate.HasValue)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 56 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
Write(CommonHelpers.FriendlyDateAndUser(fa.Item1.RemovedDate.Value, fa.Item1.RemovedUser));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 56 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
|
|
if (fa.Item1.OnUnassignmentExpressionResult != null)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"expressionResult\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 59 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
Write(fa.Item1.OnUnassignmentExpressionResult);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</div>\r\n");
|
|
|
|
|
|
#line 60 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
}
|
|
}
|
|
else if (fa.Item1.CanRemove())
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <a");
|
|
|
|
WriteLiteral(" href=\"#\"");
|
|
|
|
WriteLiteral(" class=\"button small remove\"");
|
|
|
|
WriteLiteral(">Remove</a>\r\n");
|
|
|
|
|
|
#line 65 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </td>\r\n </tr>\r\n");
|
|
|
|
|
|
#line 68 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </table>\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" id=\"Device_Show_Flags_Actions_Remove_Dialog\"");
|
|
|
|
WriteLiteral(" class=\"dialog\"");
|
|
|
|
WriteLiteral(" title=\"Remove this flag from the device?\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 71 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 71 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
using (Html.BeginForm(MVC.API.DeviceFlagAssignment.RemoveDevice()))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 73 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
Write(Html.AntiForgeryToken());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 73 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" id=\"Device_Show_Flags_Actions_Remove_Dialog_Id\"");
|
|
|
|
WriteLiteral(" type=\"hidden\"");
|
|
|
|
WriteLiteral(" name=\"id\"");
|
|
|
|
WriteLiteral(" value=\"\"");
|
|
|
|
WriteLiteral(" />\r\n");
|
|
|
|
WriteLiteral(" <p>\r\n <i");
|
|
|
|
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg\"");
|
|
|
|
WriteLiteral("></i> Are you sure?\r\n </p>\r\n");
|
|
|
|
|
|
#line 78 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </div>\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" id=\"Device_Show_Flags_Actions_EditComments_Dialog\"");
|
|
|
|
WriteLiteral(" class=\"dialog\"");
|
|
|
|
WriteLiteral(" title=\"Edit the Comments\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
|
|
#line 81 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 81 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
using (Html.BeginForm(MVC.API.DeviceFlagAssignment.UpdateComments()))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 83 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
Write(Html.AntiForgeryToken());
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 83 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" id=\"Device_Show_Flags_Actions_EditComments_Dialog_Id\"");
|
|
|
|
WriteLiteral(" type=\"hidden\"");
|
|
|
|
WriteLiteral(" name=\"id\"");
|
|
|
|
WriteLiteral(" value=\"\"");
|
|
|
|
WriteLiteral(" />\r\n");
|
|
|
|
WriteLiteral(" <input");
|
|
|
|
WriteLiteral(" type=\"hidden\"");
|
|
|
|
WriteLiteral(" name=\"redirect\"");
|
|
|
|
WriteLiteral(" value=\"true\"");
|
|
|
|
WriteLiteral(" />\r\n");
|
|
|
|
WriteLiteral(" <h4>Comments:</h4>\r\n");
|
|
|
|
WriteLiteral(" <p>\r\n <textarea");
|
|
|
|
WriteLiteral(" id=\"Device_Show_Flags_Actions_EditComments_Dialog_Comments\"");
|
|
|
|
WriteLiteral(" name=\"Comments\"");
|
|
|
|
WriteLiteral(" class=\"block\"");
|
|
|
|
WriteLiteral("></textarea>\r\n </p>\r\n");
|
|
|
|
|
|
#line 90 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </div>\r\n");
|
|
|
|
WriteLiteral(" <script");
|
|
|
|
WriteLiteral(" type=\"text/javascript\"");
|
|
|
|
WriteLiteral(">\r\n $(function () {\r\n var deviceFlags = $(\'#deviceFlags" +
|
|
"\');\r\n\r\n var dialog = null;\r\n var dialogEditComment" +
|
|
"s = null;\r\n\r\n deviceFlags.on(\'click\', \'a.remove\', function (e) {\r" +
|
|
"\n var $this = $(this);\r\n var DeviceFlagAss" +
|
|
"ignmentId = $this.closest(\'tr\').attr(\'data-deviceflagassignmentid\');\r\n\r\n " +
|
|
" if (!dialog) {\r\n dialog = $(\'#Device_Show_Fla" +
|
|
"gs_Actions_Remove_Dialog\');\r\n dialog.dialog({\r\n " +
|
|
" resizable: false,\r\n modal: true,\r\n " +
|
|
" autoOpen: false,\r\n buttons" +
|
|
": {\r\n \"Remove Flag\": function () {\r\n " +
|
|
" var $this = $(this);\r\n " +
|
|
" $this.dialog(\"disable\");\r\n $this.dialog(\"opt" +
|
|
"ion\", \"buttons\", null);\r\n $this.find(\'form\')." +
|
|
"submit();\r\n },\r\n C" +
|
|
"ancel: function () {\r\n $(this).dialog(\"close\"" +
|
|
");\r\n }\r\n }\r\n " +
|
|
" });\r\n }\r\n\r\n $(\'#Device_Show_" +
|
|
"Flags_Actions_Remove_Dialog_Id\').val(DeviceFlagAssignmentId);\r\n " +
|
|
" dialog.dialog(\'open\');\r\n\r\n e.preventDefault();\r\n " +
|
|
" return false;\r\n });\r\n\r\n deviceFlags.on(\'" +
|
|
"click\', \'td.comments i.fa-edit\', function (e) {\r\n var $this =" +
|
|
" $(this);\r\n var DeviceFlagAssignmentId = $this.closest(\'tr\')." +
|
|
"attr(\'data-deviceflagassignmentid\');\r\n\r\n if (!dialogEditComme" +
|
|
"nts) {\r\n dialogEditComments = $(\'#Device_Show_Flags_Actio" +
|
|
"ns_EditComments_Dialog\');\r\n dialogEditComments.dialog({\r\n" +
|
|
" resizable: false,\r\n modal" +
|
|
": true,\r\n width: 320,\r\n au" +
|
|
"toOpen: false,\r\n buttons: {\r\n " +
|
|
" \"Save Changes\": function () {\r\n var $" +
|
|
"this = $(this);\r\n $this.dialog(\"disable\");\r\n " +
|
|
" $this.dialog(\"option\", \"buttons\", null);\r\n " +
|
|
" $this.find(\'form\').submit();\r\n " +
|
|
" },\r\n Cancel: function () {\r\n " +
|
|
" $(this).dialog(\"close\");\r\n " +
|
|
" }\r\n }\r\n });\r\n " +
|
|
" }\r\n\r\n var $comments = $this.closest(\'td\').find(\'.c" +
|
|
"ommentsRaw\');\r\n if ($comments.hasClass(\'smallMessage\')) {\r\n " +
|
|
" $(\'#Device_Show_Flags_Actions_EditComments_Dialog_Comments" +
|
|
"\').val(\'\');\r\n } else {\r\n $(\'#Device_Sh" +
|
|
"ow_Flags_Actions_EditComments_Dialog_Comments\').val($comments.text());\r\n " +
|
|
" }\r\n\r\n $(\'#Device_Show_Flags_Actions_EditComments_" +
|
|
"Dialog_Id\').val(DeviceFlagAssignmentId);\r\n dialogEditComments" +
|
|
".dialog(\'open\');\r\n e.preventDefault();\r\n r" +
|
|
"eturn false;\r\n });\r\n });\r\n </script>\r\n");
|
|
|
|
|
|
#line 169 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"none\"");
|
|
|
|
WriteLiteral(">This device has no associated flags</div>\r\n");
|
|
|
|
|
|
#line 173 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <script>\r\n $(\'#DeviceDetailTabItems\').append(\'<li><a href=\"#DeviceDeta" +
|
|
"ilTab-Flags\">Flags [");
|
|
|
|
|
|
#line 175 "..\..\Views\Device\DeviceParts\_Flags.cshtml"
|
|
Write(activeAssignmentCount);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("]</a></li>\');\r\n </script>\r\n</div>\r\n");
|
|
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore 1591
|