Skip to content

Instantly share code, notes, and snippets.

@klimesf
Last active December 15, 2015 09:21
Show Gist options
  • Save klimesf/3f602b61ceb4157ead4a to your computer and use it in GitHub Desktop.
Save klimesf/3f602b61ceb4157ead4a to your computer and use it in GitHub Desktop.
Nutform layouts
<div class="container">
<form class="form" role="form" nutform:entity-form="cz.cvut.fel.nutforms.example.model.Bug:edit:1">
<!-- The form is automagically generated here -->
</form>
</div>
<div class="container">
<form class="form" role="form" nutform:entity-form="cz.cvut.fel.nutforms.example.model.Bug:edit:1>
<div class="pair">
<label nutform:field="id"/>
<input nutform:field="id"/>
</div>
<div class="pair">
<label nutform:field="description"/>
<input nutform:field="description"/>
</div>
<!-- Any other missing fields are generated here -->
<input nutform:submit="submit" class="btn btn-success"/>
</form>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment