@model Disco.Web.Areas.Config.Models.DocumentTemplate.CreateModel @{ Authorization.RequireAll(Claims.Config.DocumentTemplate.Create, Claims.Config.DocumentTemplate.Configure); ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Document Templates", MVC.Config.DocumentTemplate.Index(null), "Create"); } @using (Html.BeginForm(MVC.Config.DocumentTemplate.Create(), FormMethod.Post, new { enctype = "multipart/form-data" })) { @Html.AntiForgeryToken()
| Id: |
@Html.TextBoxFor(model => model.Id) @Html.ValidationMessageFor(model => model.Id) |
|---|---|
| Description: |
@Html.TextBoxFor(model => model.Description) @Html.ValidationMessageFor(model => model.Description) |
| Scope: | @Html.DropDownListFor(model => model.Scope, Model.Scopes.ToSelectListItems(null)) |
| Template PDF |
@Html.ValidationMessage("Template") |
| Types: | @CommonHelpers.CheckBoxList("Types", Model.JobTypes.ToSelectListItems(Model.Types), 2) |
|
@jt.Description Sub Types @CommonHelpers.CheckboxBulkSelect(string.Format("CheckboxBulkSelect_{0}", jt.Id)) |
@CommonHelpers.CheckBoxList("SubTypes", Model.JobSubTypes.Where(jst => jst.JobTypeId == jt.Id).ToList().ToSelectListItems(Model.SubTypes), 2) |