Files
Disco/Disco.Web/Areas/Config/Views/DocumentTemplate/CreatePackage.cshtml
T
2025-07-31 16:18:32 +10:00

41 lines
1.4 KiB
Plaintext

@model Disco.Web.Areas.Config.Models.DocumentTemplate.CreatePackageModel
@{
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 Package");
}
@using (Html.BeginForm(MVC.Config.DocumentTemplate.CreatePackage()))
{
@Html.AntiForgeryToken()
<div class="form" style="width: 650px">
<table>
<tr>
<th>
Id:
</th>
<td>
@Html.TextBoxFor(model => model.Id)<br />@Html.ValidationMessageFor(model => model.Id)
</td>
</tr>
<tr>
<th>
Description:
</th>
<td>
@Html.TextBoxFor(model => model.Description)<br />@Html.ValidationMessageFor(model => model.Description)
</td>
</tr>
<tr>
<th>
Scope:
</th>
<td>
@Html.DropDownListFor(model => model.Scope, Model.Scopes.ToSelectListItems(null))
</td>
</tr>
</table>
<p class="actions">
<input type="submit" class="button" value="Create" />
</p>
</div>
}