Files
Disco/Disco.Web/Areas/Config/Views/DeviceProfile/Index.cshtml
T
Gary Sharp a099d68915 Permissions & Authorization for Users #24
Initial Release; Includes Database and MVC refactoring
2013-10-10 19:13:16 +11:00

18 lines
742 B
Plaintext

@model Disco.Web.Areas.Config.Models.DeviceProfile.IndexModel
@{
Authorization.Require(Claims.Config.DeviceProfile.Show);
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Device Profiles");
}
@Html.Partial(MVC.Config.DeviceProfile.Views._Table, Model, new ViewDataDictionary())
<div class="actionBar">
@if (Authorization.Has(Claims.Config.DeviceProfile.ConfigureDefaults))
{
@Html.ActionLinkButton("Modify Default Profiles", MVC.Config.DeviceProfile.Defaults())
}
@if (Authorization.HasAll(Claims.Config.DeviceProfile.Configure, Claims.Config.DeviceProfile.Create))
{
@Html.ActionLinkButton("Create Device Profile", MVC.Config.DeviceProfile.Create())
}
</div>