mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-29 12:31:02 +00:00
Mass actions available on cards view
fixup! Mass action toggle button added
This commit is contained in:
parent
384918cda9
commit
d0aad7b96d
6 changed files with 37 additions and 36 deletions
|
@ -16,12 +16,6 @@
|
||||||
.mass-buttons {
|
.mass-buttons {
|
||||||
margin: 10px 5px 10px 20px;
|
margin: 10px 5px 10px 20px;
|
||||||
|
|
||||||
#selectAll {
|
|
||||||
position: relative;
|
|
||||||
opacity: initial;
|
|
||||||
left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
span {
|
span {
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
}
|
}
|
||||||
|
@ -38,20 +32,30 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-stacked {
|
.entry-checkbox {
|
||||||
input[type="checkbox"] {
|
margin: 10px 15px 10px 5px;
|
||||||
position: relative;
|
|
||||||
opacity: initial;
|
|
||||||
left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.entry-checkbox {
|
.card & {
|
||||||
margin-right: 10px;
|
float: right;
|
||||||
|
margin-right: 0;
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.entries .entry-checkbox-input,
|
||||||
|
.mass-buttons .entry-checkbox-input {
|
||||||
|
position: relative;
|
||||||
|
left: 0;
|
||||||
|
width: 20px;
|
||||||
|
min-height: 25px;
|
||||||
|
height: 100%;
|
||||||
|
vertical-align: middle;
|
||||||
|
opacity: initial;
|
||||||
|
}
|
||||||
|
|
||||||
.mass-action-inputs-displayed:not(:checked) ~ .mass-buttons,
|
.mass-action-inputs-displayed:not(:checked) ~ .mass-buttons,
|
||||||
.mass-action-inputs-displayed:not(:checked) ~ .entries .entry-checkbox {
|
.mass-action-inputs-displayed:not(:checked) ~ .entries .entry-checkbox,
|
||||||
|
.mass-action-inputs-displayed:checked ~ .entries .card-preview {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<div class="entry-checkbox">
|
<div class="entry-checkbox">
|
||||||
<input type="checkbox" data-js="entry-checkbox" name="entry-checkbox[]" value="{{ entry.id }}" />
|
<input type="checkbox" class="entry-checkbox-input" data-js="entry-checkbox" name="entry-checkbox[]" value="{{ entry.id }}" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<div class="card entry-card{% if currentRoute in routes and entry.isArchived %} archived{% endif %}">
|
<div class="card entry-card{% if currentRoute in routes and entry.isArchived %} archived{% endif %}">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="card-image waves-effect waves-block waves-light">
|
<div class="card-image waves-effect waves-block waves-light">
|
||||||
|
{% include "@WallabagCore/Entry/Card/_mass_checkbox.html.twig" with {'entry': entry} only %}
|
||||||
<ul class="card-entry-labels">
|
<ul class="card-entry-labels">
|
||||||
{% for tag in entry.tags|slice(0, 3) %}
|
{% for tag in entry.tags|slice(0, 3) %}
|
||||||
<li title="{{ tag.label }}"><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li>
|
<li title="{{ tag.label }}"><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li>
|
||||||
|
|
|
@ -33,9 +33,7 @@
|
||||||
{% if app.user.config.feedToken %}
|
{% if app.user.config.feedToken %}
|
||||||
{% include "@WallabagCore/Entry/_feed_link.html.twig" %}
|
{% include "@WallabagCore/Entry/_feed_link.html.twig" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if list_mode == 1 %}
|
|
||||||
<label for="mass-action-inputs-displayed" class="mass-action-toggle results-item tooltipped" data-position="bottom" data-delay="50" data-tooltip="{{ 'entry.list.toggle_mass_action'|trans }}"><i class="material-icons">library_add_check</i></label>
|
<label for="mass-action-inputs-displayed" class="mass-action-toggle results-item tooltipped" data-position="bottom" data-delay="50" data-tooltip="{{ 'entry.list.toggle_mass_action'|trans }}"><i class="material-icons">library_add_check</i></label>
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
{% if current_route == 'search' %}<div><a href="{{ path('tag_this_search', {'filter': searchTerm, 'currentRoute': app.request.get('currentRoute')}) }}" title="{{ 'entry.list.assign_search_tag'|trans }}">{{ 'entry.list.assign_search_tag'|trans }}</a></div>{% endif %}
|
{% if current_route == 'search' %}<div><a href="{{ path('tag_this_search', {'filter': searchTerm, 'currentRoute': app.request.get('currentRoute')}) }}" title="{{ 'entry.list.assign_search_tag'|trans }}">{{ 'entry.list.assign_search_tag'|trans }}</a></div>{% endif %}
|
||||||
{% if entries.getNbPages > 1 %}
|
{% if entries.getNbPages > 1 %}
|
||||||
|
@ -43,12 +41,11 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if list_mode == 1 %}
|
{% if entries.count > 0 %}
|
||||||
<input id="mass-action-inputs-displayed" class="mass-action-inputs-displayed" type="checkbox" />
|
<input id="mass-action-inputs-displayed" class="mass-action-inputs-displayed" type="checkbox" />
|
||||||
<div class="mass-buttons">
|
<div class="mass-buttons">
|
||||||
{% if entries.count > 0 and list_mode == 1 %}
|
|
||||||
<span>
|
<span>
|
||||||
<input id="selectAll" type="checkbox" data-toggle="[data-js='entry-checkbox']" data-js="checkboxes-toggle" />
|
<input type="checkbox" class="entry-checkbox-input" data-toggle="[data-js='entry-checkbox']" data-js="checkboxes-toggle" />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
|
@ -61,7 +58,6 @@
|
||||||
<span class="input-field inline">
|
<span class="input-field inline">
|
||||||
<input type="text" name="tags" />
|
<input type="text" name="tags" />
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue