Upravy v backendu aplikace
This commit is contained in:
@@ -19,55 +19,7 @@
|
||||
<div class="modal-body">
|
||||
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Čas</th>
|
||||
<th>Ikona</th>
|
||||
<th>Název události</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="template-container draggable-container">
|
||||
|
||||
<% for(var i in program) { %>
|
||||
<tr class="template draggable template-container__item">
|
||||
<td>
|
||||
<i class="fa fa-ellipsis-v sort-handle"></i>
|
||||
</td>
|
||||
<td style="position: relative">
|
||||
<input type="text" class="form-control time select-time" size="4" name="program[<%= i %>][time][]" value="<%= program[i]['time'] %>" placeholder="11:00">
|
||||
</td>
|
||||
<td class="text-center">
|
||||
|
||||
<a href="javascript:void(0);" class="js-set-icon-program">
|
||||
<input type="hidden" name="program[<%= i %>][icon][]" value="<%= program[i]['icon'] %>">
|
||||
<i class="fa fa-2x fa-<%= program[i]['icon'] %>"></i>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="form-control program-description" name="program[<%= i %>][title][]" value="<%= program[i]['title'] %>">
|
||||
</td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="js-remove-program"><i class="fa fa-trash"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<% } %>
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<a href="javascript:void(0);" class="btn btn-outline-secondary js-add-program" data-template-container=".template-container" data-template=".template"><i class="fa fa-plus"></i> Přidat akci</a>
|
||||
|
||||
<a href="javascript:void(0);" class="btn btn-outline-secondary js-sort-events" style="display: none" data-template-container=".template-container" data-template=".template"><i class="fa fa-sort-numeric-asc"></i> Seřadit akce chronologicky</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<% include ../../program.ejs %>
|
||||
|
||||
|
||||
</div>
|
||||
@@ -83,23 +35,4 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="setIconProgramModal" tabindex="-1" role="dialog" aria-labelledby="setIconProgramModal" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body">
|
||||
|
||||
<% var icons = ['gear', 'home', 'automobile', 'bell', 'bullhorn', 'child', 'coffee', 'diamond', 'film', 'camera',
|
||||
'camera-retro', 'fire', 'birthday-cake', 'heart', 'image', 'map', 'map-marker', 'map-o',
|
||||
'motorcycle', 'plane', 'road', 'cutlery', 'paint-brush', 'gift', 'glass', 'star', 'star-o'
|
||||
] %>
|
||||
|
||||
<% for (var i in icons) { %>
|
||||
|
||||
<a href="javascript:void(0);" data-icon="<%= icons[i] %>" class="js-choose-icon"><i class="fa fa-3x fa-<%= icons[i] %>"></i></a>
|
||||
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% include ../../program-icons.ejs %>
|
||||
Reference in New Issue
Block a user