create tag - tag name is a required

This commit is contained in:
urbanit
2015-02-01 14:17:35 +01:00
committed by agriffard
parent 453389d4c9
commit deba3b2756

View File

@@ -5,7 +5,7 @@
@using (Html.BeginFormAntiForgeryPost()) {
<fieldset>
@Html.LabelFor(m => m.TagName, T("New Tag Name"))
@Html.TextBoxFor(m => m.TagName, new { @class = "text", placeholder = T("New Tag Name") })
@Html.TextBoxFor(m => m.TagName, new { @class = "text", placeholder = T("New Tag Name"), @required = "required" })
</fieldset>
<fieldset>
<button class="primaryAction" type="submit" name="submit.Create" value="yes">@T("Add Tag")</button>