forked from BookStackApp/BookStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started accessible controls for shelf book sort
Added buttons and fit to design. Added new icon variations to support. Extracted book item to own view and setup for future auto sorts.
- Loading branch information
1 parent
af31a6f
commit 71a09bc
Showing
7 changed files
with
107 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
resources/views/shelves/parts/shelf-sort-book-item.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<li data-id="{{ $book->id }}" | ||
data-name="{{ $book->name }}" | ||
data-created="{{ $book->created_at->timestamp }}" | ||
data-updated="{{ $book->updated_at->timestamp }}" | ||
class="scroll-box-item"> | ||
<div class="handle px-s">@icon('grip')</div> | ||
<a href="{{ $book->getUrl() }}" class="text-book">@icon('book'){{ $book->name }}</a> | ||
<div class="buttons flex-container-row items-center ml-auto px-xxs py-xs"> | ||
<button type="button" data-action="move_up" class="icon-button p-xxs" | ||
title="{{ trans('entities.books_sort_move_up') }}">@icon('chevron-up')</button> | ||
<button type="button" data-action="move_down" class="icon-button p-xxs" | ||
title="{{ trans('entities.books_sort_move_down') }}">@icon('chevron-down')</button> | ||
<button type="button" data-action="remove" class="icon-button p-xxs" | ||
title="{{ trans('common.remove') }}">@icon('remove')</button> | ||
<button type="button" data-action="add" class="icon-button p-xxs" | ||
title="{{ trans('common.add') }}">@icon('add-small')</button> | ||
</div> | ||
</li> |