Created
August 12, 2015 06:59
-
-
Save beyond-code-github/a663d86e6eb72cef7819 to your computer and use it in GitHub Desktop.
Generic list markup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>@Model.ListTitle</h1> | |
<form action="@Model.PostUrl"> | |
<input type="text" id="name" /> | |
<input type="text" id="notes" /> | |
<input type="submit" id="addNewButton" value="Add" /> | |
</form> | |
<table id="dataTableTarget"> | |
</table> | |
<script> | |
$.dataTable("#dataTableTarget", "@Model.GetUrl", [ | |
{ label: "Name", value: "name" }, | |
{ label: "Notes", value: "notes"} ]); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment