Skip to content

Commit 35b3d0e

Browse files
committed
Update dashboard UI to be bootstrap4 compliant
1 parent c0c9a6e commit 35b3d0e

File tree

2 files changed

+21
-29
lines changed

2 files changed

+21
-29
lines changed

app/styles/pages/dashboard-index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99

1010
.bulletin-actions {
11-
width: 150px;
11+
padding-top: $padding-m;
1212
}
1313

1414
.create-bulletin {

app/templates/dashboard/index.hbs

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,41 +12,33 @@
1212
data-auto-id="dashboard-bulletins-create"}}
1313
Create
1414
{{/link-to}}
15-
<table class="table table-striped" data-auto-id="dashboard-bulletins">
16-
<thead>
17-
<tr>
18-
<th>Bulletin</th>
19-
<th class="bulletin-actions">Actions</th>
20-
</tr>
21-
</thead>
22-
<tbody>
23-
{{#each model.bulletins as |bulletin|}}
24-
<tr data-auto-id="dashboard-bulletin">
25-
<td>
26-
<div data-auto-id="dashboard-bulletin-name">
27-
{{bulletin.name}}
28-
</div>
29-
<small data-auto-id="dashboard-bulletin-published-at">
30-
{{moment-format bulletin.publishedAt}}
31-
</small>
32-
</td>
33-
<td>
15+
<div class="list-group" data-auto-id="dashboard-bulletins">
16+
{{#each model.bulletins as |bulletin|}}
17+
<div class="list-group-item list-group-item-action" data-auto-id="dashboard-bulletin">
18+
<div class="list-group-item-heading" data-auto-id="dashboard-bulletin-name">
19+
{{bulletin.name}}
20+
</div>
21+
<div class="list-group-item-text">
22+
<small data-auto-id="dashboard-bulletin-published-at">
23+
{{moment-format bulletin.publishedAt}}
24+
</small>
25+
<div class="bulletin-actions">
3426
{{#link-to 'bulletin.index' 'english-service' bulletin
35-
class='btn btn-default'
27+
class='btn btn-secondary'
3628
data-auto-id="dashboard-bulletin-show"}}
37-
Show
29+
<i class="icon-doc-text"></i>
3830
{{/link-to}}
3931

4032
{{#link-to 'bulletin.edit' 'english-service' bulletin
41-
class='btn btn-default'
33+
class='btn btn-secondary'
4234
data-auto-id="dashboard-bulletin-edit"}}
43-
Edit
35+
<i class="icon-pencil"></i>
4436
{{/link-to}}
45-
</td>
46-
</tr>
47-
{{/each}}
48-
</tbody>
49-
</table>
37+
</div>
38+
</div>
39+
</div>
40+
{{/each}}
41+
</div>
5042
</div>
5143
</div>
5244
</div>

0 commit comments

Comments
 (0)