Skip to content

Instantly share code, notes, and snippets.

@ryanvgates
Created August 1, 2015 05:09
Show Gist options
  • Save ryanvgates/980598b6845884101077 to your computer and use it in GitHub Desktop.
Save ryanvgates/980598b6845884101077 to your computer and use it in GitHub Desktop.
View
<%if(!ViewData.ModelState.IsValid) { %>
<div id="save-fail">
<%= Html.ValidationSummary("Please correct the errors and try again.") %>
</div>
<%} %>
<% using (Html.BeginForm("Create", "OrgSetup", FormMethod.Post)){%>
<p class="floatLabel"><label for="FirstName">First Name</label></p>
<p><label for="LastName">Last Name</label></p>
<p class='floatLabel clear'><%= Html.TextBox("FirstName", Model.FirstName)%></p>
<p><%= Html.TextBox("LastName", Model.LastName)%></p>
<p class="label clear"><label for="Name">Organization Name</label></p>
<p><%= Html.TextBox("Name", Model.Name)%></p>
<p class="label"><label for="Phone">Organization Phone</label></p>
<p><%= Html.TextBox("Phone", Model.Phone)%></p>
<% } %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment