@using TightWiki.Models @model TightWiki.Models.ViewModels.Admin.EmojiViewModel @{ Layout = "/Views/Shared/_Layout.cshtml"; var sessionState = ViewData["SessionState"] as TightWiki.SessionState ?? throw new Exception("Wiki State Context cannot be null."); }

Emoji



@if (!string.IsNullOrEmpty(Model.ErrorMessage)) {
@Html.Raw(Model.ErrorMessage)
} @if (!string.IsNullOrEmpty(Model.SuccessMessage)) {
@Html.Raw(Model.SuccessMessage)
} @using (Html.BeginForm(null, null, new { navigation = Model.Emoji.Name }, FormMethod.Post, true, new { action = $"{GlobalConfiguration.BasePath}{Context.Request.Path}", enctype = "multipart/form-data" })) { @Html.AntiForgeryToken() @Html.HiddenFor(m => m.OriginalName) @Html.HiddenFor(m => m.Emoji.Id)
@if (@Model.Emoji.Name != "") {
}
@Html.TextBoxFor(m => m.Emoji.Name, new { @class = "form-control" })
@Html.ValidationMessageFor(m => m.Emoji.Name)
@Html.TextBoxFor(m => m.Categories, new { @class = "form-control" })
@Html.ValidationMessageFor(m => m.Categories)
}