Skip to content

Instantly share code, notes, and snippets.

@PetersonDave
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PetersonDave/b4cefa420cdc0264e9e7 to your computer and use it in GitHub Desktop.
Save PetersonDave/b4cefa420cdc0264e9e7 to your computer and use it in GitHub Desktop.
@using System.Web.Mvc.Html
@using RazorViewsForMarketers.Helpers
@inherits BladeRazorRenderingEditorTemplate<RazorViewsForMarketers.Models.Fields.SingleLineTextField>
<div class="field">
<!-- model binding fields -->
@Html.HiddenFor(model => model.Id)
@Html.HiddenFor(model => model.IsRequired)
@Html.Hidden("ModelType", Model.ModelType)
<!-- model binding fields -->
@BladeHtmlHelper.SitecoreLabel(Html, model => model)
@Html.TextBoxFor(model => model.Response)
@BladeHtmlHelper.RequiredIndicator(model => model)
<p>@Model.Information</p>
@Html.ValidationMessageFor(model => model.Response)
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment