Improve modal
This commit is contained in:
parent
019ffa34cd
commit
c598694eb4
@ -1,26 +1,40 @@
|
|||||||
{{define "budget-new"}}
|
{{define "budget-new"}}
|
||||||
<div id="newbudgetmodal" class="modal">
|
<div id="newbudgetmodal" class="modal fade">
|
||||||
<script>
|
<div class="modal-dialog" role="document">
|
||||||
$(document).ready(function () {
|
<script>
|
||||||
$('#newbudgetform').ajaxForm({
|
$(document).ready(function () {
|
||||||
error: function() {
|
$('#errorcreatingbudget').hide();
|
||||||
$('#errorcreatingbudget').show();
|
$('#newbudgetform').ajaxForm({
|
||||||
}
|
error: function() {
|
||||||
|
$('#errorcreatingbudget').show();
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
</script>
|
||||||
</script>
|
<div class="modal-content">
|
||||||
<h3>New Budget</h3>
|
<div class="modal-header">
|
||||||
<form id="newbudgetform" action="/api/v1/budget/new" method="POST">
|
<h5 class="modal-title">New Budget</h5>
|
||||||
<div class="form-group">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
<label for="name">Name</label>
|
<span aria-hidden="true">×</span>
|
||||||
<input type="text" name="name" class="form-control" placeholder="Name" />
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
<form id="newbudgetform" action="/api/v1/budget/new" method="POST">
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="name">Name</label>
|
||||||
|
<input type="text" name="name" class="form-control" placeholder="Name" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="errorcreatingbudget">
|
<div id="errorcreatingbudget">
|
||||||
Error creating budget.
|
Error creating budget.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||||
|
<input type="submit" class="btn btn-primary" value="Create" class="form-control" />
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<input type="submit" value="Create" class="form-control" />
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
Loading…
x
Reference in New Issue
Block a user