mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-14 14:09:26 +02:00

* Move bulk actions into select * Update tests * Implement bulk read / unread actions * Implement bulk share/unshare actions * Show correct archiving actions * Allow selecting bookmarks across pages * Dynamically update select across checkbox * Filter available bulk actions * Refactor tag autocomplete toggling
40 lines
1.6 KiB
HTML
40 lines
1.6 KiB
HTML
{% load shared %}
|
|
{% htmlmin %}
|
|
<div class="bulk-edit-bar">
|
|
<div class="bulk-edit-actions bg-gray">
|
|
<label ld-bulk-edit-checkbox all class="form-checkbox">
|
|
<input type="checkbox">
|
|
<i class="form-icon"></i>
|
|
</label>
|
|
<select name="bulk_action" class="form-select select-sm">
|
|
{% if not 'bulk_archive' in disable_actions %}
|
|
<option value="bulk_archive">Archive</option>
|
|
{% endif %}
|
|
{% if not 'bulk_unarchive' in disable_actions %}
|
|
<option value="bulk_unarchive">Unarchive</option>
|
|
{% endif %}
|
|
<option value="bulk_delete">Delete</option>
|
|
<option value="bulk_tag">Add tags</option>
|
|
<option value="bulk_untag">Remove tags</option>
|
|
<option value="bulk_read">Mark as read</option>
|
|
<option value="bulk_unread">Mark as unread</option>
|
|
{% if request.user_profile.enable_sharing %}
|
|
<option value="bulk_share">Share</option>
|
|
<option value="bulk_unshare">Unshare</option>
|
|
{% endif %}
|
|
</select>
|
|
<div class="tag-autocomplete d-none">
|
|
<input ld-tag-autocomplete variant="small"
|
|
name="bulk_tag_string" class="form-input input-sm" placeholder="Tag names...">
|
|
</div>
|
|
<button ld-confirm-button type="submit" name="bulk_execute" class="btn btn-link btn-sm">Execute</button>
|
|
|
|
<label class="form-checkbox select-across d-none">
|
|
<input type="checkbox" name="bulk_select_across">
|
|
<i class="form-icon"></i>
|
|
All pages (<span class="total">{{ bookmark_list.bookmarks_total }}</span> bookmarks)
|
|
</label>
|
|
</div>
|
|
</div>
|
|
{% endhtmlmin %}
|