+@using PagedList.Mvc
+@{
+ var filter = (Baud.Deployment.Web.Areas.Security.Models.Positions.IndexFilter)ViewBag.Filter;
+ ViewBag.Title = "Positions";
+}
+
+@ViewBag.Title
+
+
+ @using (var f = Html.BeginCustomForm(method: FormMethod.Get))
+ {
+ using (var s = f.BeginSection("Filter"))
+ {
+ @s.FieldFor(m => filter.Name)
+ @s.FieldFor(m => filter.IsActive)
+ }
+
+ using (var s = f.BeginNavigation())
+ {
+ @s.Submit("Filter")
+ }
+ }
+
+
+@if (Model.Any())
+{
+
+
+
+ @Html.SortingLink(m => m[0].Name) |
+ @Html.SortingLink(m => m[0].IsActive) |
+ |
+
+
+
+ @foreach (var position in Model)
+ {
+
+ @position.Name |
+ @position.IsActive |
+ @Html.GuardedActionLink("Detail", MVC.Security.Positions.Detail(position.ID)) |
+
+ }
+
+
+
+ @Html.PagedListPager(Model, page => Url.CurrentWithPageNumber(page), PagedListRenderOptions.OnlyShowFivePagesAtATime)
+}
+else
+{
+ No data
+}
\ No newline at end of file
diff --git a/src/Server/DeploymentFramework/Web/Areas/Security/Views/Roles/Detail.cshtml b/src/Server/DeploymentFramework/Web/Areas/Security/Views/Roles/Detail.cshtml
new file mode 100644
index 0000000..bfeac30
--- /dev/null
+++ b/src/Server/DeploymentFramework/Web/Areas/Security/Views/Roles/Detail.cshtml
@@ -0,0 +1,17 @@
+@model Baud.Deployment.BusinessLogic.Domain.Security.Entities.Role
+@{
+ ViewBag.Title = "Role detail";
+}
+
+@ViewBag.Title
+
+@using (var f = Html.BeginReadOnlyForm())
+{
+ using (var s = f.BeginSection())
+ {
+ @s.FieldFor(m => m.Name)
+ @s.FieldFor(m => m.IsActive)
+ }
+}
+
+@Html.GuardedActionLink("Edit", MVC.Security.Roles.Edit(Model.ID), new SimpleHtmlAttributes("class", "btn btn-default"))
\ No newline at end of file
diff --git a/src/Server/DeploymentFramework/Web/Areas/Security/Views/Roles/Edit.cshtml b/src/Server/DeploymentFramework/Web/Areas/Security/Views/Roles/Edit.cshtml
new file mode 100644
index 0000000..60ffa33
--- /dev/null
+++ b/src/Server/DeploymentFramework/Web/Areas/Security/Views/Roles/Edit.cshtml
@@ -0,0 +1,20 @@
+@model Baud.Deployment.BusinessLogic.Domain.Security.Entities.Role
+@{
+ ViewBag.Title = "Role detail";
+}
+
+@ViewBag.Title
+
+@using (var f = Html.BeginCustomForm())
+{
+ using (var s = f.BeginSection())
+ {
+ @s.FieldFor(m => m.Name)
+ @s.FieldFor(m => m.IsActive)
+ }
+
+ using (var n = f.BeginNavigation())
+ {
+ @n.Submit("Save")
+ }
+}
\ No newline at end of file
diff --git a/src/Server/DeploymentFramework/Web/Areas/Security/Views/Roles/Index.cshtml b/src/Server/DeploymentFramework/Web/Areas/Security/Views/Roles/Index.cshtml
new file mode 100644
index 0000000..ce5010d
--- /dev/null
+++ b/src/Server/DeploymentFramework/Web/Areas/Security/Views/Roles/Index.cshtml
@@ -0,0 +1,53 @@
+@model PagedList.PagedList
+@using PagedList.Mvc
+@{
+ var filter = (Baud.Deployment.Web.Areas.Security.Models.Roles.IndexFilter)ViewBag.Filter;
+ ViewBag.Title = "Roles";
+}
+
+@ViewBag.Title
+
+
+ @using (var f = Html.BeginCustomForm(method: FormMethod.Get))
+ {
+ using (var s = f.BeginSection("Filter"))
+ {
+ @s.FieldFor(m => filter.Name)
+ @s.FieldFor(m => filter.IsActive)
+ }
+
+ using (var s = f.BeginNavigation())
+ {
+ @s.Submit("Filter")
+ }
+ }
+
+
+@if (Model.Any())
+{
+
+
+
+ @Html.SortingLink(m => m[0].Name) |
+ @Html.SortingLink(m => m[0].IsActive) |
+ |
+
+
+
+ @foreach (var role in Model)
+ {
+
+ @role.Name |
+ @role.IsActive |
+ @Html.GuardedActionLink("Detail", MVC.Security.Roles.Detail(role.ID)) |
+
+ }
+
+
+
+ @Html.PagedListPager(Model, page => Url.CurrentWithPageNumber(page), PagedListRenderOptions.OnlyShowFivePagesAtATime)
+}
+else
+{
+ No data
+}
\ No newline at end of file
diff --git a/src/Server/DeploymentFramework/Web/Framework/Web/Layout/Handlers/TextOnlyFieldHandler.cs b/src/Server/DeploymentFramework/Web/Framework/Web/Layout/Handlers/TextOnlyFieldHandler.cs
index 56febfc..fea69e8 100644
--- a/src/Server/DeploymentFramework/Web/Framework/Web/Layout/Handlers/TextOnlyFieldHandler.cs
+++ b/src/Server/DeploymentFramework/Web/Framework/Web/Layout/Handlers/TextOnlyFieldHandler.cs
@@ -18,10 +18,10 @@ public TextOnlyFieldHandler(IFieldGenerator fieldGenerator)
{
}
- //public override IHtmlString GenerateFieldHtml(ChameleonForms.Component.Config.IReadonlyFieldConfiguration fieldConfiguration)
- //{
- // var text = base.GenerateFieldHtml(fieldConfiguration);
- // return Original.OriginalDetailFormTemplateHelpers.FieldContent(text);
- //}
+ ////public override IHtmlString GenerateFieldHtml(ChameleonForms.Component.Config.IReadonlyFieldConfiguration fieldConfiguration)
+ ////{
+ //// var text = base.GenerateFieldHtml(fieldConfiguration);
+ //// return Original.OriginalDetailFormTemplateHelpers.FieldContent(text);
+ ////}
}
}
\ No newline at end of file
diff --git a/src/Server/DeploymentFramework/Web/Providers/NuGetDeployPackagesProvider.cs b/src/Server/DeploymentFramework/Web/Providers/NuGetDeployPackagesProvider.cs
index 5ddc038..f6a2810 100644
--- a/src/Server/DeploymentFramework/Web/Providers/NuGetDeployPackagesProvider.cs
+++ b/src/Server/DeploymentFramework/Web/Providers/NuGetDeployPackagesProvider.cs
@@ -72,9 +72,9 @@ public byte[] GetPackageBytes(string packageFullPath)
return File.ReadAllBytes(packageFullPath);
}
- // TODO get package file name
+ //// TODO get package file name
- // TODO list available updates
+ //// TODO list available updates
private IPackageRepository GetRepository()
{
diff --git a/src/Server/DeploymentFramework/Web/Web.csproj b/src/Server/DeploymentFramework/Web/Web.csproj
index 67c16c8..1de59c7 100644
--- a/src/Server/DeploymentFramework/Web/Web.csproj
+++ b/src/Server/DeploymentFramework/Web/Web.csproj
@@ -303,7 +303,11 @@
+
+
+
+
@@ -405,6 +409,12 @@
+
+
+
+
+
+