Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active September 28, 2016 14:56
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 bjoerntx/9be435bdc4487a8caddb961b85372fdc to your computer and use it in GitHub Desktop.
Save bjoerntx/9be435bdc4487a8caddb961b85372fdc to your computer and use it in GitHub Desktop.
@model TXTextControl.ReportingCloud.TemplateInfo
@{
ViewBag.Title = "Index";
}
<h2>@Model.TemplateName</h2>
@using (Html.BeginForm("Merge", "Home", FormMethod.Post))
{
foreach (TXTextControl.ReportingCloud.MergeField field in
Helpers.RemoveDuplicates(Model.MergeFields))
{
<p>
@Html.Label(field.Text)<br />
@Html.TextBox(field.Name, "",
new { @class = "form-control",
required = "true",
placeholder = field.Name,
title = "Type in the " + field.Text })
</p>
}
<input type="submit" value="Merge document" />
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment