Skip to content

Commit 6e8a8b3

Browse files
committed
Bulk operations in the Items list page
+ headers buttons
1 parent 8a34ea4 commit 6e8a8b3

4 files changed

Lines changed: 31 additions & 4 deletions

File tree

src/app/_common/header/buttons/buttons.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<div class="header-block header-block-buttons" >
22
<a href="https://github.com/modularcode/modular-admin-html"
3-
class="btn btn-default btn-sm rounded-s header-btn">
3+
class="btn btn-oval btn-sm rounded-s header-btn">
44
<i class="fa fa-github-alt"></i>
55
View on GitHub
66
</a>
77
<a href="https://github.com/modularcode/modular-admin-html/releases/download/v{{pkg.version}}/modular-admin-html-{{pkg.version}}.zip"
8-
class="btn btn-default btn-sm rounded-s header-btn">
8+
class="btn btn-oval btn-sm rounded-s header-btn">
99
<i class="fa fa-cloud-download"></i>
1010
Download .zip
1111
</a>

src/app/_common/header/buttons/buttons.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66

77
.btn.header-btn {
88
background-color: transparent;
9-
border: none;
9+
border: 1px solid lighten($color-text, 10%);
1010
color: lighten($color-text, 10%);
11+
margin: 0 5px;
1112

1213
&:hover,
1314
&:focus {
15+
border: 1px solid darken($color-text, 10%);
1416
color: darken($color-text, 10%);
1517
}
1618
}

src/app/items/list/items-list-page.hbs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ items:
5151
<a href="item-editor.html" class="btn btn-primary btn-sm rounded-s">
5252
Add New
5353
</a>
54+
<div class="action dropdown">
55+
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
56+
More actions...
57+
</button>
58+
<div class="dropdown-menu" aria-labelledby="dropdownMenu1">
59+
<a class="dropdown-item" href="#"><i class="fa fa-pencil-square-o icon"></i>Mark as a draft</a>
60+
<a class="dropdown-item" href="#"><i class="fa fa-close icon"></i>Delete</a>
61+
</div>
62+
</div>
5463
</h3>
5564
<p class="title-description">
5665
List of sample items - e.g. books, movies, events, etc...
@@ -64,13 +73,14 @@ items:
6473
</div>
6574
</div>
6675

76+
6777
<div class="items-search">
6878
<form class="form-inline">
6979
<div class="input-group">
7080
<input type="text" class="form-control boxed rounded-s" placeholder="Search for...">
7181
<span class="input-group-btn">
7282
<button class="btn btn-secondary rounded-s" type="button">
73-
<i class="fa fa-search"></i> Search
83+
<i class="fa fa-search"></i>
7484
</button>
7585
</span>
7686
</div>

src/app/items/list/items-list.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@
99
padding-bottom: 10px;
1010
margin-bottom: 13px;
1111
}
12+
13+
.action {
14+
display: inline;
15+
16+
a {
17+
padding: 10px 15px;
18+
19+
.icon {
20+
margin-right: 5px;
21+
text-align: center;
22+
width: 16px;
23+
}
24+
}
25+
26+
}
1227
}
1328

1429

0 commit comments

Comments
 (0)