Skip to content

Instantly share code, notes, and snippets.

@asouza
Created November 22, 2014 16:17
Show Gist options
  • Save asouza/dff5b229098a10fd3eb0 to your computer and use it in GitHub Desktop.
Save asouza/dff5b229098a10fd3eb0 to your computer and use it in GitHub Desktop.
@(elements: helper.FieldElements)
<div class="form-group @if(elements.hasErrors){ has-error }" draggable="true">
<div class="col-sm-2">
<label for="inputNumero" class="control-label">@elements.label</label>
</div>
<div class="col-sm-10">
<input type="text" class="form-control" name="@elements.name" value="@elements.field.value" id="@elements.id">
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment