Skip to content

Commit

Permalink
MOTECH-2739 Style empty state for motech-list (#37)
Browse files Browse the repository at this point in the history
* MOTECH-2739 Style empty state for motech-list

* MOTECH-2739 Corrections after review

* MOTECH-2739 Corrections after review

* MOTECH-2739 Corrections after review

* Removed unused variable
  • Loading branch information
PJSosnowski authored and jredlarski committed Sep 1, 2016
1 parent bb38234 commit 795c470
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/common/base/base.alert.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
li+.alert {
display:none;
}
.alert {
@extend .alert-warning;
display:block;
text-align: center;
margin-bottom: 0px;
}
2 changes: 1 addition & 1 deletion src/scheduler/job-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ <h4 class="frame-title">{{'scheduler' | translate}}</h4>
<button class="icon-filter motech-sidebar-button" type="button">{{'scheduler.filters' | translate}}</button>
</div>
</motech-list-header>
<motech-list-item ng-if="jobs.rows.length==0" class="alert">No jobs found</motech-list-item>
<motech-list-item ng-repeat="job in jobs.rows">
<div column-title="Name">
<h4>{{job.name}}</h4>
Expand Down Expand Up @@ -48,6 +47,7 @@ <h4>{{job.name}}</h4>
</div>
</motech-list-collapsible>
</motech-list-item>
<div class="alert">{{'scheduler.emptyJobList' | translate}}</div>
<motech-list-footer>
<uib-pagination total-items="totalItems" ng-model="currentPage" ng-change="changePageTo(currentPage)"></uib-pagination>
</motech-list-footer>
Expand Down

0 comments on commit 795c470

Please sign in to comment.