UI Improvements: info-box css

This commit is contained in:
Gary Sharp
2014-06-17 00:00:56 +10:00
parent 34842012b7
commit 84a4ba281f
38 changed files with 1077 additions and 976 deletions
@@ -139,9 +139,11 @@
@if (Model.DeviceBatch.UnitQuantity.HasValue && Model.DeviceBatch.UnitQuantity.Value > Model.DeviceCount)
{
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">
<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 class="info-box">
<p class="fa-p">
<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>.
</p>
</div>
}
</td>
@@ -701,9 +703,6 @@
@Html.Partial(MVC.Config.Shared.Views.LinkedGroupShared)
}
</div>
<div style="padding: 0.7em 0.7em;" class="ui-state-highlight ui-corner-all">
<i class="fa fa-info-circle information"></i>&nbsp;Linked Active Directory Groups are automatically synchronized to include members currently associated with this Device Batch.
</div>
</td>
</tr>
</table>
File diff suppressed because it is too large Load Diff
@@ -41,7 +41,7 @@
@item.DeviceCount.ToString("n0")
@if (item.DeviceDecommissionedCount > 0)
{
<span class="smallMessage" title="@(item.DeviceDecommissionedCount) Decommissioned">
<span class="smallMessage" title="@(item.DeviceDecommissionedCount.ToString("n0")) Decommissioned">
(@(item.DeviceDecommissionedCount.ToString("n0")))</span>
}
</td>
@@ -167,15 +167,15 @@ WriteLiteral(" <span");
WriteLiteral(" class=\"smallMessage\"");
WriteAttribute("title", Tuple.Create(" title=\"", 1233), Tuple.Create("\"", 1289)
WriteAttribute("title", Tuple.Create(" title=\"", 1233), Tuple.Create("\"", 1304)
#line 44 "..\..\Areas\Config\Views\DeviceModel\Index.cshtml"
, Tuple.Create(Tuple.Create("", 1241), Tuple.Create<System.Object, System.Int32>(item.DeviceDecommissionedCount
, Tuple.Create(Tuple.Create("", 1241), Tuple.Create<System.Object, System.Int32>(item.DeviceDecommissionedCount.ToString("n0")
#line default
#line hidden
, 1241), false)
, Tuple.Create(Tuple.Create(" ", 1274), Tuple.Create("Decommissioned", 1275), true)
, Tuple.Create(Tuple.Create(" ", 1289), Tuple.Create("Decommissioned", 1290), true)
);
WriteLiteral(">\r\n (");
@@ -738,9 +738,6 @@
@Html.Partial(MVC.Config.Shared.Views.LinkedGroupShared)
}
</div>
<div style="padding: 0.7em 0.7em;" class="ui-state-highlight ui-corner-all">
<i class="fa fa-info-circle information"></i>&nbsp;Linked Active Directory Groups are automatically synchronized to include members currently associated with this Device Profile.
</div>
</td>
</tr>
</table>
@@ -2066,22 +2066,10 @@ WriteLiteral("\r\n");
#line default
#line hidden
WriteLiteral(" </div>\r\n <div");
WriteLiteral(" style=\"padding: 0.7em 0.7em;\"");
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa fa-info-circle information\"");
WriteLiteral("></i>&nbsp;Linked Active Directory Groups are automatically synchronized to inclu" +
"de members currently associated with this Device Profile.\r\n </div" +
">\r\n </td>\r\n </tr>\r\n </table>\r\n</div>\r\n");
WriteLiteral(" </div>\r\n </td>\r\n </tr>\r\n </table>\r\n</div>\r\n");
#line 748 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 745 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (canDelete)
{
@@ -2136,7 +2124,7 @@ WriteLiteral(@">
");
#line 784 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 781 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2149,13 +2137,13 @@ WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n");
#line 786 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 783 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
#line 786 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 783 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (canDelete)
{
@@ -2163,14 +2151,14 @@ WriteLiteral(">\r\n");
#line default
#line hidden
#line 788 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 785 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.ActionLinkButton("Delete", MVC.API.DeviceProfile.Delete(Model.DeviceProfile.Id, true), "buttonDelete"));
#line default
#line hidden
#line 788 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 785 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2180,7 +2168,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 790 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 787 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (Authorization.Has(Claims.Device.Actions.Export))
{
@@ -2188,14 +2176,14 @@ WriteLiteral(" ");
#line default
#line hidden
#line 792 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 789 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.ActionLinkButton("Export Devices", MVC.Device.Export(null, Disco.Models.Services.Devices.Exporting.DeviceExportTypes.Profile, Model.DeviceProfile.Id)));
#line default
#line hidden
#line 792 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 789 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2205,7 +2193,7 @@ WriteLiteral(" ");
WriteLiteral(" ");
#line 794 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 791 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (Authorization.Has(Claims.Device.Search) && Model.DeviceCount > 0)
{
@@ -2213,14 +2201,14 @@ WriteLiteral(" ");
#line default
#line hidden
#line 796 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 793 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.ActionLinkButton(string.Format("View {0} Device{1}", Model.DeviceCount, (Model.DeviceCount != 1 ? "s" : null)), MVC.Search.Query(Model.DeviceProfile.Id.ToString(), "DeviceProfile")));
#line default
#line hidden
#line 796 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line 793 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -50,7 +50,7 @@
<th>Statistics:
</th>
<td>
<strong>@Html.DisplayFor(model => model.StoredInstanceCount)</strong> Stored Instance@(Model.StoredInstanceCount == 1 ? null : "s")
<strong>@Model.StoredInstanceCount.ToString("n0")</strong> Stored Instance@(Model.StoredInstanceCount == 1 ? null : "s")
</td>
</tr>
<tr>
@@ -150,7 +150,7 @@
</th>
<td>
<h4>@Model.DocumentTemplate.Scope Scope</h4>
<div class="infoBox">
<div class="info-box">
<p class="fa-p">
<i class="fa fa-info-circle"></i>This template is generated from @(Model.DocumentTemplate.Scope)s. Any expressions within the Template&nbsp;PDF will be evaluated within the <a href="@(Url.Action(MVC.Config.DocumentTemplate.ExpressionBrowser()))#@(Model.DocumentTemplate.Scope)Scope">@(Model.DocumentTemplate.Scope) Scope</a>.
</p>
@@ -173,14 +173,14 @@
</select>
</div>
}
<div class="infoBox">
<div class="info-box">
<p class="fa-p">
<i class="fa fa-info-circle"></i>Expressions within the Template PDF may need to be updated to reflect any changes to the Document Template Scope.
</p>
</div>
@if (Model.DocumentTemplate.UsersLinkedGroup != null || Model.DocumentTemplate.DevicesLinkedGroup != null)
{
<div class="infoBox error">
<div class="info-box error">
<p class="fa-p">
<i class="fa fa-exclamation-circle"></i><strong>Warning:</strong> This Document Template contains Linked Groups, these will be automatically updated to reflect the new Document Template Scope which <strong>may result in undesired behaviour</strong>.
</p>
@@ -137,7 +137,7 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n
#line 53 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
Write(Html.DisplayFor(model => model.StoredInstanceCount));
Write(Model.StoredInstanceCount.ToString("n0"));
#line default
@@ -146,7 +146,7 @@ WriteLiteral("</strong> Stored Instance");
#line 53 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
Write(Model.StoredInstanceCount == 1 ? null : "s");
Write(Model.StoredInstanceCount == 1 ? null : "s");
#line default
@@ -428,7 +428,7 @@ WriteLiteral(" </td>\r\n </tr>\r\n
#line hidden
WriteLiteral(" Scope</h4>\r\n <div");
WriteLiteral(" class=\"infoBox\"");
WriteLiteral(" class=\"info-box\"");
WriteLiteral(">\r\n <p");
@@ -449,23 +449,23 @@ WriteLiteral("></i>This template is generated from ");
#line hidden
WriteLiteral("s. Any expressions within the Template&nbsp;PDF will be evaluated within the <a");
WriteAttribute("href", Tuple.Create(" href=\"", 8600), Tuple.Create("\"", 8706)
WriteAttribute("href", Tuple.Create(" href=\"", 8590), Tuple.Create("\"", 8696)
#line 155 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
, Tuple.Create(Tuple.Create("", 8607), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.DocumentTemplate.ExpressionBrowser())
, Tuple.Create(Tuple.Create("", 8597), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.DocumentTemplate.ExpressionBrowser())
#line default
#line hidden
, 8607), false)
, Tuple.Create(Tuple.Create("", 8669), Tuple.Create("#", 8669), true)
, 8597), false)
, Tuple.Create(Tuple.Create("", 8659), Tuple.Create("#", 8659), true)
#line 155 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
, Tuple.Create(Tuple.Create("", 8670), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Scope
, Tuple.Create(Tuple.Create("", 8660), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Scope
#line default
#line hidden
, 8670), false)
, Tuple.Create(Tuple.Create("", 8701), Tuple.Create("Scope", 8701), true)
, 8660), false)
, Tuple.Create(Tuple.Create("", 8691), Tuple.Create("Scope", 8691), true)
);
WriteLiteral(">");
@@ -556,24 +556,24 @@ WriteLiteral(">\r\n");
#line hidden
WriteLiteral(" <option");
WriteAttribute("value", Tuple.Create(" value=\"", 9830), Tuple.Create("\"", 9844)
WriteAttribute("value", Tuple.Create(" value=\"", 9820), Tuple.Create("\"", 9834)
#line 171 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
, Tuple.Create(Tuple.Create("", 9838), Tuple.Create<System.Object, System.Int32>(scope
, Tuple.Create(Tuple.Create("", 9828), Tuple.Create<System.Object, System.Int32>(scope
#line default
#line hidden
, 9838), false)
, 9828), false)
);
WriteAttribute("selected", Tuple.Create(" selected=\"", 9845), Tuple.Create("\"", 9916)
WriteAttribute("selected", Tuple.Create(" selected=\"", 9835), Tuple.Create("\"", 9906)
#line 171 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
, Tuple.Create(Tuple.Create("", 9856), Tuple.Create<System.Object, System.Int32>(scope == Model.DocumentTemplate.Scope ? "selected" : null
, Tuple.Create(Tuple.Create("", 9846), Tuple.Create<System.Object, System.Int32>(scope == Model.DocumentTemplate.Scope ? "selected" : null
#line default
#line hidden
, 9856), false)
, 9846), false)
);
WriteLiteral(">");
@@ -606,7 +606,7 @@ WriteLiteral(" </select>\r\n
#line hidden
WriteLiteral(" <div");
WriteLiteral(" class=\"infoBox\"");
WriteLiteral(" class=\"info-box\"");
WriteLiteral(">\r\n <p");
@@ -636,7 +636,7 @@ WriteLiteral("></i>Expressions within the Template PDF may need to be updated to
#line hidden
WriteLiteral(" <div");
WriteLiteral(" class=\"infoBox error\"");
WriteLiteral(" class=\"info-box error\"");
WriteLiteral(">\r\n <p");
@@ -911,29 +911,29 @@ WriteLiteral(" class=\"jobTypes\"");
WriteLiteral(">\r\n <h4>\r\n " +
" <input");
WriteAttribute("id", Tuple.Create(" id=\"", 16558), Tuple.Create("\"", 16577)
, Tuple.Create(Tuple.Create("", 16563), Tuple.Create("Types_", 16563), true)
WriteAttribute("id", Tuple.Create(" id=\"", 16550), Tuple.Create("\"", 16569)
, Tuple.Create(Tuple.Create("", 16555), Tuple.Create("Types_", 16555), true)
#line 269 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
, Tuple.Create(Tuple.Create("", 16569), Tuple.Create<System.Object, System.Int32>(jt.Id
, Tuple.Create(Tuple.Create("", 16561), Tuple.Create<System.Object, System.Int32>(jt.Id
#line default
#line hidden
, 16569), false)
, 16561), false)
);
WriteLiteral(" class=\"jobType\"");
WriteLiteral(" type=\"checkbox\"");
WriteAttribute("value", Tuple.Create(" value=\"", 16610), Tuple.Create("\"", 16626)
WriteAttribute("value", Tuple.Create(" value=\"", 16602), Tuple.Create("\"", 16618)
#line 269 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
, Tuple.Create(Tuple.Create("", 16618), Tuple.Create<System.Object, System.Int32>(jt.Id
, Tuple.Create(Tuple.Create("", 16610), Tuple.Create<System.Object, System.Int32>(jt.Id
#line default
#line hidden
, 16618), false)
, 16610), false)
);
WriteLiteral(" ");
@@ -947,15 +947,15 @@ WriteLiteral(" ");
#line hidden
WriteLiteral(" /><label");
WriteAttribute("for", Tuple.Create(" for=\"", 16697), Tuple.Create("\"", 16717)
, Tuple.Create(Tuple.Create("", 16703), Tuple.Create("Types_", 16703), true)
WriteAttribute("for", Tuple.Create(" for=\"", 16689), Tuple.Create("\"", 16709)
, Tuple.Create(Tuple.Create("", 16695), Tuple.Create("Types_", 16695), true)
#line 269 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
, Tuple.Create(Tuple.Create("", 16709), Tuple.Create<System.Object, System.Int32>(jt.Id
, Tuple.Create(Tuple.Create("", 16701), Tuple.Create<System.Object, System.Int32>(jt.Id
#line default
#line hidden
, 16709), false)
, 16701), false)
);
WriteLiteral(">");
@@ -969,15 +969,15 @@ WriteLiteral(">");
#line hidden
WriteLiteral("</label></h4>\r\n <div");
WriteAttribute("id", Tuple.Create(" id=\"", 16801), Tuple.Create("\"", 16823)
, Tuple.Create(Tuple.Create("", 16806), Tuple.Create("SubTypes_", 16806), true)
WriteAttribute("id", Tuple.Create(" id=\"", 16793), Tuple.Create("\"", 16815)
, Tuple.Create(Tuple.Create("", 16798), Tuple.Create("SubTypes_", 16798), true)
#line 270 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
, Tuple.Create(Tuple.Create("", 16815), Tuple.Create<System.Object, System.Int32>(jt.Id
, Tuple.Create(Tuple.Create("", 16807), Tuple.Create<System.Object, System.Int32>(jt.Id
#line default
#line hidden
, 16815), false)
, 16807), false)
);
WriteLiteral(" class=\"jobSubTypes\"");
@@ -1616,16 +1616,16 @@ WriteLiteral(" id=\"dialogBulkGenerate\"");
WriteLiteral(" class=\"hiddenDialog\"");
WriteAttribute("title", Tuple.Create(" title=\"", 33937), Tuple.Create("\"", 33988)
, Tuple.Create(Tuple.Create("", 33945), Tuple.Create("Bulk", 33945), true)
, Tuple.Create(Tuple.Create(" ", 33949), Tuple.Create("Generate:", 33950), true)
WriteAttribute("title", Tuple.Create(" title=\"", 33929), Tuple.Create("\"", 33980)
, Tuple.Create(Tuple.Create("", 33937), Tuple.Create("Bulk", 33937), true)
, Tuple.Create(Tuple.Create(" ", 33941), Tuple.Create("Generate:", 33942), true)
#line 579 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
, Tuple.Create(Tuple.Create(" ", 33959), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Id
, Tuple.Create(Tuple.Create(" ", 33951), Tuple.Create<System.Object, System.Int32>(Model.DocumentTemplate.Id
#line default
#line hidden
, 33960), false)
, 33952), false)
);
WriteLiteral(">\r\n <div");
@@ -16,8 +16,10 @@
@AjaxHelpers.AjaxSave()
@AjaxHelpers.AjaxLoader()
<div id="Config_Location_Unrestricted">
<div style="padding: 0.7em 0.7em;" class="ui-state-highlight ui-corner-all">
<i class="fa fa-info-circle information"></i>&nbsp;Technicians will be able to specify <em>any</em> value when entering a location. A selection of locations used historically will be offered.
<div class="info-box">
<p class="fa-p">
<i class="fa fa-info-circle"></i>Technicians will be able to specify <em>any</em> value when entering a location. A selection of locations used historically will be offered.
</p>
</div>
</div>
<div id="Config_Location_List">
@@ -45,20 +47,26 @@
<input type="checkbox" id="Config_Location_ListImport_Dialog_Overwrite" name="Override" value="True" /><label for="Config_Location_ListImport_Dialog_Overwrite">Override Existing List</label>
</div>
<textarea id="Config_Location_ListImport_Dialog_LocationList" name="LocationList"></textarea>
<div style="padding: 0.7em 0.7em; margin-top: 10px;" class="ui-state-highlight ui-corner-all">
<i class="fa fa-info-circle information"></i>&nbsp;Enter multiple locations separated by <code>&lt;new line&gt;</code>, commas (<code>,</code>) or semicolons (<code>;</code>).
<div class="info-box">
<p class="fa-p">
<i class="fa fa-info-circle"></i>Enter multiple locations separated by <code>&lt;new line&gt;</code>, commas (<code>,</code>) or semicolons (<code>;</code>).
</p>
</div>
</form>
</div>
</div>
<div id="Config_Location_Optional">
<div style="padding: 0.7em 0.7em;" class="ui-state-highlight ui-corner-all">
<i class="fa fa-info-circle information"></i>&nbsp;Technicians will be able to specify <em>any</em> value when entering a location. A defined list of location options is suggested.
<div class="info-box">
<p class="fa-p">
<i class="fa fa-info-circle"></i>Technicians will be able to specify <em>any</em> value when entering a location. A defined list of location options is suggested.
</p>
</div>
</div>
<div id="Config_Location_Restricted">
<div style="padding: 0.7em 0.7em;" class="ui-state-highlight ui-corner-all">
<i class="fa fa-info-circle information"></i>&nbsp;Technicians are restricted to select a location from the defined list.
<div class="info-box">
<p class="fa-p">
<i class="fa fa-info-circle"></i>Technicians are restricted to select a location from the defined list.
</p>
</div>
</div>
<script type="text/javascript">
@@ -117,7 +125,6 @@
modal: true,
autoOpen: false,
width: 350,
height: 420,
buttons: {
"Save Changes": saveChanges,
Cancel: cancel
@@ -245,7 +252,6 @@
modal: true,
autoOpen: false,
width: 350,
height: 420,
buttons: {
"Build Automatic List": function () {
$('#Config_Location_ListImport_Dialog_AutomaticList').val('True').closest('form').submit();
@@ -124,17 +124,19 @@ WriteLiteral(" id=\"Config_Location_Unrestricted\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" style=\"padding: 0.7em 0.7em;\"");
WriteLiteral(" class=\"info-box\"");
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
WriteLiteral(">\r\n <p");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa-p\"");
WriteLiteral(" class=\"fa fa-info-circle information\"");
WriteLiteral(">\r\n <i");
WriteLiteral("></i>&nbsp;Technicians will be able to specify <em>any</em> value when entering a" +
" location. A selection of locations used historically will be offered.\r\n " +
" </div>\r\n </div>\r\n");
WriteLiteral(" class=\"fa fa-info-circle\"");
WriteLiteral("></i>Technicians will be able to specify <em>any</em> value when entering a locat" +
"ion. A selection of locations used historically will be offered.\r\n " +
" </p>\r\n </div>\r\n </div>\r\n");
WriteLiteral(" <div");
@@ -183,13 +185,13 @@ WriteLiteral(" class=\"none\"");
WriteLiteral(">\r\n");
#line 29 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
#line 31 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
#line default
#line hidden
#line 29 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
#line 31 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
foreach (var loc in Model.LocationList)
{
@@ -201,7 +203,7 @@ WriteLiteral(" <li");
WriteLiteral(" data-location=\"");
#line 31 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
#line 33 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
Write(loc);
@@ -212,7 +214,7 @@ WriteLiteral("\"");
WriteLiteral(">");
#line 31 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
#line 33 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
Write(loc);
@@ -225,7 +227,7 @@ WriteLiteral(" class=\"fa fa-times-circle remove\"");
WriteLiteral("></i></li>\r\n");
#line 32 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
#line 34 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
}
@@ -254,14 +256,14 @@ WriteLiteral(">Add</a>\r\n </div>\r\n
WriteLiteral(" id=\"Config_Location_List_Dialog_Form\"");
WriteAttribute("action", Tuple.Create(" action=\"", 2447), Tuple.Create("\"", 2534)
WriteAttribute("action", Tuple.Create(" action=\"", 2451), Tuple.Create("\"", 2538)
#line 39 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
, Tuple.Create(Tuple.Create("", 2456), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.JobPreferences.UpdateLocationList(null, redirect: true))
#line 41 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
, Tuple.Create(Tuple.Create("", 2460), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.JobPreferences.UpdateLocationList(null, redirect: true))
#line default
#line hidden
, 2456), false)
, 2460), false)
);
WriteLiteral(" method=\"post\"");
@@ -278,14 +280,14 @@ WriteLiteral(">\r\n <form");
WriteLiteral(" id=\"Config_Location_ListImport_Dialog_Form\"");
WriteAttribute("action", Tuple.Create(" action=\"", 2766), Tuple.Create("\"", 2853)
WriteAttribute("action", Tuple.Create(" action=\"", 2770), Tuple.Create("\"", 2857)
#line 42 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
, Tuple.Create(Tuple.Create("", 2775), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.JobPreferences.ImportLocationList(null, redirect: true))
#line 44 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
, Tuple.Create(Tuple.Create("", 2779), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.JobPreferences.ImportLocationList(null, redirect: true))
#line default
#line hidden
, 2775), false)
, 2779), false)
);
WriteLiteral(" method=\"post\"");
@@ -327,15 +329,18 @@ WriteLiteral(" name=\"LocationList\"");
WriteLiteral("></textarea>\r\n <div");
WriteLiteral(" style=\"padding: 0.7em 0.7em; margin-top: 10px;\"");
WriteLiteral(" class=\"info-box\"");
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
WriteLiteral(">\r\n <p");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa-p\"");
WriteLiteral(" class=\"fa fa-info-circle information\"");
WriteLiteral(">\r\n <i");
WriteLiteral(@"></i>&nbsp;Enter multiple locations separated by <code>&lt;new line&gt;</code>, commas (<code>,</code>) or semicolons (<code>;</code>).
WriteLiteral(" class=\"fa fa-info-circle\"");
WriteLiteral(@"></i>Enter multiple locations separated by <code>&lt;new line&gt;</code>, commas (<code>,</code>) or semicolons (<code>;</code>).
</p>
</div>
</form>
</div>
@@ -348,17 +353,19 @@ WriteLiteral(" id=\"Config_Location_Optional\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" style=\"padding: 0.7em 0.7em;\"");
WriteLiteral(" class=\"info-box\"");
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
WriteLiteral(">\r\n <p");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa-p\"");
WriteLiteral(" class=\"fa fa-info-circle information\"");
WriteLiteral(">\r\n <i");
WriteLiteral("></i>&nbsp;Technicians will be able to specify <em>any</em> value when entering a" +
" location. A defined list of location options is suggested.\r\n " +
" </div>\r\n </div>\r\n");
WriteLiteral(" class=\"fa fa-info-circle\"");
WriteLiteral("></i>Technicians will be able to specify <em>any</em> value when entering a locat" +
"ion. A defined list of location options is suggested.\r\n <" +
"/p>\r\n </div>\r\n </div>\r\n");
WriteLiteral(" <div");
@@ -366,16 +373,18 @@ WriteLiteral(" id=\"Config_Location_Restricted\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" style=\"padding: 0.7em 0.7em;\"");
WriteLiteral(" class=\"info-box\"");
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
WriteLiteral(">\r\n <p");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa-p\"");
WriteLiteral(" class=\"fa fa-info-circle information\"");
WriteLiteral(">\r\n <i");
WriteLiteral("></i>&nbsp;Technicians are restricted to select a location from the defined list." +
"\r\n </div>\r\n </div>\r\n");
WriteLiteral(" class=\"fa fa-info-circle\"");
WriteLiteral("></i>Technicians are restricted to select a location from the defined list.\r\n " +
" </p>\r\n </div>\r\n </div>\r\n");
WriteLiteral(" <script");
@@ -386,7 +395,7 @@ WriteLiteral(">\r\n $(function () {\r\n
" null,\r\n \'");
#line 69 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
#line 77 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
Write(Url.Action(MVC.API.JobPreferences.UpdateLocationMode()));
@@ -423,94 +432,93 @@ WriteLiteral("\',\r\n \'LocationMode\');\r\n\r\n
"\n resizable: false,\r\n " +
" modal: true,\r\n autoOpen: false,\r\n" +
" width: 350,\r\n " +
" height: 420,\r\n buttons: {\r\n " +
" \"Save Changes\": saveChanges,\r\n " +
" Cancel: cancel\r\n }\r\n " +
" });\r\n\r\n dialog.on(\'click\'" +
", \'.remove\', remove);\r\n\r\n list = $(\'#Config_Locat" +
"ion_List_Dialog_List\');\r\n noList = $(\'#Config_Loc" +
"ation_List_Dialog_None\');\r\n\r\n textAdd = $(\'#Confi" +
"g_Location_List_Dialog_TextAdd\');\r\n\r\n textAdd.wat" +
"ermark(\'Location\');\r\n textAdd.keydown(function (e" +
") {\r\n if (e.keyCode == 13)\r\n " +
" add();\r\n });\r\n\r\n " +
" $(\'#Config_Location_List_Dialog_Add\').click(add);\r\n " +
" }\r\n\r\n dialog.dialog(\'open\');\r\n\r\n" +
" updateNoList();\r\n return " +
"false;\r\n }\r\n\r\n function cancel() {" +
"\r\n $(this).dialog(\"close\");\r\n\r\n " +
" list.find(\'li\').each(function () {\r\n $this " +
"= $(this);\r\n if ($this.is(\'[data-status=\"new\"]\'))" +
" {\r\n $this.remove();\r\n " +
" } else {\r\n if ($this.is(\'[data-statu" +
"s=\"removed\"]\')) {\r\n $this.show();\r\n " +
" $this.attr(\'data-status\', \'\')\r\n " +
" }\r\n }\r\n " +
" });\r\n }\r\n\r\n function remove" +
"() {\r\n $this = $(this).closest(\'li\');\r\n\r\n " +
" if ($this.is(\'[data-status=\"new\"]\')) {\r\n " +
" $this.remove();\r\n } else {\r\n " +
" $this.attr(\'data-status\', \'removed\').hide();\r\n " +
" }\r\n\r\n updateNoList();\r\n " +
" }\r\n\r\n function add() {\r\n\r\n " +
"var value = textAdd.val();\r\n\r\n // Trim\r\n " +
" value = jQuery.trim(value);\r\n\r\n if (!v" +
"alue) {\r\n alert(\'Enter a location to be added\');\r" +
"\n return;\r\n }\r\n\r\n " +
" // Already Exists\r\n var existi" +
"ngValues = list.find(\'li[data-location]\').filter(\'[data-status!=\"removed\"]\').map" +
"(function () { return $(this).attr(\'data-location\') }).get();\r\n " +
" if (jQuery.inArray(value, existingValues) >= 0) {\r\n " +
" alert(\'That item already exists in the list\');\r\n " +
" return;\r\n }\r\n\r\n " +
" // Add Item\r\n var li = $(\'<li>\')\r\n " +
" .append($(\'<span>\').text(value))\r\n " +
" .append($(\'<i>\').addClass(\'fa fa-times-circle remove\'))\r\n " +
" .attr(\'data-location\', value)\r\n .attr" +
"(\'data-status\', \'new\');\r\n\r\n list.append(li);\r\n\r\n " +
" textAdd.focus();\r\n\r\n updateNoL" +
"ist();\r\n }\r\n\r\n function updateNoLi" +
"st() {\r\n if (list.find(\'li:visible\').length > 0)\r\n " +
" noList.hide();\r\n else\r\n " +
" noList.show();\r\n }\r\n\r\n " +
" function saveChanges() {\r\n var fo" +
"rm = $(\'#Config_Location_List_Dialog_Form\').empty();\r\n\r\n " +
" list.find(\'li[data-status!=\"removed\"]\').each(function () {\r\n " +
" var location = $(this).attr(\'data-location\');\r\n\r\n " +
" form.append($(\'<input>\').attr({\r\n " +
" \'name\': \'LocationList\',\r\n \'type\': \'hidd" +
"en\'\r\n }).val(location));\r\n\r\n " +
" }).get();\r\n\r\n form.submit();\r\n\r\n " +
" dialog.dialog(\"disable\");\r\n dialog.dial" +
"og(\"option\", \"buttons\", null);\r\n }\r\n\r\n " +
" // Import\r\n var dialogImport, formImport;\r\n\r\n " +
" $(\'#Config_Location_List_ImportButton\').click(showDialogImport)" +
";\r\n\r\n function showDialogImport() {\r\n " +
" if (!dialogImport) {\r\n dialogImport = $(\'" +
"#Config_Location_ListImport_Dialog\').dialog({\r\n " +
" resizable: false,\r\n modal: true,\r\n " +
" autoOpen: false,\r\n " +
" width: 350,\r\n height: 420,\r\n " +
" buttons: {\r\n \"Build " +
"Automatic List\": function () {\r\n $(\'#" +
"Config_Location_ListImport_Dialog_AutomaticList\').val(\'True\').closest(\'form\').su" +
"bmit();\r\n dialogImport.dialog(\"disabl" +
"e\");\r\n dialogImport.dialog(\"option\", " +
"\"buttons\", null);\r\n },\r\n " +
" \"Import List\": function () {\r\n " +
" $(\'#Config_Location_ListImport_Dialog_LocationList\').closest(\'f" +
"orm\').submit();\r\n dialogImport.dialog" +
"(\"disable\");\r\n dialogImport.dialog(\"o" +
"ption\", \"buttons\", null);\r\n },\r\n " +
" Cancel: function () {\r\n " +
" dialogImport.dialog(\"close\");\r\n " +
" }\r\n }\r\n " +
" });\r\n }\r\n\r\n dialogImpor" +
"t.dialog(\'open\');\r\n\r\n return false;\r\n " +
" }\r\n\r\n });\r\n </script>\r\n");
" buttons: {\r\n \"Save Changes\": saveCha" +
"nges,\r\n Cancel: cancel\r\n " +
" }\r\n });\r\n\r\n " +
" dialog.on(\'click\', \'.remove\', remove);\r\n\r\n " +
" list = $(\'#Config_Location_List_Dialog_List\');\r\n " +
" noList = $(\'#Config_Location_List_Dialog_None\');\r\n\r\n " +
" textAdd = $(\'#Config_Location_List_Dialog_TextAdd\');\r\n\r\n " +
" textAdd.watermark(\'Location\');\r\n " +
" textAdd.keydown(function (e) {\r\n if (e.key" +
"Code == 13)\r\n add();\r\n " +
" });\r\n\r\n $(\'#Config_Location_List_Dia" +
"log_Add\').click(add);\r\n }\r\n\r\n " +
" dialog.dialog(\'open\');\r\n\r\n updateNoList();\r\n " +
" return false;\r\n }\r\n\r\n " +
" function cancel() {\r\n $(this).dialog(\"clos" +
"e\");\r\n\r\n list.find(\'li\').each(function () {\r\n " +
" $this = $(this);\r\n if ($t" +
"his.is(\'[data-status=\"new\"]\')) {\r\n $this.remo" +
"ve();\r\n } else {\r\n " +
" if ($this.is(\'[data-status=\"removed\"]\')) {\r\n " +
" $this.show();\r\n $this.attr(\'data" +
"-status\', \'\')\r\n }\r\n " +
" }\r\n });\r\n }\r\n\r\n " +
" function remove() {\r\n $this = $(this)." +
"closest(\'li\');\r\n\r\n if ($this.is(\'[data-status=\"new\"]\'" +
")) {\r\n $this.remove();\r\n " +
" } else {\r\n $this.attr(\'data-status\', \'removed\'" +
").hide();\r\n }\r\n\r\n updateNo" +
"List();\r\n }\r\n\r\n function add() {\r\n" +
"\r\n var value = textAdd.val();\r\n\r\n " +
" // Trim\r\n value = jQuery.trim(value);\r\n\r\n " +
" if (!value) {\r\n alert(\'En" +
"ter a location to be added\');\r\n return;\r\n " +
" }\r\n\r\n // Already Exists\r\n " +
" var existingValues = list.find(\'li[data-location]\').filter(\'" +
"[data-status!=\"removed\"]\').map(function () { return $(this).attr(\'data-location\'" +
") }).get();\r\n if (jQuery.inArray(value, existingValue" +
"s) >= 0) {\r\n alert(\'That item already exists in t" +
"he list\');\r\n return;\r\n " +
" }\r\n\r\n // Add Item\r\n var l" +
"i = $(\'<li>\')\r\n .append($(\'<span>\').text(value))\r" +
"\n .append($(\'<i>\').addClass(\'fa fa-times-circle r" +
"emove\'))\r\n .attr(\'data-location\', value)\r\n " +
" .attr(\'data-status\', \'new\');\r\n\r\n " +
" list.append(li);\r\n\r\n textAdd.focus();\r\n\r\n " +
" updateNoList();\r\n }\r\n\r\n " +
" function updateNoList() {\r\n if (list.find(" +
"\'li:visible\').length > 0)\r\n noList.hide();\r\n " +
" else\r\n noList.show();\r\n " +
" }\r\n\r\n function saveChanges() {\r\n " +
" var form = $(\'#Config_Location_List_Dialog_Form\').empty(" +
");\r\n\r\n list.find(\'li[data-status!=\"removed\"]\').each(f" +
"unction () {\r\n var location = $(this).attr(\'data-" +
"location\');\r\n\r\n form.append($(\'<input>\').attr({\r\n" +
" \'name\': \'LocationList\',\r\n " +
" \'type\': \'hidden\'\r\n }).val(locati" +
"on));\r\n\r\n }).get();\r\n\r\n fo" +
"rm.submit();\r\n\r\n dialog.dialog(\"disable\");\r\n " +
" dialog.dialog(\"option\", \"buttons\", null);\r\n " +
" }\r\n\r\n // Import\r\n var dialog" +
"Import, formImport;\r\n\r\n $(\'#Config_Location_List_ImportBu" +
"tton\').click(showDialogImport);\r\n\r\n function showDialogIm" +
"port() {\r\n if (!dialogImport) {\r\n " +
" dialogImport = $(\'#Config_Location_ListImport_Dialog\').dialog({\r\n " +
" resizable: false,\r\n " +
" modal: true,\r\n autoOpen: false,\r\n " +
" width: 350,\r\n " +
" buttons: {\r\n \"Build Automatic List\": fun" +
"ction () {\r\n $(\'#Config_Location_List" +
"Import_Dialog_AutomaticList\').val(\'True\').closest(\'form\').submit();\r\n " +
" dialogImport.dialog(\"disable\");\r\n " +
" dialogImport.dialog(\"option\", \"buttons\", null);\r\n " +
" },\r\n " +
" \"Import List\": function () {\r\n $(\'" +
"#Config_Location_ListImport_Dialog_LocationList\').closest(\'form\').submit();\r\n " +
" dialogImport.dialog(\"disable\");\r\n " +
" dialogImport.dialog(\"option\", \"buttons\", n" +
"ull);\r\n },\r\n " +
" Cancel: function () {\r\n di" +
"alogImport.dialog(\"close\");\r\n }\r\n " +
" }\r\n });\r\n " +
" }\r\n\r\n dialogImport.dialog(\'open\');\r\n\r" +
"\n return false;\r\n }\r\n\r\n " +
" });\r\n </script>\r\n");
#line 274 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
#line 280 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
}
else
{
@@ -519,14 +527,14 @@ WriteLiteral("\',\r\n \'LocationMode\');\r\n\r\n
#line default
#line hidden
#line 277 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
#line 283 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
Write(Model.LocationModeOptions().First(o => o.Key == Model.LocationMode.ToString()).Value);
#line default
#line hidden
#line 277 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
#line 283 "..\..\Areas\Config\Views\JobPreferences\Parts\Locations.cshtml"
}
@@ -1,7 +1,7 @@
@model Disco.Web.Areas.Config.Models.JobQueue.IndexModel
@{
Authorization.Require(Claims.Config.JobQueue.Show);
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Job Queues", MVC.Config.JobQueue.Index(null));
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Job Queues");
}
<div id="Config_JobQueues_Index">
@if (Model.Tokens.Count == 0)
@@ -48,7 +48,7 @@ namespace Disco.Web.Areas.Config.Views.JobQueue
#line 2 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
Authorization.Require(Claims.Config.JobQueue.Show);
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Job Queues", MVC.Config.JobQueue.Index(null));
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Job Queues");
#line default
@@ -114,37 +114,37 @@ WriteLiteral(">\r\n <tr>\r\n <th>Name</th>\r\n
#line hidden
WriteLiteral(" <tr>\r\n <td>\r\n <a");
WriteAttribute("href", Tuple.Create(" href=\"", 851), Tuple.Create("\"", 914)
WriteAttribute("href", Tuple.Create(" href=\"", 818), Tuple.Create("\"", 881)
#line 26 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
, Tuple.Create(Tuple.Create("", 858), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.JobQueue.Index(item.JobQueue.Id))
, Tuple.Create(Tuple.Create("", 825), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.JobQueue.Index(item.JobQueue.Id))
#line default
#line hidden
, 858), false)
, 825), false)
);
WriteLiteral(">\r\n <i");
WriteAttribute("class", Tuple.Create(" class=\"", 948), Tuple.Create("\"", 1019)
, Tuple.Create(Tuple.Create("", 956), Tuple.Create("fa", 956), true)
, Tuple.Create(Tuple.Create(" ", 958), Tuple.Create("fa-", 959), true)
WriteAttribute("class", Tuple.Create(" class=\"", 915), Tuple.Create("\"", 986)
, Tuple.Create(Tuple.Create("", 923), Tuple.Create("fa", 923), true)
, Tuple.Create(Tuple.Create(" ", 925), Tuple.Create("fa-", 926), true)
#line 27 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
, Tuple.Create(Tuple.Create("", 962), Tuple.Create<System.Object, System.Int32>(item.JobQueue.Icon
, Tuple.Create(Tuple.Create("", 929), Tuple.Create<System.Object, System.Int32>(item.JobQueue.Icon
#line default
#line hidden
, 962), false)
, Tuple.Create(Tuple.Create(" ", 983), Tuple.Create("fa-lg", 984), true)
, Tuple.Create(Tuple.Create(" ", 989), Tuple.Create("d-", 990), true)
, 929), false)
, Tuple.Create(Tuple.Create(" ", 950), Tuple.Create("fa-lg", 951), true)
, Tuple.Create(Tuple.Create(" ", 956), Tuple.Create("d-", 957), true)
#line 27 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
, Tuple.Create(Tuple.Create("", 992), Tuple.Create<System.Object, System.Int32>(item.JobQueue.IconColour
, Tuple.Create(Tuple.Create("", 959), Tuple.Create<System.Object, System.Int32>(item.JobQueue.IconColour
#line default
#line hidden
, 992), false)
, 959), false)
);
WriteLiteral("></i>\r\n");
@@ -201,27 +201,27 @@ WriteLiteral(">&lt;none&gt;</span>\r\n");
#line hidden
WriteLiteral(" </td>\r\n <td>\r\n <i");
WriteAttribute("class", Tuple.Create(" class=\"", 1574), Tuple.Create("\"", 1642)
, Tuple.Create(Tuple.Create("", 1582), Tuple.Create("fa", 1582), true)
, Tuple.Create(Tuple.Create(" ", 1584), Tuple.Create("d-priority-", 1585), true)
WriteAttribute("class", Tuple.Create(" class=\"", 1541), Tuple.Create("\"", 1609)
, Tuple.Create(Tuple.Create("", 1549), Tuple.Create("fa", 1549), true)
, Tuple.Create(Tuple.Create(" ", 1551), Tuple.Create("d-priority-", 1552), true)
#line 41 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
, Tuple.Create(Tuple.Create("", 1596), Tuple.Create<System.Object, System.Int32>(item.JobQueue.Priority.ToString().ToLower()
, Tuple.Create(Tuple.Create("", 1563), Tuple.Create<System.Object, System.Int32>(item.JobQueue.Priority.ToString().ToLower()
#line default
#line hidden
, 1596), false)
, 1563), false)
);
WriteAttribute("title", Tuple.Create(" title=\"", 1643), Tuple.Create("\"", 1696)
WriteAttribute("title", Tuple.Create(" title=\"", 1610), Tuple.Create("\"", 1663)
#line 41 "..\..\Areas\Config\Views\JobQueue\Index.cshtml"
, Tuple.Create(Tuple.Create("", 1651), Tuple.Create<System.Object, System.Int32>(item.JobQueue.Priority.ToString()
, Tuple.Create(Tuple.Create("", 1618), Tuple.Create<System.Object, System.Int32>(item.JobQueue.Priority.ToString()
#line default
#line hidden
, 1651), false)
, Tuple.Create(Tuple.Create(" ", 1687), Tuple.Create("Priority", 1688), true)
, 1618), false)
, Tuple.Create(Tuple.Create(" ", 1654), Tuple.Create("Priority", 1655), true)
);
WriteLiteral("></i>\r\n </td>\r\n <td>\r\n");
@@ -618,8 +618,10 @@
})();
</script>
}
<div style="padding: 0.7em 0.7em;" class="ui-state-highlight ui-corner-all">
<i class="fa fa-info-circle information"></i>&nbsp;When jobs of these types are created, they will automatically be added into this queue.
<div class="info-box">
<p class="fa-p">
<i class="fa fa-info-circle"></i>When jobs of these types are created, they will automatically be added into this queue.
</p>
</div>
</td>
</tr>
@@ -1781,20 +1781,22 @@ WriteLiteral(" <script>\r\n (function
#line hidden
WriteLiteral(" <div");
WriteLiteral(" style=\"padding: 0.7em 0.7em;\"");
WriteLiteral(" class=\"info-box\"");
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
WriteLiteral(">\r\n <p");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa-p\"");
WriteLiteral(" class=\"fa fa-info-circle information\"");
WriteLiteral(">\r\n <i");
WriteLiteral("></i>&nbsp;When jobs of these types are created, they will automatically be added" +
" into this queue.\r\n </div>\r\n </td>\r\n </tr>\r\n " +
" </table>\r\n</div>\r\n");
WriteLiteral(" class=\"fa fa-info-circle\"");
WriteLiteral("></i>When jobs of these types are created, they will automatically be added into " +
"this queue.\r\n </p>\r\n </div>\r\n </td>" +
"\r\n </tr>\r\n </table>\r\n</div>\r\n");
#line 628 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
#line 630 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
if (canDelete || canShowJobs)
{
@@ -1808,13 +1810,13 @@ WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n");
#line 631 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
#line 633 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
#line default
#line hidden
#line 631 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
#line 633 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
if (canDelete)
{
@@ -1822,14 +1824,14 @@ WriteLiteral(">\r\n");
#line default
#line hidden
#line 633 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
#line 635 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
Write(Html.ActionLinkButton("Delete", MVC.API.JobQueue.Delete(Model.Token.JobQueue.Id, true), "Config_JobQueues_Actions_Delete_Button"));
#line default
#line hidden
#line 633 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
#line 635 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
@@ -1884,7 +1886,7 @@ WriteLiteral(@">
");
#line 670 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
#line 672 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
}
@@ -1893,7 +1895,7 @@ WriteLiteral(@">
WriteLiteral(" ");
#line 671 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
#line 673 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
if (canShowJobs)
{
@@ -1901,14 +1903,14 @@ WriteLiteral(" ");
#line default
#line hidden
#line 673 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
#line 675 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
Write(Html.ActionLinkButton(string.Format("Show {0} job{1}", Model.OpenJobCount, (Model.OpenJobCount == 1 ? null : "s")), MVC.Job.Queue(Model.Token.JobQueue.Id), "Config_JobQueues_Actions_ShowJobs_Button"));
#line default
#line hidden
#line 673 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
#line 675 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
}
@@ -1918,7 +1920,7 @@ WriteLiteral(" ");
WriteLiteral(" </div>\r\n");
#line 676 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
#line 678 "..\..\Areas\Config\Views\JobQueue\Show.cshtml"
}
#line default
@@ -76,8 +76,10 @@
}
@if (Model.OrganisationAddresses.Count > 1)
{
<div id="messageMultiSiteMode" style="padding: 0.7em 0.7em; margin-top: 20px;" class="ui-state-highlight ui-corner-all">
<i class="fa fa-info-circle information"></i>&nbsp;Multi-Site mode is recommended where multiple addresses are configured.
<div id="messageMultiSiteMode" class="info-box">
<p class="fa-p">
<i class="fa fa-info-circle"></i>Multi-Site mode is recommended where multiple addresses are configured.
</p>
</div>
}
</td>
@@ -299,71 +301,71 @@
var dialog = $("#dialogConfirmRemove");
var buttons = dialog.dialog("option", "buttons");
buttons['Delete'] = function () { $(this).dialog("disable"); window.location.href = '@(Url.Action(MVC.API.System.DeleteOrganisationAddress()))' + '?redirect=true&id=' + id; };
var buttons = dialog.dialog("option", "buttons", buttons);
var buttons = dialog.dialog("option", "buttons", buttons);
dialog.dialog('open');
}
});
var editAddress = function (element) {
var id = '', shortName = '', name = '', address = '', suburb = '', postcode = '', state = '', country = '', phoneNumber = '', faxNumber = '';
var dialog = $('#dialogEdit');
if (element) {
id = element.attr('data-addressid');
shortName = element.find('.shortName').text();
name = element.find('.name').text();
address = element.find('.address').text();
suburb = element.find('.suburb').text();
postcode = element.find('.postcode').text();
state = element.find('.state').text();
country = element.find('.country').text();
phoneNumber = element.find('.phoneNumber').text();
faxNumber = element.find('.faxNumber').text();
dialog.attr('data-addressid', id);
dialog.dialog('option', 'title', 'Edit Address: ' + name);
} else {
dialog.attr('data-addressid', null);
dialog.dialog('option', 'title', 'Create Address');
}
$('#editShortName').val(shortName);
$('#editName').val(name);
$('#editAddress').val(address);
$('#editSuburb').val(suburb);
$('#editPostcode').val(postcode);
$('#editState').val(state);
$('#editCountry').val(country);
$('#editPhoneNumber').val(phoneNumber);
$('#editFaxNumber').val(faxNumber);
dialog.dialog('open');
}
});
var editAddress = function (element) {
var id = '', shortName = '', name = '', address = '', suburb = '', postcode = '', state = '', country = '', phoneNumber = '', faxNumber = '';
var dialog = $('#dialogEdit');
if (element) {
id = element.attr('data-addressid');
shortName = element.find('.shortName').text();
name = element.find('.name').text();
address = element.find('.address').text();
suburb = element.find('.suburb').text();
postcode = element.find('.postcode').text();
state = element.find('.state').text();
country = element.find('.country').text();
phoneNumber = element.find('.phoneNumber').text();
faxNumber = element.find('.faxNumber').text();
dialog.attr('data-addressid', id);
dialog.dialog('option', 'title', 'Edit Address: ' + name);
} else {
dialog.attr('data-addressid', null);
dialog.dialog('option', 'title', 'Create Address');
}
$('#organisationAddresses').find('i.edit').click(function () {
var componentRow = $(this).closest('tr');
editAddress(componentRow);
});
$('#editShortName').val(shortName);
$('#editName').val(name);
$('#editAddress').val(address);
$('#editSuburb').val(suburb);
$('#editPostcode').val(postcode);
$('#editState').val(state);
$('#editCountry').val(country);
$('#editPhoneNumber').val(phoneNumber);
$('#editFaxNumber').val(faxNumber);
dialog.dialog('open');
}
$('#createAddress').click(function () {
editAddress();
return false;
});
$('#organisationAddresses').find('i.edit').click(function () {
var componentRow = $(this).closest('tr');
editAddress(componentRow);
});
var submitAddress = function () {
var dialog = $('#dialogEdit');
var data = {
Id: dialog.attr('data-addressid'),
ShortName: $('#editShortName').val(),
Name: $('#editName').val(),
Address: $('#editAddress').val(),
Suburb: $('#editSuburb').val(),
Postcode: $('#editPostcode').val(),
State: $('#editState').val(),
Country: $('#editCountry').val(),
PhoneNumber: $('#editPhoneNumber').val(),
FaxNumber: $('#editFaxNumber').val()
};
$('#createAddress').click(function () {
editAddress();
return false;
});
var submitAddress = function () {
var dialog = $('#dialogEdit');
var data = {
Id: dialog.attr('data-addressid'),
ShortName: $('#editShortName').val(),
Name: $('#editName').val(),
Address: $('#editAddress').val(),
Suburb: $('#editSuburb').val(),
Postcode: $('#editPostcode').val(),
State: $('#editState').val(),
Country: $('#editCountry').val(),
PhoneNumber: $('#editPhoneNumber').val(),
FaxNumber: $('#editFaxNumber').val()
};
$.ajax({
url: '@(Url.Action(MVC.API.System.UpdateOrganisationAddress()))',
$.ajax({
url: '@(Url.Action(MVC.API.System.UpdateOrganisationAddress()))',
dataType: 'json',
data: data,
type: 'post',
@@ -382,21 +384,21 @@
});
};
$("#dialogEdit").dialog({
resizable: false,
modal: true,
autoOpen: false,
width: 350,
buttons: {
"Save": function () {
submitAddress();
},
Cancel: function () {
$(this).dialog("close");
$("#dialogEdit").dialog({
resizable: false,
modal: true,
autoOpen: false,
width: 350,
buttons: {
"Save": function () {
submitAddress();
},
Cancel: function () {
$(this).dialog("close");
}
}
}
});
});
});
});
</script>
}
@@ -359,19 +359,21 @@ WriteLiteral(" <div");
WriteLiteral(" id=\"messageMultiSiteMode\"");
WriteLiteral(" style=\"padding: 0.7em 0.7em; margin-top: 20px;\"");
WriteLiteral(" class=\"info-box\"");
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
WriteLiteral(">\r\n <p");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa-p\"");
WriteLiteral(" class=\"fa fa-info-circle information\"");
WriteLiteral(">\r\n <i");
WriteLiteral("></i>&nbsp;Multi-Site mode is recommended where multiple addresses are configured" +
".\r\n </div>\r\n");
WriteLiteral(" class=\"fa fa-info-circle\"");
WriteLiteral("></i>Multi-Site mode is recommended where multiple addresses are configured.\r\n " +
" </p>\r\n </div>\r\n");
#line 82 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 84 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
}
@@ -384,13 +386,13 @@ WriteLiteral(" style=\"width: 160px\"");
WriteLiteral(">Addresses:\r\n");
#line 87 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 89 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line default
#line hidden
#line 87 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 89 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
if (canConfigAddresses)
{
@@ -412,7 +414,7 @@ WriteLiteral(" class=\"button\"");
WriteLiteral(">Create</a>\r\n");
#line 92 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 94 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
}
@@ -421,13 +423,13 @@ WriteLiteral(">Create</a>\r\n");
WriteLiteral(" </th>\r\n <td>\r\n");
#line 95 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 97 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line default
#line hidden
#line 95 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 97 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
if (Model.OrganisationAddresses.Count > 0)
{
@@ -444,13 +446,13 @@ WriteLiteral(">\r\n <tr>\r\n <
" </tr>\r\n");
#line 105 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 107 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line default
#line hidden
#line 105 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 107 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
foreach (var item in Model.OrganisationAddresses)
{
@@ -462,7 +464,7 @@ WriteLiteral(" <tr");
WriteLiteral(" data-addressid=\"");
#line 107 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 109 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
Write(item.Id);
@@ -478,7 +480,7 @@ WriteLiteral(" class=\"name\"");
WriteLiteral(">");
#line 109 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 111 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
Write(Html.DisplayFor(modelItem => item.Name));
@@ -491,7 +493,7 @@ WriteLiteral(" class=\"shortName\"");
WriteLiteral(">");
#line 109 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 111 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
Write(Html.DisplayFor(modelItem => item.ShortName));
@@ -505,7 +507,7 @@ WriteLiteral(" class=\"address\"");
WriteLiteral(">");
#line 112 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 114 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
Write(Html.DisplayFor(modelItem => item.Address));
@@ -518,7 +520,7 @@ WriteLiteral(" class=\"suburb\"");
WriteLiteral(">");
#line 113 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 115 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
Write(Html.DisplayFor(modelItem => item.Suburb));
@@ -531,7 +533,7 @@ WriteLiteral(" class=\"postcode\"");
WriteLiteral(">");
#line 113 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 115 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
Write(Html.DisplayFor(modelItem => item.Postcode));
@@ -544,7 +546,7 @@ WriteLiteral(" class=\"state\"");
WriteLiteral(">");
#line 114 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 116 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
Write(Html.DisplayFor(modelItem => item.State));
@@ -557,7 +559,7 @@ WriteLiteral(" class=\"country\"");
WriteLiteral(">");
#line 114 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 116 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
Write(Html.DisplayFor(modelItem => item.Country));
@@ -574,7 +576,7 @@ WriteLiteral(" class=\"phoneNumber\"");
WriteLiteral(">");
#line 115 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 117 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
Write(Html.DisplayFor(modelItem => item.PhoneNumber));
@@ -591,7 +593,7 @@ WriteLiteral(" class=\"faxNumber\"");
WriteLiteral(">");
#line 116 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 118 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
Write(Html.DisplayFor(modelItem => item.FaxNumber));
@@ -601,13 +603,13 @@ WriteLiteral("</span>\r\n </td>\r\n
"td>\r\n");
#line 119 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 121 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line default
#line hidden
#line 119 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 121 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
if (canConfigAddresses)
{
@@ -631,7 +633,7 @@ WriteLiteral(" title=\"Delete Address\"");
WriteLiteral("></i>\r\n");
#line 122 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 124 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
}
@@ -640,7 +642,7 @@ WriteLiteral("></i>\r\n");
WriteLiteral(" </td>\r\n </tr>\r\n");
#line 125 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 127 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
}
@@ -649,7 +651,7 @@ WriteLiteral(" </td>\r\n
WriteLiteral(" </table>\r\n");
#line 127 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 129 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
}
else
{
@@ -664,7 +666,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">No Addresses Stored</span>\r\n");
#line 131 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 133 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
}
@@ -673,7 +675,7 @@ WriteLiteral(">No Addresses Stored</span>\r\n");
WriteLiteral(" </td>\r\n </tr>\r\n </table>\r\n</div>\r\n");
#line 136 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 138 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
if (Authorization.Has(Claims.Config.Organisation.ConfigureLogo))
{
@@ -689,13 +691,13 @@ WriteLiteral(" title=\"Update Organisation Logo\"");
WriteLiteral(">\r\n");
#line 139 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 141 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line default
#line hidden
#line 139 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 141 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
using (Html.BeginForm(MVC.API.System.OrganisationLogo(true, null, null), FormMethod.Post, new { enctype = "multipart/form-data" }))
{
@@ -764,7 +766,7 @@ WriteLiteral(" class=\"field-validation-valid field-validation-error\"");
WriteLiteral(">* Required</span>\r\n </div>\r\n </div>\r\n");
#line 154 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 156 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
}
@@ -805,14 +807,14 @@ WriteLiteral(">\r\n $(function () {\r\n var button = $(\'#butt
" }\r\n });\r\n });\r\n </script>\r\n");
#line 201 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 203 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
}
#line default
#line hidden
#line 202 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 204 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
if (canConfigAddresses)
{
@@ -940,51 +942,54 @@ WriteLiteral(@">
buttons['Delete'] = function () { $(this).dialog(""disable""); window.location.href = '");
#line 301 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 303 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
Write(Url.Action(MVC.API.System.DeleteOrganisationAddress()));
#line default
#line hidden
WriteLiteral("\' + \'?redirect=true&id=\' + id; };\r\n var buttons = dialog.dialog(\"o" +
"ption\", \"buttons\", buttons);\r\n dialog.dialog(\'open\');\r\n " +
" }\r\n });\r\n\r\n var editAddress = function (element) {\r\n " +
"var id = \'\', shortName = \'\', name = \'\', address = \'\', suburb = \'\', postcode = \'\'" +
", state = \'\', country = \'\', phoneNumber = \'\', faxNumber = \'\';\r\n var d" +
"ialog = $(\'#dialogEdit\');\r\n if (element) {\r\n id = elem" +
"ent.attr(\'data-addressid\');\r\n shortName = element.find(\'.shortNam" +
"e\').text();\r\n name = element.find(\'.name\').text();\r\n " +
" address = element.find(\'.address\').text();\r\n suburb = element." +
"find(\'.suburb\').text();\r\n postcode = element.find(\'.postcode\').te" +
"xt();\r\n state = element.find(\'.state\').text();\r\n c" +
"ountry = element.find(\'.country\').text();\r\n phoneNumber = element" +
".find(\'.phoneNumber\').text();\r\n faxNumber = element.find(\'.faxNum" +
"ber\').text();\r\n dialog.attr(\'data-addressid\', id);\r\n " +
" dialog.dialog(\'option\', \'title\', \'Edit Address: \' + name);\r\n } els" +
"e {\r\n dialog.attr(\'data-addressid\', null);\r\n dialo" +
"g.dialog(\'option\', \'title\', \'Create Address\');\r\n }\r\n\r\n $(\'" +
"#editShortName\').val(shortName);\r\n $(\'#editName\').val(name);\r\n " +
" $(\'#editAddress\').val(address);\r\n $(\'#editSuburb\').val(suburb);\r" +
"\n $(\'#editPostcode\').val(postcode);\r\n $(\'#editState\').val(" +
"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(\'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: \'");
WriteLiteral("\' + \'?redirect=true&id=\' + id; };\r\n var buttons = dialog.dialo" +
"g(\"option\", \"buttons\", buttons);\r\n dialog.dialog(\'open\');\r\n " +
" }\r\n });\r\n\r\n var editAddress = function (elem" +
"ent) {\r\n var id = \'\', shortName = \'\', name = \'\', address = \'\', su" +
"burb = \'\', postcode = \'\', state = \'\', country = \'\', phoneNumber = \'\', faxNumber " +
"= \'\';\r\n var dialog = $(\'#dialogEdit\');\r\n if (eleme" +
"nt) {\r\n id = element.attr(\'data-addressid\');\r\n " +
" shortName = element.find(\'.shortName\').text();\r\n name = " +
"element.find(\'.name\').text();\r\n address = element.find(\'.addr" +
"ess\').text();\r\n suburb = element.find(\'.suburb\').text();\r\n " +
" postcode = element.find(\'.postcode\').text();\r\n " +
" state = element.find(\'.state\').text();\r\n country = element" +
".find(\'.country\').text();\r\n phoneNumber = element.find(\'.phon" +
"eNumber\').text();\r\n faxNumber = element.find(\'.faxNumber\').te" +
"xt();\r\n dialog.attr(\'data-addressid\', id);\r\n " +
" dialog.dialog(\'option\', \'title\', \'Edit Address: \' + name);\r\n }" +
" else {\r\n dialog.attr(\'data-addressid\', null);\r\n " +
" dialog.dialog(\'option\', \'title\', \'Create Address\');\r\n }\r\n\r" +
"\n $(\'#editShortName\').val(shortName);\r\n $(\'#editNa" +
"me\').val(name);\r\n $(\'#editAddress\').val(address);\r\n " +
" $(\'#editSuburb\').val(suburb);\r\n $(\'#editPostcode\').val(postcode" +
");\r\n $(\'#editState\').val(state);\r\n $(\'#editCountry" +
"\').val(country);\r\n $(\'#editPhoneNumber\').val(phoneNumber);\r\n " +
" $(\'#editFaxNumber\').val(faxNumber);\r\n dialog.dialog(\'o" +
"pen\');\r\n }\r\n\r\n $(\'#organisationAddresses\').find(\'i.edit\')." +
"click(function () {\r\n var componentRow = $(this).closest(\'tr\');\r\n" +
" editAddress(componentRow);\r\n });\r\n\r\n $(\'#c" +
"reateAddress\').click(function () {\r\n editAddress();\r\n " +
" return 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 S" +
"hortName: $(\'#editShortName\').val(),\r\n Name: $(\'#editName\').v" +
"al(),\r\n Address: $(\'#editAddress\').val(),\r\n " +
" Suburb: $(\'#editSuburb\').val(),\r\n Postcode: $(\'#editPostcod" +
"e\').val(),\r\n State: $(\'#editState\').val(),\r\n " +
" Country: $(\'#editCountry\').val(),\r\n PhoneNumber: $(\'#editP" +
"honeNumber\').val(),\r\n FaxNumber: $(\'#editFaxNumber\').val()\r\n " +
" };\r\n\r\n $.ajax({\r\n url: \'");
#line 366 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
Write(Url.Action(MVC.API.System.UpdateOrganisationAddress()));
#line 368 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
Write(Url.Action(MVC.API.System.UpdateOrganisationAddress()));
#line default
@@ -994,7 +999,7 @@ WriteLiteral("\',\r\n dataType: \'json\',\r\n data
"f (d == \'OK\') {\r\n window.location.href = \'");
#line 372 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 374 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
Write(Url.Action(MVC.Config.Organisation.Index()));
@@ -1013,27 +1018,27 @@ WriteLiteral(@"';
});
};
$(""#dialogEdit"").dialog({
resizable: false,
modal: true,
autoOpen: false,
width: 350,
buttons: {
""Save"": function () {
submitAddress();
},
Cancel: function () {
$(this).dialog(""close"");
$(""#dialogEdit"").dialog({
resizable: false,
modal: true,
autoOpen: false,
width: 350,
buttons: {
""Save"": function () {
submitAddress();
},
Cancel: function () {
$(this).dialog(""close"");
}
}
}
});
});
});
});
</script>
");
#line 402 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
#line 404 "..\..\Areas\Config\Views\Organisation\Index.cshtml"
}
#line default
@@ -70,102 +70,108 @@
</div>
<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">
<i class="fa fa-exclamation-triangle fa-lg"></i>&nbsp;NOTE: Data will be permanently deleted
<div id="uninstallPluginDataAlert" class="info-box error" style="display: none;">
<p class="fa-p">
<i class="fa fa-exclamation-triangle"></i><strong>Warning:</strong> Data will be permanently deleted
</p>
</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">
<i class="fa fa-info-circle information"></i>&nbsp;Are you sure you want to uninstall this plugin?
<h4 id="uninstallPluginConfirm"></h4>
<div class="info-box">
<p class="fa-p">
<i class="fa fa-info-circle"></i>Are you sure you want to uninstall this plugin?
</p>
<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">
<i class="fa fa-exclamation-triangle fa-lg"></i>&nbsp;NOTE: Data will be permanently deleted
<div id="uninstallPluginDataConfirm" class="info-box error" style="display: none;">
<p class="fa-p">
<i class="fa fa-exclamation-triangle"></i><strong>Warning:</strong> Data will be permanently deleted
</p>
</div>
</div>
<script>
$(function () {
// Uninstall
var uninstallUrl = '@(Url.Action(MVC.API.Plugin.Uninstall()))/';
var uninstallPlugin, uninstallPluginData, $dialogConfirm, uninstallPluginConfirm, uninstallPluginDataConfirm;
var uninstallPlugin, uninstallPluginData, $dialogConfirm, uninstallPluginConfirm, uninstallPluginDataConfirm;
var pluginId, pluginName, pluginUninstallData;
var pluginId, pluginName, pluginUninstallData;
var $dialog = $('#dialogUninstallPlugins').dialog({
resizable: false,
modal: true,
width: 350,
autoOpen: false,
buttons: {
"Uninstall": function () {
pluginId = uninstallPlugin.val();
pluginName = uninstallPlugin.find('option:selected').text();
pluginUninstallData = uninstallPluginData.is(':checked');
var $dialog = $('#dialogUninstallPlugins').dialog({
resizable: false,
modal: true,
width: 350,
autoOpen: false,
buttons: {
"Uninstall": function () {
pluginId = uninstallPlugin.val();
pluginName = uninstallPlugin.find('option:selected').text();
pluginUninstallData = uninstallPluginData.is(':checked');
if (!pluginId) {
alert('Select a plugin to uninstall');
} else {
uninstallPluginConfirm.text(pluginName + ' [' + pluginId + ']');
if (pluginUninstallData)
uninstallPluginDataConfirm.show();
else
uninstallPluginDataConfirm.hide();
if (!pluginId) {
alert('Select a plugin to uninstall');
} else {
uninstallPluginConfirm.text(pluginName + ' [' + pluginId + ']');
if (pluginUninstallData)
uninstallPluginDataConfirm.show();
else
uninstallPluginDataConfirm.hide();
$dialogConfirm.dialog('open');
$(this).dialog("close");
$dialogConfirm.dialog('open');
$(this).dialog("close");
}
},
Cancel: function () {
uninstallPluginData.prop('checked', false);
$('#uninstallPluginDataAlert').hide();
$(this).dialog("close");
}
}
},
Cancel: function () {
uninstallPluginData.prop('checked', false);
$('#uninstallPluginDataAlert').hide();
$(this).dialog("close");
}
}
});
});
$dialogConfirm = $('#dialogUninstallPluginConfirm').dialog({
resizable: false,
modal: true,
width: 350,
autoOpen: false,
buttons: {
"Confirm Uninstall": function () {
var url = uninstallUrl + pluginId;
if (pluginUninstallData)
url += '?UninstallData=true'
else
url += '?UninstallData=false'
$dialogConfirm = $('#dialogUninstallPluginConfirm').dialog({
resizable: false,
modal: true,
width: 350,
autoOpen: false,
buttons: {
"Confirm Uninstall": function () {
var url = uninstallUrl + pluginId;
if (pluginUninstallData)
url += '?UninstallData=true'
else
url += '?UninstallData=false'
window.location.href = url;
$(this).dialog("disable");
},
Cancel: function () {
uninstallPluginData.prop('checked', false);
$('#uninstallPluginDataAlert').hide();
$(this).dialog("close");
}
}
});
window.location.href = url;
$(this).dialog("disable");
},
Cancel: function () {
uninstallPluginData.prop('checked', false);
$('#uninstallPluginDataAlert').hide();
$(this).dialog("close");
}
}
});
uninstallPlugin = $('#uninstallPlugin');
uninstallPluginData = $('#uninstallPluginData');
uninstallPluginConfirm = $('#uninstallPluginConfirm');
uninstallPluginDataConfirm = $('#uninstallPluginDataConfirm');
uninstallPlugin = $('#uninstallPlugin');
uninstallPluginData = $('#uninstallPluginData');
uninstallPluginConfirm = $('#uninstallPluginConfirm');
uninstallPluginDataConfirm = $('#uninstallPluginDataConfirm');
$('#buttonUninstall').click(function () {
$dialog.dialog('open');
return false;
});
$('#buttonUninstall').click(function () {
$dialog.dialog('open');
return false;
});
$('#uninstallPluginData').change(function () {
if ($(this).is(':checked')) {
$('#uninstallPluginDataAlert').slideDown();
} else {
$('#uninstallPluginDataAlert').slideUp();
}
});
});
$('#uninstallPluginData').change(function () {
if ($(this).is(':checked')) {
$('#uninstallPluginDataAlert').slideDown();
} else {
$('#uninstallPluginDataAlert').slideUp();
}
});
});
</script>
}
if (Model.PluginUpdates.Count > 0)
@@ -347,16 +347,20 @@ WriteLiteral("> Uninstall Plugin Data</label>\r\n <div");
WriteLiteral(" id=\"uninstallPluginDataAlert\"");
WriteLiteral(" style=\"display: none; padding: 0.7em 0.7em; margin-top: 8px;\"");
WriteLiteral(" class=\"info-box error\"");
WriteLiteral(" class=\"ui-state-error ui-corner-all\"");
WriteLiteral(" style=\"display: none;\"");
WriteLiteral(">\r\n <i");
WriteLiteral(">\r\n <p");
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg\"");
WriteLiteral(" class=\"fa-p\"");
WriteLiteral("></i>&nbsp;NOTE: Data will be permanently deleted\r\n </div>\r\n " +
" </div>\r\n </div>\r\n");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa fa-exclamation-triangle\"");
WriteLiteral("></i><strong>Warning:</strong> Data will be permanently deleted\r\n " +
" </p>\r\n </div>\r\n </div>\r\n </div>\r\n");
WriteLiteral(" <div");
@@ -366,15 +370,18 @@ WriteLiteral(" title=\"Confirm Plugin Uninstall\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" style=\"padding: 0.7em 0.7em; margin-top: 8px;\"");
WriteLiteral(" class=\"info-box\"");
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
WriteLiteral(">\r\n <p");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa-p\"");
WriteLiteral(" class=\"fa fa-info-circle information\"");
WriteLiteral(">\r\n <i");
WriteLiteral("></i>&nbsp;Are you sure you want to uninstall this plugin?\r\n <h4");
WriteLiteral(" class=\"fa fa-info-circle\"");
WriteLiteral("></i>Are you sure you want to uninstall this plugin?\r\n </p>\r\n " +
" <h4");
WriteLiteral(" id=\"uninstallPluginConfirm\"");
@@ -382,68 +389,79 @@ WriteLiteral("></h4>\r\n </div>\r\n <div");
WriteLiteral(" id=\"uninstallPluginDataConfirm\"");
WriteLiteral(" style=\"display: none; padding: 0.7em 0.7em; margin-top: 8px;\"");
WriteLiteral(" class=\"info-box error\"");
WriteLiteral(" class=\"ui-state-error ui-corner-all\"");
WriteLiteral(" style=\"display: none;\"");
WriteLiteral(">\r\n <i");
WriteLiteral(">\r\n <p");
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg\"");
WriteLiteral(" class=\"fa-p\"");
WriteLiteral("></i>&nbsp;NOTE: Data will be permanently deleted\r\n </div>\r\n </" +
"div>\r\n");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa fa-exclamation-triangle\"");
WriteLiteral("></i><strong>Warning:</strong> Data will be permanently deleted\r\n " +
"</p>\r\n </div>\r\n </div>\r\n");
WriteLiteral(" <script>\r\n $(function () {\r\n // Uninstall\r\n " +
" var uninstallUrl = \'");
#line 90 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 96 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
Write(Url.Action(MVC.API.Plugin.Uninstall()));
#line default
#line hidden
WriteLiteral("/\';\r\n var uninstallPlugin, uninstallPluginData, $dialogConfirm, uninstallP" +
"luginConfirm, uninstallPluginDataConfirm;\r\n\r\n var pluginId, pluginName, p" +
"luginUninstallData;\r\n\r\n var $dialog = $(\'#dialogUninstallPlugins\').dialog" +
"({\r\n resizable: false,\r\n modal: true,\r\n width: " +
"350,\r\n autoOpen: false,\r\n buttons: {\r\n \"Uni" +
"nstall\": function () {\r\n pluginId = uninstallPlugin.val();\r\n " +
" pluginName = uninstallPlugin.find(\'option:selected\').text();\r" +
"\n pluginUninstallData = uninstallPluginData.is(\':checked\');\r\n" +
"\r\n if (!pluginId) {\r\n alert(\'Select a " +
"plugin to uninstall\');\r\n } else {\r\n un" +
"installPluginConfirm.text(pluginName + \' [\' + pluginId + \']\');\r\n " +
" if (pluginUninstallData)\r\n uninstallPluginDat" +
"aConfirm.show();\r\n else\r\n unin" +
"stallPluginDataConfirm.hide();\r\n\r\n $dialogConfirm.dialog(" +
"\'open\');\r\n $(this).dialog(\"close\");\r\n " +
"}\r\n },\r\n Cancel: function () {\r\n " +
" uninstallPluginData.prop(\'checked\', false);\r\n $(\'#uninstall" +
"PluginDataAlert\').hide();\r\n $(this).dialog(\"close\");\r\n " +
" }\r\n }\r\n });\r\n\r\n $dialogConfirm = $(\'#dialogUni" +
"nstallPluginConfirm\').dialog({\r\n resizable: false,\r\n modal" +
": true,\r\n width: 350,\r\n autoOpen: false,\r\n butt" +
"ons: {\r\n \"Confirm Uninstall\": function () {\r\n " +
"var url = uninstallUrl + pluginId;\r\n if (pluginUninstallData)" +
"\r\n url += \'?UninstallData=true\'\r\n else" +
"\r\n url += \'?UninstallData=false\'\r\n\r\n w" +
"indow.location.href = url;\r\n $(this).dialog(\"disable\");\r\n " +
" },\r\n Cancel: function () {\r\n unins" +
"tallPluginData.prop(\'checked\', false);\r\n $(\'#uninstallPluginD" +
"ataAlert\').hide();\r\n $(this).dialog(\"close\");\r\n " +
" }\r\n }\r\n });\r\n\r\n uninstallPlugin = $(\'#uninstallPlugin" +
"\');\r\n uninstallPluginData = $(\'#uninstallPluginData\');\r\n uninstall" +
"PluginConfirm = $(\'#uninstallPluginConfirm\');\r\n uninstallPluginDataConfir" +
"m = $(\'#uninstallPluginDataConfirm\');\r\n\r\n $(\'#buttonUninstall\').click(fun" +
"ction () {\r\n $dialog.dialog(\'open\');\r\n return false;\r\n " +
" });\r\n\r\n $(\'#uninstallPluginData\').change(function () {\r\n i" +
"f ($(this).is(\':checked\')) {\r\n $(\'#uninstallPluginDataAlert\').sli" +
"deDown();\r\n } else {\r\n $(\'#uninstallPluginDataAlert\')." +
"slideUp();\r\n }\r\n });\r\n });\r\n </script>\r\n");
WriteLiteral("/\';\r\n var uninstallPlugin, uninstallPluginData, $dialogConfirm, un" +
"installPluginConfirm, uninstallPluginDataConfirm;\r\n\r\n var pluginI" +
"d, pluginName, pluginUninstallData;\r\n\r\n var $dialog = $(\'#dialogU" +
"ninstallPlugins\').dialog({\r\n resizable: false,\r\n " +
" modal: true,\r\n width: 350,\r\n autoOp" +
"en: false,\r\n buttons: {\r\n \"Uninstall\":" +
" function () {\r\n pluginId = uninstallPlugin.val();\r\n " +
" pluginName = uninstallPlugin.find(\'option:selected\')." +
"text();\r\n pluginUninstallData = uninstallPluginData.i" +
"s(\':checked\');\r\n\r\n if (!pluginId) {\r\n " +
" alert(\'Select a plugin to uninstall\');\r\n " +
" } else {\r\n uninstallPluginConfirm.text(plugin" +
"Name + \' [\' + pluginId + \']\');\r\n if (pluginUninst" +
"allData)\r\n uninstallPluginDataConfirm.show();" +
"\r\n else\r\n unin" +
"stallPluginDataConfirm.hide();\r\n\r\n $dialogConfirm" +
".dialog(\'open\');\r\n $(this).dialog(\"close\");\r\n " +
" }\r\n },\r\n C" +
"ancel: function () {\r\n uninstallPluginData.prop(\'chec" +
"ked\', false);\r\n $(\'#uninstallPluginDataAlert\').hide()" +
";\r\n $(this).dialog(\"close\");\r\n " +
" }\r\n }\r\n });\r\n\r\n $dialogConfirm" +
" = $(\'#dialogUninstallPluginConfirm\').dialog({\r\n resizable: f" +
"alse,\r\n modal: true,\r\n width: 350,\r\n " +
" autoOpen: false,\r\n buttons: {\r\n " +
" \"Confirm Uninstall\": function () {\r\n var url " +
"= uninstallUrl + pluginId;\r\n if (pluginUninstallData)" +
"\r\n url += \'?UninstallData=true\'\r\n " +
" else\r\n url += \'?UninstallData=false\'\r" +
"\n\r\n window.location.href = url;\r\n " +
" $(this).dialog(\"disable\");\r\n },\r\n " +
" Cancel: function () {\r\n uninstallPluginData.p" +
"rop(\'checked\', false);\r\n $(\'#uninstallPluginDataAlert" +
"\').hide();\r\n $(this).dialog(\"close\");\r\n " +
" }\r\n }\r\n });\r\n\r\n unins" +
"tallPlugin = $(\'#uninstallPlugin\');\r\n uninstallPluginData = $(\'#u" +
"ninstallPluginData\');\r\n uninstallPluginConfirm = $(\'#uninstallPlu" +
"ginConfirm\');\r\n uninstallPluginDataConfirm = $(\'#uninstallPluginD" +
"ataConfirm\');\r\n\r\n $(\'#buttonUninstall\').click(function () {\r\n " +
" $dialog.dialog(\'open\');\r\n return false;\r\n " +
" });\r\n\r\n $(\'#uninstallPluginData\').change(function () " +
"{\r\n if ($(this).is(\':checked\')) {\r\n $(" +
"\'#uninstallPluginDataAlert\').slideDown();\r\n } else {\r\n " +
" $(\'#uninstallPluginDataAlert\').slideUp();\r\n " +
"}\r\n });\r\n });\r\n </script>\r\n");
#line 170 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 176 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
}
if (Model.PluginUpdates.Count > 0)
{
@@ -462,7 +480,7 @@ WriteLiteral(" class=\"fa fa-cloud-download\"");
WriteLiteral("></i>\r\n <div>");
#line 175 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 181 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
Write(Model.PluginUpdates.Count);
@@ -471,7 +489,7 @@ WriteLiteral("></i>\r\n <div>");
WriteLiteral(" plugin update");
#line 175 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 181 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
Write(Model.PluginUpdates.Count == 1 ? " is" : "s are");
@@ -480,13 +498,13 @@ WriteLiteral(" plugin update");
WriteLiteral(" available</div>\r\n");
#line 176 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 182 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line default
#line hidden
#line 176 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 182 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
if (canInstall)
{
@@ -494,14 +512,14 @@ WriteLiteral(" available</div>\r\n");
#line default
#line hidden
#line 178 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 184 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
Write(Html.ActionLinkSmallButton("Update Now", MVC.API.Plugin.UpdateAll(), null, "alert"));
#line default
#line hidden
#line 178 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 184 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
}
else
@@ -517,7 +535,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(">You do not have sufficient permission to install these updates.</div>\r\n");
#line 183 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 189 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
}
@@ -537,7 +555,7 @@ WriteLiteral(@" <script>
");
#line 194 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 200 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
}
}
@@ -551,13 +569,13 @@ WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n");
#line 199 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 205 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line default
#line hidden
#line 199 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 205 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
if (canUninstall && Model.PluginManifests.Count > 0)
{
@@ -565,14 +583,14 @@ WriteLiteral(">\r\n");
#line default
#line hidden
#line 201 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 207 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
Write(Html.ActionLinkButton("Uninstall Plugins", MVC.Config.Plugins.Index(), "buttonUninstall"));
#line default
#line hidden
#line 201 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 207 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
}
@@ -582,7 +600,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 203 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 209 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
if (canInstall)
{
@@ -590,14 +608,14 @@ WriteLiteral(" ");
#line default
#line hidden
#line 205 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 211 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
Write(Html.ActionLinkButton("Install Plugins", MVC.Config.Plugins.Install()));
#line default
#line hidden
#line 205 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
#line 211 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
}
@@ -68,9 +68,11 @@
<h2 id="dialogInstallPluginName"></h2>
<h4 id="dialogInstallPluginDetails"></h4>
<div style="padding: 0.7em 0.7em; margin-top: 8px;" class="ui-state-highlight ui-corner-all">
<i class="fa fa-exclamation-triangle fa-lg information"></i>&nbsp;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 class="info-box">
<p class="fa-p">
<i class="fa fa-exclamation-triangle"></i><strong>Warning:</strong> 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>
</p>
</div>
</div>
@if (canInstallLocal)
@@ -83,9 +85,11 @@
<input id="pluginFile" name="Plugin" type="file" />
}
</div>
<div style="padding: 0.7em 0.7em; margin-top: 8px;" class="ui-state-error ui-corner-all">
<i class="fa fa-exclamation-triangle fa-lg"></i>&nbsp;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 class="info-box error">
<p class="fa-p">
<i class="fa fa-exclamation-triangle"></i><strong>Warning:</strong> 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>
</p>
</div>
</div>
}
@@ -391,20 +391,22 @@ WriteLiteral(" id=\"dialogInstallPluginDetails\"");
WriteLiteral("></h4>\r\n\r\n <div");
WriteLiteral(" style=\"padding: 0.7em 0.7em; margin-top: 8px;\"");
WriteLiteral(" class=\"info-box\"");
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
WriteLiteral(">\r\n <p");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa-p\"");
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg information\"");
WriteLiteral(">\r\n <i");
WriteLiteral("></i>&nbsp;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");
WriteLiteral(" class=\"fa fa-exclamation-triangle\"");
WriteLiteral("></i><strong>Warning:</strong> All plugins run with the same level of network pri" +
"vileges as the Disco Web App.<br />\r\n <strong>Only Install plugins fr" +
"om a trusted source.</strong>\r\n </p>\r\n </div>\r\n</div>\r\n");
#line 76 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
#line 78 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
if (canInstallLocal)
{
@@ -424,13 +426,13 @@ WriteLiteral(" style=\"padding-bottom: 10px;\"");
WriteLiteral(">\r\n");
#line 80 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
#line 82 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
#line default
#line hidden
#line 80 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
#line 82 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
using (Html.BeginForm(MVC.API.Plugin.InstallLocal(), FormMethod.Post, new { enctype = "multipart/form-data" }))
{
@@ -454,7 +456,7 @@ WriteLiteral(" type=\"file\"");
WriteLiteral(" />\r\n");
#line 84 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
#line 86 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
}
@@ -462,20 +464,23 @@ WriteLiteral(" />\r\n");
#line hidden
WriteLiteral(" </div>\r\n <div");
WriteLiteral(" style=\"padding: 0.7em 0.7em; margin-top: 8px;\"");
WriteLiteral(" class=\"info-box error\"");
WriteLiteral(" class=\"ui-state-error ui-corner-all\"");
WriteLiteral(">\r\n <p");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa-p\"");
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg\"");
WriteLiteral(">\r\n <i");
WriteLiteral("></i>&nbsp;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");
WriteLiteral(" class=\"fa fa-exclamation-triangle\"");
WriteLiteral("></i><strong>Warning:</strong> All plugins run with the same level of network pri" +
"vileges as the Disco Web App.<br />\r\n <strong>Only install plugin" +
"s from a trusted source.</strong>\r\n </p>\r\n </div>\r\n </div>\r" +
"\n");
#line 91 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
#line 95 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
}
@@ -510,13 +515,13 @@ WriteLiteral("<script>\r\n $(function () {\r\n var $selectedPlugin;\r\
" return false;\r\n });\r\n\r\n");
#line 148 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
#line 152 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
#line default
#line hidden
#line 148 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
#line 152 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
if (canInstallLocal)
{
@@ -551,7 +556,7 @@ WriteLiteral(@"
");
#line 175 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
#line 179 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
}
@@ -566,7 +571,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 179 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
#line 183 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
Write(Html.ActionLinkButton("Update Catalogue", MVC.API.Plugin.UpdateLibraryCatalogue()));
@@ -575,13 +580,13 @@ Write(Html.ActionLinkButton("Update Catalogue", MVC.API.Plugin.UpdateLibraryCata
WriteLiteral("\r\n");
#line 180 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
#line 184 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
#line default
#line hidden
#line 180 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
#line 184 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
if (canInstallLocal)
{
@@ -589,14 +594,14 @@ WriteLiteral("\r\n");
#line default
#line hidden
#line 182 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
#line 186 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
Write(Html.ActionLinkButton("Install Plugin Package", MVC.API.Plugin.InstallLocal(), "buttonUpload"));
#line default
#line hidden
#line 182 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
#line 186 "..\..\Areas\Config\Views\Plugins\Install.cshtml"
}
@@ -2,7 +2,7 @@
@using Disco.Services.Interop.ActiveDirectory;
<h5>@(Model.CategoryDescription)</h5>
<div class="Config_LinkedGroup_Instance">
<div class="infoBox">
<div class="info-box">
<p class="fa-p">
<i class="fa fa-fw fa-info-circle"></i>@Model.Description
</p>
@@ -65,7 +65,7 @@ WriteLiteral(" class=\"Config_LinkedGroup_Instance\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" class=\"infoBox\"");
WriteLiteral(" class=\"info-box\"");
WriteLiteral(">\r\n <p");
@@ -114,14 +114,14 @@ WriteLiteral(" <div");
WriteLiteral(" class=\"code\"");
WriteAttribute("title", Tuple.Create(" title=\"", 680), Tuple.Create("\"", 697)
WriteAttribute("title", Tuple.Create(" title=\"", 681), Tuple.Create("\"", 698)
#line 22 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
, Tuple.Create(Tuple.Create("", 688), Tuple.Create<System.Object, System.Int32>(group.Id
, Tuple.Create(Tuple.Create("", 689), Tuple.Create<System.Object, System.Int32>(group.Id
#line default
#line hidden
, 688), false)
, 689), false)
);
WriteLiteral(">\r\n <i");
@@ -180,14 +180,14 @@ WriteLiteral(">Change Link</button>\r\n");
WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 1113), Tuple.Create("\"", 1227)
WriteAttribute("href", Tuple.Create(" href=\"", 1114), Tuple.Create("\"", 1228)
#line 26 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
, Tuple.Create(Tuple.Create("", 1120), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.System.SyncActiveDirectoryManagedGroup(Model.ManagedGroup.Key, Context.Request.Path))
, Tuple.Create(Tuple.Create("", 1121), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.API.System.SyncActiveDirectoryManagedGroup(Model.ManagedGroup.Key, Context.Request.Path))
#line default
#line hidden
, 1120), false)
, 1121), false)
);
WriteLiteral(" class=\"button small\"");
@@ -323,14 +323,14 @@ WriteLiteral(" <div");
WriteLiteral(" class=\"code\"");
WriteAttribute("title", Tuple.Create(" title=\"", 2271), Tuple.Create("\"", 2288)
WriteAttribute("title", Tuple.Create(" title=\"", 2272), Tuple.Create("\"", 2289)
#line 47 "..\..\Areas\Config\Views\Shared\LinkedGroupInstance.cshtml"
, Tuple.Create(Tuple.Create("", 2279), Tuple.Create<System.Object, System.Int32>(group.Id
, Tuple.Create(Tuple.Create("", 2280), Tuple.Create<System.Object, System.Int32>(group.Id
#line default
#line hidden
, 2279), false)
, 2280), false)
);
WriteLiteral(">\r\n <i");
@@ -1,6 +1,6 @@
<div id="Config_LinkedGroup_Dialog" title="Linked Group" class="dialog">
<h3 id="Config_LinkedGroup_Title"></h3>
<div class="infoBox error">
<div class="info-box error">
<p class="fa-p">
<i class="fa fa-exclamation-circle"></i><strong>Warning:</strong> This group will be managed by Disco ICT.<br />
Any <strong>existing members will be removed from the group</strong>, and it will be automatically synchronized with related members.
@@ -58,7 +58,7 @@ WriteLiteral(" id=\"Config_LinkedGroup_Title\"");
WriteLiteral("></h3>\r\n <div");
WriteLiteral(" class=\"infoBox error\"");
WriteLiteral(" class=\"info-box error\"");
WriteLiteral(">\r\n <p");
@@ -237,10 +237,11 @@
<div>
@Html.CheckBoxFor(m => m.ADSearchAllForestServers, new { disabled = "disabled" }) @Html.LabelFor(m => m.ADSearchAllForestServers)
</div>
<div style="padding: 0.7em 0.7em;" class="ui-state-highlight ui-corner-all">
<i class="fa fa-info-circle information"></i>&nbsp;Forest servers are currently being retrieved.
<br />
Try refreshing this page in a moment.
<div class="info-box">
<p class="fa-p">
<i class="fa fa-info-circle"></i>Forest servers are currently being retrieved.<br />
Try refreshing this page in a moment.
</p>
</div>
}
else
@@ -252,8 +253,10 @@
@if (!canSearchEntireForest)
{
@Html.CheckBoxFor(m => m.ADSearchAllForestServers, new { disabled = "disabled" }) @Html.LabelFor(m => m.ADSearchAllForestServers)
<div style="padding: 0.7em 0.7em;" class="ui-state-highlight ui-corner-all">
<i class="fa fa-exclamation-circle warning"></i>&nbsp;Disco will not search entire forests which consist of more than @(Disco.Services.Interop.ActiveDirectory.ActiveDirectory.MaxForestServerSearch) servers. Only servers within this site will be searched.
<div class="info-box">
<p class="fa-p">
<i class="fa fa-exclamation-circle warning"></i>Disco will not search entire forests which consist of more than @(Disco.Services.Interop.ActiveDirectory.ActiveDirectory.MaxForestServerSearch) servers. Only servers within this site will be searched.
</p>
</div>
}
else
@@ -891,20 +891,22 @@ WriteLiteral("\r\n </div>\r\n");
WriteLiteral(" <div");
WriteLiteral(" style=\"padding: 0.7em 0.7em;\"");
WriteLiteral(" class=\"info-box\"");
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
WriteLiteral(">\r\n <p");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa-p\"");
WriteLiteral(" class=\"fa fa-info-circle information\"");
WriteLiteral(">\r\n <i");
WriteLiteral("></i>&nbsp;Forest servers are currently being retrieved.\r\n " +
" <br />\r\n Try refreshing this page in a moment.\r\n " +
" </div>\r\n");
WriteLiteral(" class=\"fa fa-info-circle\"");
WriteLiteral("></i>Forest servers are currently being retrieved.<br />\r\n " +
" Try refreshing this page in a moment.\r\n </p>\r\n " +
" </div>\r\n");
#line 245 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 246 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
else
{
@@ -918,13 +920,13 @@ WriteLiteral("></i>&nbsp;Forest servers are currently being retrieved.\r\n
WriteLiteral(" <div>\r\n");
#line 252 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 253 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line default
#line hidden
#line 252 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 253 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (!canSearchEntireForest)
{
@@ -932,27 +934,27 @@ WriteLiteral(" <div>\r\n");
#line default
#line hidden
#line 254 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 255 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.CheckBoxFor(m => m.ADSearchAllForestServers, new { disabled = "disabled" }));
#line default
#line hidden
#line 254 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 255 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line default
#line hidden
#line 254 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 255 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.LabelFor(m => m.ADSearchAllForestServers));
#line default
#line hidden
#line 254 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 255 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
@@ -960,28 +962,30 @@ WriteLiteral(" <div>\r\n");
#line hidden
WriteLiteral(" <div");
WriteLiteral(" style=\"padding: 0.7em 0.7em;\"");
WriteLiteral(" class=\"info-box\"");
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
WriteLiteral(">\r\n <p");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa-p\"");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa fa-exclamation-circle warning\"");
WriteLiteral("></i>&nbsp;Disco will not search entire forests which consist of more than ");
WriteLiteral("></i>Disco will not search entire forests which consist of more than ");
#line 256 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Disco.Services.Interop.ActiveDirectory.ActiveDirectory.MaxForestServerSearch);
#line 258 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Disco.Services.Interop.ActiveDirectory.ActiveDirectory.MaxForestServerSearch);
#line default
#line hidden
WriteLiteral(" servers. Only servers within this site will be searched.\r\n " +
" </div>\r\n");
" </p>\r\n </div>\r\n");
#line 258 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 261 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
else
{
@@ -990,40 +994,40 @@ WriteLiteral(" servers. Only servers within this site will be searched.\r\n
#line default
#line hidden
#line 261 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 264 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.CheckBoxFor(m => m.ADSearchAllForestServers));
#line default
#line hidden
#line 261 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 264 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line default
#line hidden
#line 261 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 264 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.LabelFor(m => m.ADSearchAllForestServers));
#line default
#line hidden
#line 261 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 264 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line default
#line hidden
#line 261 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 264 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(AjaxHelpers.AjaxLoader());
#line default
#line hidden
#line 261 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 264 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
@@ -1042,7 +1046,7 @@ WriteLiteral(" <script>\r\n
"Helper($(\'#ADSearchAllForestServers\'), null, \'");
#line 267 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 270 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Url.Action(MVC.API.System.UpdateActiveDirectorySearchAllForestServers()));
@@ -1052,7 +1056,7 @@ WriteLiteral("\', \'SearchAllForestServers\');\r\n
" </script>\r\n");
#line 270 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 273 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
@@ -1061,7 +1065,7 @@ WriteLiteral("\', \'SearchAllForestServers\');\r\n
WriteLiteral(" </div>\r\n");
#line 272 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 275 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
else
{
@@ -1074,7 +1078,7 @@ WriteLiteral(" <div>\r\n");
WriteLiteral(" ");
#line 276 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 279 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.CheckBoxFor(m => m.ADSearchAllForestServers, new { disabled = "disabled" }));
@@ -1083,7 +1087,7 @@ WriteLiteral(" ");
WriteLiteral(" ");
#line 276 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 279 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.LabelFor(m => m.ADSearchAllForestServers));
@@ -1098,7 +1102,7 @@ WriteLiteral(">\r\n If this setting is enabled, Disco
" </div>\r\n </div>\r\n");
#line 281 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 284 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
@@ -1114,13 +1118,13 @@ WriteLiteral(" class=\"none\"");
WriteLiteral(">\r\n");
#line 286 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 289 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line default
#line hidden
#line 286 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 289 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
var domainIndex = Model.ADDomains.ToDictionary(d => d.Name, StringComparer.OrdinalIgnoreCase);
foreach (var server in Model.ADForestServers.OrderBy(s => s))
@@ -1142,7 +1146,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" <li><code>");
#line 300 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 303 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(serverDescription);
@@ -1151,7 +1155,7 @@ WriteLiteral(" <li><code>");
WriteLiteral("</code>");
#line 300 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 303 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (isSiteServer)
{
@@ -1166,7 +1170,7 @@ WriteLiteral(" title=\"Site Server\"");
WriteLiteral("></i> ");
#line 301 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 304 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
#line default
@@ -1174,7 +1178,7 @@ WriteLiteral("></i> ");
WriteLiteral("</li>\r\n");
#line 302 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 305 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
@@ -1208,7 +1212,7 @@ WriteLiteral(@"
");
#line 328 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 331 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
@@ -1221,13 +1225,13 @@ WriteLiteral(" style=\"width: 135px\"");
WriteLiteral(">Search Scope:\r\n </th>\r\n <td>\r\n");
#line 335 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 338 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line default
#line hidden
#line 335 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 338 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (Model.ADSearchContainers != null && Model.ADSearchContainers.Count > 0)
{
@@ -1244,13 +1248,13 @@ WriteLiteral(" id=\"Config_System_AD_SearchScope_DistinguishedNames\"");
WriteLiteral(">\r\n");
#line 339 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 342 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line default
#line hidden
#line 339 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 342 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
foreach (var adContainer in Model.ADSearchContainers)
{
@@ -1262,7 +1266,7 @@ WriteLiteral(" <li");
WriteLiteral(" data-distinguishedname=\"");
#line 341 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 344 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(adContainer.Item1);
@@ -1273,7 +1277,7 @@ WriteLiteral("\"");
WriteLiteral("><code>");
#line 341 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 344 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(adContainer.Item3);
@@ -1282,7 +1286,7 @@ WriteLiteral("><code>");
WriteLiteral("</code></li>\r\n");
#line 342 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 345 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
@@ -1291,7 +1295,7 @@ WriteLiteral("</code></li>\r\n");
WriteLiteral(" </ul>\r\n");
#line 344 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 347 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
else
{
@@ -1309,7 +1313,7 @@ WriteLiteral(">When searching, the entire domain will be queried. This is suitab
"gle-domain deployments.</div>\r\n");
#line 349 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 352 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
@@ -1318,7 +1322,7 @@ WriteLiteral(">When searching, the entire domain will be queried. This is suitab
WriteLiteral(" ");
#line 350 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 353 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (canConfigAD)
{
@@ -1353,7 +1357,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 358 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 361 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(AjaxHelpers.AjaxLoader());
@@ -1369,13 +1373,13 @@ WriteLiteral(" class=\"organisationalUnitTree\"");
WriteLiteral(">\r\n </div>\r\n");
#line 362 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 365 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line default
#line hidden
#line 362 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 365 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
using (Html.BeginForm(MVC.API.System.UpdateActiveDirectorySearchScope(null, redirect: true)))
{
}
@@ -1422,7 +1426,7 @@ WriteLiteral(" <script>\r\n $(function
"\');\r\n\r\n $.getJSON(\'");
#line 416 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 419 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Url.Action(MVC.API.System.DomainOrganisationalUnits()));
@@ -1468,7 +1472,7 @@ WriteLiteral("\', null, function (data) {\r\n
"\r\n </script>\r\n");
#line 473 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 476 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
@@ -1477,7 +1481,7 @@ WriteLiteral("\', null, function (data) {\r\n
WriteLiteral(" </td>\r\n </tr>\r\n </table>\r\n</div>\r\n");
#line 478 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 481 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (canConfigProxy)
{
using (Html.BeginForm(MVC.API.System.UpdateProxySettings()))
@@ -1502,7 +1506,7 @@ WriteLiteral(">Address:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 489 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 492 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.EditorFor(m => m.ProxyAddress));
@@ -1513,7 +1517,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 490 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 493 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ValidationMessageFor(m => m.ProxyAddress));
@@ -1529,7 +1533,7 @@ WriteLiteral(">Port:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 497 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 500 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.EditorFor(m => m.ProxyPort));
@@ -1540,7 +1544,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 498 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 501 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ValidationMessageFor(m => m.ProxyPort));
@@ -1556,7 +1560,7 @@ WriteLiteral(">Username:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 505 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 508 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.EditorFor(m => m.ProxyUsername));
@@ -1567,7 +1571,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 506 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 509 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ValidationMessageFor(m => m.ProxyUsername));
@@ -1583,7 +1587,7 @@ WriteLiteral(">Password:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 513 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 516 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.EditorFor(m => m.ProxyPassword));
@@ -1594,7 +1598,7 @@ WriteLiteral("<br />\r\n");
WriteLiteral(" ");
#line 514 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 517 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ValidationMessageFor(m => m.ProxyPassword));
@@ -1616,7 +1620,7 @@ WriteLiteral(" value=\"Save Proxy Settings\"");
WriteLiteral(" />\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n");
#line 526 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 529 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
}
else
@@ -1641,7 +1645,7 @@ WriteLiteral(">Address:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 537 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 540 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.DisplayFor(m => m.ProxyAddress));
@@ -1657,7 +1661,7 @@ WriteLiteral(">Port:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 544 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 547 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.DisplayFor(m => m.ProxyPort));
@@ -1673,7 +1677,7 @@ WriteLiteral(">Username:\r\n </th>\r\n <td>\r\n");
WriteLiteral(" ");
#line 551 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 554 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.DisplayFor(m => m.ProxyUsername));
@@ -1688,7 +1692,7 @@ WriteLiteral(">Password:\r\n </th>\r\n <td>*******
"</td>\r\n </tr>\r\n </table>\r\n </div>\r\n");
#line 562 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 565 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
@@ -1703,7 +1707,7 @@ WriteLiteral(">\r\n");
WriteLiteral(" ");
#line 564 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
#line 567 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ActionLinkButton("Update Device Last Network Logons", MVC.API.System.UpdateLastNetworkLogonDates()));
@@ -1,7 +1,7 @@
@model Disco.Web.Areas.Config.Models.UserFlag.IndexModel
@{
Authorization.Require(Claims.Config.UserFlag.Show);
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "User Flags", MVC.Config.UserFlag.Index(null));
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "User Flags");
}
<div id="Config_UserFlags_Index">
@if (Model.UserFlags.Count == 0)
@@ -48,7 +48,7 @@ namespace Disco.Web.Areas.Config.Views.UserFlag
#line 2 "..\..\Areas\Config\Views\UserFlag\Index.cshtml"
Authorization.Require(Claims.Config.UserFlag.Show);
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "User Flags", MVC.Config.UserFlag.Index(null));
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "User Flags");
#line default
@@ -113,37 +113,37 @@ WriteLiteral(">\r\n <tr>\r\n <th>Name</th>\r\n
#line hidden
WriteLiteral(" <tr>\r\n <td>\r\n <a");
WriteAttribute("href", Tuple.Create(" href=\"", 809), Tuple.Create("\"", 863)
WriteAttribute("href", Tuple.Create(" href=\"", 776), Tuple.Create("\"", 830)
#line 25 "..\..\Areas\Config\Views\UserFlag\Index.cshtml"
, Tuple.Create(Tuple.Create("", 816), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.UserFlag.Index(item.Id))
, Tuple.Create(Tuple.Create("", 783), Tuple.Create<System.Object, System.Int32>(Url.Action(MVC.Config.UserFlag.Index(item.Id))
#line default
#line hidden
, 816), false)
, 783), false)
);
WriteLiteral(">\r\n <i");
WriteAttribute("class", Tuple.Create(" class=\"", 897), Tuple.Create("\"", 950)
, Tuple.Create(Tuple.Create("", 905), Tuple.Create("fa", 905), true)
, Tuple.Create(Tuple.Create(" ", 907), Tuple.Create("fa-", 908), true)
WriteAttribute("class", Tuple.Create(" class=\"", 864), Tuple.Create("\"", 917)
, Tuple.Create(Tuple.Create("", 872), Tuple.Create("fa", 872), true)
, Tuple.Create(Tuple.Create(" ", 874), Tuple.Create("fa-", 875), true)
#line 26 "..\..\Areas\Config\Views\UserFlag\Index.cshtml"
, Tuple.Create(Tuple.Create("", 911), Tuple.Create<System.Object, System.Int32>(item.Icon
, Tuple.Create(Tuple.Create("", 878), Tuple.Create<System.Object, System.Int32>(item.Icon
#line default
#line hidden
, 911), false)
, Tuple.Create(Tuple.Create(" ", 923), Tuple.Create("fa-lg", 924), true)
, Tuple.Create(Tuple.Create(" ", 929), Tuple.Create("d-", 930), true)
, 878), false)
, Tuple.Create(Tuple.Create(" ", 890), Tuple.Create("fa-lg", 891), true)
, Tuple.Create(Tuple.Create(" ", 896), Tuple.Create("d-", 897), true)
#line 26 "..\..\Areas\Config\Views\UserFlag\Index.cshtml"
, Tuple.Create(Tuple.Create("", 932), Tuple.Create<System.Object, System.Int32>(item.IconColour
, Tuple.Create(Tuple.Create("", 899), Tuple.Create<System.Object, System.Int32>(item.IconColour
#line default
#line hidden
, 932), false)
, 899), false)
);
WriteLiteral("></i>\r\n");
+7 -7
View File
@@ -4753,32 +4753,32 @@ div.form > table table.sub > tbody > tr > th.name {
border-right: none;
padding-right: 0;
}
div.infoBox {
div.info-box {
margin: 0.4em 0;
padding: 0.4em;
border: 1px solid #fff397;
background-color: #fffef7;
}
div.infoBox i {
div.info-box i {
color: #1e6dab;
}
div.infoBox.alert {
div.info-box.alert {
border: 1px solid #fa6800;
background-color: #fff9f5;
color: #333333;
}
div.infoBox.alert i {
div.info-box.alert i {
color: #fa6800;
}
div.infoBox.error {
div.info-box.error {
border: 1px solid #e51400;
background-color: #fffaf9;
color: #e51400;
}
div.infoBox.error i {
div.info-box.error i {
color: #e51400;
}
div.infoBox p {
div.info-box p {
line-height: 1.2em;
}
p.fa-p {
File diff suppressed because one or more lines are too long
+20
View File
@@ -109,6 +109,7 @@
margin: 4px 0 8px 4px;
padding: 4px 0 4px 6px;
border-left: 4px solid #cccccc;
background-color: #ffffff;
}
.Config_LinkedGroup_Instance div.code {
margin-left: 2px;
@@ -920,6 +921,19 @@ div.logEventsViewport table.logEventsViewport > tbody > tr > td.eventType {
#plugins #pageMenu td .pageMenuArea > h3:hover {
color: #335a87;
}
#dialogUninstallPlugins #uninstallPlugin {
margin: .5em 0;
}
#dialogUninstallPlugins #uninstallPluginData {
margin: .5em 0;
}
#dialogUninstallPluginConfirm #uninstallPluginConfirm {
text-align: center;
margin: 1em 0 0.5em 0;
}
#dialogUninstallPluginConfirm #uninstallPluginDataConfirm {
margin-top: 1em;
}
#pluginCatalog #pluginCatalogHeading {
margin-bottom: 20px;
text-align: right;
@@ -948,6 +962,12 @@ div.logEventsViewport table.logEventsViewport > tbody > tr > td.eventType {
float: right;
font-size: 12px;
}
#dialogInstallPlugin div.info-box {
margin-top: 1em;
}
#dialogUploadPlugin #pluginFile {
margin: 1em 0 1em 6px;
}
#Config_AuthRoles_Show #Config_AuthRoles_Claims_Tree span.fancytree-node {
padding: 1px;
border: none;
+30
View File
@@ -37,6 +37,7 @@
margin: 4px 0 8px 4px;
padding: 4px 0 4px 6px;
border-left: 4px solid @SubtleBorderColour;
background-color: @white;
div.code {
margin-left: 2px;
@@ -1053,6 +1054,24 @@ div.logEventsViewport {
}
}
#dialogUninstallPlugins {
#uninstallPlugin{
margin: .5em 0;
}
#uninstallPluginData{
margin: .5em 0;
}
}
#dialogUninstallPluginConfirm {
#uninstallPluginConfirm {
text-align: center;
margin: 1em 0 0.5em 0;
}
#uninstallPluginDataConfirm{
margin-top: 1em;
}
}
#pluginCatalog {
#pluginCatalogHeading {
margin-bottom: 20px;
@@ -1094,6 +1113,17 @@ div.logEventsViewport {
}
}
#dialogInstallPlugin {
div.info-box {
margin-top: 1em;
}
}
#dialogUploadPlugin {
#pluginFile {
margin: 1em 0 1em 6px;
}
}
#Config_AuthRoles_Show {
#Config_AuthRoles_Claims_Tree {
span.fancytree-node {
File diff suppressed because one or more lines are too long
+7 -7
View File
@@ -1092,32 +1092,32 @@ div.form > table table.sub > tbody > tr > th.name {
border-right: none;
padding-right: 0;
}
div.infoBox {
div.info-box {
margin: 0.4em 0;
padding: 0.4em;
border: 1px solid #fff397;
background-color: #fffef7;
}
div.infoBox i {
div.info-box i {
color: #1e6dab;
}
div.infoBox.alert {
div.info-box.alert {
border: 1px solid #fa6800;
background-color: #fff9f5;
color: #333333;
}
div.infoBox.alert i {
div.info-box.alert i {
color: #fa6800;
}
div.infoBox.error {
div.info-box.error {
border: 1px solid #e51400;
background-color: #fffaf9;
color: #e51400;
}
div.infoBox.error i {
div.info-box.error i {
color: #e51400;
}
div.infoBox p {
div.info-box p {
line-height: 1.2em;
}
p.fa-p {
+1 -1
View File
@@ -1090,7 +1090,7 @@ div.form {
}
}
div.infoBox {
div.info-box {
margin: 0.4em 0;
padding: 0.4em;
border: 1px solid lighten(@StatusHighlight, 35%);
File diff suppressed because one or more lines are too long
@@ -647,19 +647,20 @@
{
@Html.ActionLinkSmallButton("Trust Enrol", MVC.API.Device.UpdateAllowUnauthenticatedEnrol(Model.Device.SerialNumber, true.ToString(), true), "Device_Show_Device_Actions_TrustEnrol_Button")
<div id="Device_Show_Device_Actions_TrustEnrol_Dialog" class="dialog" title="Trust this Device?">
<div class="ui-widget">
<div class="ui-state-highlight ui-corner-all" style="padding: 6px;">
<div style="padding-bottom: 6px;">
<i class="fa fa-exclamation-triangle fa-lg"></i>&nbsp;
This action will allow a device <em>claiming</em> to have the Serial Number '@(Model.Device.SerialNumber)' to be enrolled without authentication.
</div>
<p>
Devices flagged as 'trusted' are allowed a single-use device enrolment without providing authentication (for example: Active Directory Computer Account).
</p>
<p>
Once a device enrols, its trust setting is reset and additional enrolments need to be authenticated (domain joined) or manually trusted again.
</p>
<div class="info-box" style="margin-top: 1em;">
<p class="fa-p" style="margin-bottom: 1em;">
<i class="fa fa-exclamation-triangle"></i>This action will allow a device <em>claiming</em> to have the Serial Number '@(Model.Device.SerialNumber)' to be enrolled without authentication.
</p>
<div>
<strong>Are you sure you want to allow an unauthenticated enrolment?</strong>
</div>
</div>
<div class="smallMessage" style="margin-top: 10px; font-size: 1em;">
Devices flagged as 'trusted' are allowed a single-use device enrolment without providing authentication (for example: Active Directory Computer Account).<br />
Once a devices enrol, their trust setting is reset and additional enrolments need to be authenticated (domain joined) or manually trusted again.
</div>
</div>
<script type="text/javascript">
$(function () {
@@ -699,10 +700,14 @@
{
@Html.ActionLinkSmallButton("Untrust Enrol", MVC.API.Device.UpdateAllowUnauthenticatedEnrol(Model.Device.SerialNumber, false.ToString(), true), "Device_Show_Device_Actions_UntrustEnrol_Button")
<div id="Device_Show_Device_Actions_UntrustEnrol_Dialog" title="Untrust this Device?">
<div style="padding-bottom: 6px;">
<i class="fa fa-info-circle information"></i>&nbsp;This action will require the device to enrol with authentication (for example: domain joined).
<div class="info-box">
<p class="fa-p" style="margin-bottom: 1em;">
<i class="fa fa-info-circle"></i>This action will require the device to enrol with authentication (for example: domain joined).
</p>
<div>
<strong>Are you sure you want to require an authenticated enrolment?</strong>
</div>
</div>
<strong>Are you sure you want to require an authenticated enrolment?</strong>
</div>
<script type="text/javascript">
$(function () {
@@ -2283,49 +2283,45 @@ WriteLiteral(" class=\"dialog\"");
WriteLiteral(" title=\"Trust this Device?\"");
WriteLiteral(">\r\n <div");
WriteLiteral(@">
<p>
Devices flagged as 'trusted' are allowed a single-use device enrolment without providing authentication (for example: Active Directory Computer Account).
</p>
<p>
Once a device enrols, its trust setting is reset and additional enrolments need to be authenticated (domain joined) or manually trusted again.
</p>
<div");
WriteLiteral(" class=\"ui-widget\"");
WriteLiteral(" class=\"info-box\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" style=\"margin-top: 1em;\"");
WriteLiteral(" class=\"ui-state-highlight ui-corner-all\"");
WriteLiteral(">\r\n <p");
WriteLiteral(" style=\"padding: 6px;\"");
WriteLiteral(" class=\"fa-p\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" style=\"margin-bottom: 1em;\"");
WriteLiteral(" style=\"padding-bottom: 6px;\"");
WriteLiteral(">\r\n <i");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa fa-exclamation-triangle\"");
WriteLiteral(" class=\"fa fa-exclamation-triangle fa-lg\"");
WriteLiteral("></i>&nbsp;\r\n This action will allow a device <em>" +
"claiming</em> to have the Serial Number \'");
WriteLiteral("></i>This action will allow a device <em>claiming</em> to have the Serial Number " +
"\'");
#line 654 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(Model.Device.SerialNumber);
#line 658 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(Model.Device.SerialNumber);
#line default
#line hidden
WriteLiteral(@"' to be enrolled without authentication.
</div>
</p>
<div>
<strong>Are you sure you want to allow an unauthenticated enrolment?</strong>
</div>
</div>
<div");
WriteLiteral(" class=\"smallMessage\"");
WriteLiteral(" style=\"margin-top: 10px; font-size: 1em;\"");
WriteLiteral(@">
Devices flagged as 'trusted' are allowed a single-use device enrolment without providing authentication (for example: Active Directory Computer Account).<br />
Once a devices enrol, their trust setting is reset and additional enrolments need to be authenticated (domain joined) or manually trusted again.
</div>
</div>
");
@@ -2356,7 +2352,7 @@ WriteLiteral(">\r\n $(function () {\r\n
" });\r\n </script>\r\n");
#line 697 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 698 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
}
@@ -2365,7 +2361,7 @@ WriteLiteral(">\r\n $(function () {\r\n
WriteLiteral(" ");
#line 698 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 699 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
if (Model.Device.CanUpdateUntrustEnrol())
{
@@ -2373,14 +2369,14 @@ WriteLiteral(" ");
#line default
#line hidden
#line 700 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 701 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Untrust Enrol", MVC.API.Device.UpdateAllowUnauthenticatedEnrol(Model.Device.SerialNumber, false.ToString(), true), "Device_Show_Device_Actions_UntrustEnrol_Button"));
#line default
#line hidden
#line 700 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 701 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
@@ -2394,15 +2390,24 @@ WriteLiteral(" title=\"Untrust this Device?\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" style=\"padding-bottom: 6px;\"");
WriteLiteral(" class=\"info-box\"");
WriteLiteral(">\r\n <i");
WriteLiteral(">\r\n <p");
WriteLiteral(" class=\"fa fa-info-circle information\"");
WriteLiteral(" class=\"fa-p\"");
WriteLiteral(@"></i>&nbsp;This action will require the device to enrol with authentication (for example: domain joined).
WriteLiteral(" style=\"margin-bottom: 1em;\"");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"fa fa-info-circle\"");
WriteLiteral(@"></i>This action will require the device to enrol with authentication (for example: domain joined).
</p>
<div>
<strong>Are you sure you want to require an authenticated enrolment?</strong>
</div>
</div>
<strong>Are you sure you want to require an authenticated enrolment?</strong>
</div>
");
@@ -2442,7 +2447,7 @@ WriteLiteral(@">
");
#line 736 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 741 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
}
@@ -2451,7 +2456,7 @@ WriteLiteral(@">
WriteLiteral(" ");
#line 737 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 742 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
if (Model.Device.CanDecommission())
{
@@ -2459,14 +2464,14 @@ WriteLiteral(" ");
#line default
#line hidden
#line 739 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 744 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Decommission", MVC.API.Device.Decommission(), "Device_Show_Device_Actions_Decommission_Button"));
#line default
#line hidden
#line 739 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 744 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
@@ -2498,13 +2503,13 @@ WriteLiteral(" class=\"none\"");
WriteLiteral(">\r\n");
#line 746 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 751 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line default
#line hidden
#line 746 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 751 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
foreach (DecommissionReasons decommissionReason in Enum.GetValues(typeof(DecommissionReasons)))
{
@@ -2515,34 +2520,34 @@ WriteLiteral(" <li>\r\n
WriteLiteral(" type=\"radio\"");
WriteAttribute("id", Tuple.Create(" id=\"", 47449), Tuple.Create("\"", 47527)
, Tuple.Create(Tuple.Create("", 47454), Tuple.Create("Device_Show_Device_Actions_Decommission_Reason_", 47454), true)
WriteAttribute("id", Tuple.Create(" id=\"", 47481), Tuple.Create("\"", 47559)
, Tuple.Create(Tuple.Create("", 47486), Tuple.Create("Device_Show_Device_Actions_Decommission_Reason_", 47486), true)
#line 749 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
, Tuple.Create(Tuple.Create("", 47501), Tuple.Create<System.Object, System.Int32>((int)decommissionReason
#line 754 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
, Tuple.Create(Tuple.Create("", 47533), Tuple.Create<System.Object, System.Int32>((int)decommissionReason
#line default
#line hidden
, 47501), false)
, 47533), false)
);
WriteLiteral("\r\n name=\"Device_Show_Device_Actions_Decomm" +
"ission_Reason\"");
WriteAttribute("value", Tuple.Create(" value=\"", 47623), Tuple.Create("\"", 47657)
WriteAttribute("value", Tuple.Create(" value=\"", 47655), Tuple.Create("\"", 47689)
#line 750 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
, Tuple.Create(Tuple.Create("", 47631), Tuple.Create<System.Object, System.Int32>((int)decommissionReason
#line 755 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
, Tuple.Create(Tuple.Create("", 47663), Tuple.Create<System.Object, System.Int32>((int)decommissionReason
#line default
#line hidden
, 47631), false)
, 47663), false)
);
WriteLiteral(" ");
#line 750 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 755 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write((decommissionReason == DecommissionReasons.EndOfLife) ? "checked=\"checked\"" : string.Empty);
@@ -2550,21 +2555,21 @@ WriteLiteral(" ");
#line hidden
WriteLiteral("/>\r\n <label");
WriteAttribute("for", Tuple.Create(" for=\"", 47800), Tuple.Create("\"", 47879)
, Tuple.Create(Tuple.Create("", 47806), Tuple.Create("Device_Show_Device_Actions_Decommission_Reason_", 47806), true)
WriteAttribute("for", Tuple.Create(" for=\"", 47832), Tuple.Create("\"", 47911)
, Tuple.Create(Tuple.Create("", 47838), Tuple.Create("Device_Show_Device_Actions_Decommission_Reason_", 47838), true)
#line 751 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
, Tuple.Create(Tuple.Create("", 47853), Tuple.Create<System.Object, System.Int32>((int)decommissionReason
#line 756 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
, Tuple.Create(Tuple.Create("", 47885), Tuple.Create<System.Object, System.Int32>((int)decommissionReason
#line default
#line hidden
, 47853), false)
, 47885), false)
);
WriteLiteral(">");
#line 751 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 756 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(decommissionReason.ReasonMessage());
@@ -2573,7 +2578,7 @@ WriteLiteral(">");
WriteLiteral("</label>\r\n </li>\r\n");
#line 753 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 758 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
}
@@ -2591,7 +2596,7 @@ WriteLiteral(">\r\n $(function () {\r\n
"uttonDialog = null;\r\n var deviceSerialNumber = \'");
#line 761 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 766 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(Model.Device.SerialNumber);
@@ -2624,7 +2629,7 @@ WriteLiteral("\';\r\n\r\n button.click(function () {\r\n\
" });\r\n </script>\r\n");
#line 797 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 802 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
}
@@ -2633,7 +2638,7 @@ WriteLiteral("\';\r\n\r\n button.click(function () {\r\n\
WriteLiteral(" ");
#line 798 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 803 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
if (Model.Device.CanRecommission())
{
@@ -2641,14 +2646,14 @@ WriteLiteral(" ");
#line default
#line hidden
#line 800 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 805 "..\..\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 800 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 805 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
@@ -2702,7 +2707,7 @@ WriteLiteral(@">
");
#line 835 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 840 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
}
@@ -2711,7 +2716,7 @@ WriteLiteral(@">
WriteLiteral(" ");
#line 836 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 841 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
if (Model.Device.CanDelete())
{
@@ -2719,14 +2724,14 @@ WriteLiteral(" ");
#line default
#line hidden
#line 838 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 843 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
Write(Html.ActionLinkSmallButton("Delete Device", MVC.API.Device.Delete(Model.Device.SerialNumber, true), "Device_Show_Device_Actions_Delete_Button"));
#line default
#line hidden
#line 838 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 843 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
@@ -2786,7 +2791,7 @@ WriteLiteral(@">
");
#line 876 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
#line 881 "..\..\Views\Device\DeviceParts\_Subject.cshtml"
}