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

Add Emoji

Configuration to add an emoji.

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