Browse Source

fix: add icon for empty list state

version-14
Summayya 3 years ago
parent
commit
1d73afc539
2 changed files with 7 additions and 2 deletions
  1. +4
    -0
      frappe/public/scss/website/index.scss
  2. +3
    -2
      frappe/templates/includes/list/list.html

+ 4
- 0
frappe/public/scss/website/index.scss View File

@@ -310,3 +310,7 @@ h5.modal-title {
margin: 70px auto; margin: 70px auto;
font-size: $font-size-sm; font-size: $font-size-sm;
} }

.empty-list-icon {
height: 70px;
}

+ 3
- 2
frappe/templates/includes/list/list.html View File

@@ -2,8 +2,9 @@
<h4 class="text-muted">{{ sub_title }}</h4> <h4 class="text-muted">{{ sub_title }}</h4>
{% endif %} {% endif %}
{% if not result -%} {% if not result -%}
<div class="text-muted" style="min-height: 300px;">
{{ no_result_message or _("Nothing to show") }}
<div class="empty-apps-state">
<img class="empty-list-icon" src="/assets/frappe/images/ui-states/list-empty-state.svg"/>
<div class="mt-4">{{ no_result_message or _("Nothing to show") }}</div>
</div> </div>
{% else %} {% else %}
<div class="website-list" data-doctype="{{ doctype }}" <div class="website-list" data-doctype="{{ doctype }}"


Loading…
Cancel
Save