Files
wireframe/src/views/partials/backend/modals/addGroup.ejs
T

55 lines
2.3 KiB
Plaintext

<div class="modal fade" id="addGroup" tabindex="-1" role="dialog" aria-labelledby="addGroupModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="addGroupModalLabel">Přidat skupinu</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<form method="post" action="/budget/groups">
<div class="modal-body">
<input type="hidden" name="redirectParams" value="ok=newGroup">
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th>Název skupiny</th>
</tr>
</thead>
<tbody class="template-container draggable-container">
<% for (var i in budget) { %>
<tr class="add-group-template draggable template-container__item">
<td>
<input type="text" class="form-control" name="group[<% i %>]" value="<%= budget[i].name %>">
</td>
</tr>
<% } %>
</tbody>
<tfoot>
<tr>
<td colspan="3">
<a href="javascript:void(0);" class="btn btn-outline-secondary js-add-program" data-template=".add-group-template:last-child"><i class="fa fa-plus"></i>
Přidat skupinu</a>
</td>
</tr>
</tfoot>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Storno</button>
<button type="submit" class="btn btn-primary">Uložit</button>
</div>
</form>
</div>
</div>
</div>