26 lines
866 B
HTML
26 lines
866 B
HTML
{{define "budget-new"}}
|
|
<div id="newbudgetmodal" class="modal">
|
|
<script>
|
|
$(document).ready(function () {
|
|
$('#newbudgetform').ajaxForm({
|
|
error: function() {
|
|
$('#errorcreatingbudget').show();
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
<h3>New Budget</h3>
|
|
<form id="newbudgetform" action="/api/v1/budget/new" method="POST">
|
|
<div class="form-group">
|
|
<label for="name">Name</label>
|
|
<input type="text" name="name" class="form-control" placeholder="Name" />
|
|
</div>
|
|
|
|
<div id="errorcreatingbudget">
|
|
Error creating budget.
|
|
</div>
|
|
|
|
<input type="submit" value="Create" class="form-control" />
|
|
</form>
|
|
</div>
|
|
{{end}} |