Mass action buttons extracted from entries list

This commit is contained in:
Simounet 2022-03-13 15:32:43 +01:00
parent 85e91f9e67
commit e700cadae3
No known key found for this signature in database
GPG key ID: 77D3B7DC794EB770
4 changed files with 11 additions and 8 deletions

View file

@ -3,7 +3,7 @@
* ========================================================================== */
.mass-buttons {
margin: 5px;
margin: 10px 5px 10px 20px;
#selectAll {
position: relative;
@ -39,7 +39,8 @@
}
.collection {
margin: 15px 15px 0;
margin: 5px 15px 0;
padding: 0;
.collection-item {
padding: 7px;

View file

@ -39,9 +39,8 @@
{% endif %}
</div>
<ul class="{% if listMode == 1 %}collection{% else %}row data{% endif %}">
<li class="mass-buttons">
{% if listMode == 1 %}
<div class="mass-buttons">
{% if entries.count > 0 and listMode == 1 %}
<span>
<input id="selectAll" type="checkbox" data-toggle="[data-js='entry-checkbox']" data-js="checkboxes-toggle" />&nbsp;
@ -53,7 +52,10 @@
<button class="btn cyan darken-1" type="submit" name="delete" onclick="return confirm('{{ 'entry.confirm.delete_entries'|trans|escape('js') }}')" title="{{ 'entry.list.delete'|trans }}"><i class="material-icons">delete</i></button>
</span>
{% endif %}
</li>
</div>
{% endif %}
<ul class="{% if listMode == 1 %}collection{% else %}row data{% endif %}">
{% for entry in entries %}
<li id="entry-{{ entry.id|e }}" class="{% if listMode != 0 %}col collection-item{% endif %} s12" data-entry-id="{{ entry.id|e }}" data-test="entry">

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long