admin: add empty views to all lists, move invitation to stage-invitations
This commit is contained in:
		| @ -17,6 +17,7 @@ | ||||
| </section> | ||||
| <section class="pf-c-page__main-section pf-m-no-padding-mobile"> | ||||
|     <div class="pf-c-card"> | ||||
|         {% if object_list %} | ||||
|         <div class="pf-c-toolbar" id="page-layout-table-simple-toolbar-top"> | ||||
|             <div class="pf-c-toolbar__bulk-select"> | ||||
|                 <div class="pf-c-dropdown"> | ||||
| @ -80,6 +81,30 @@ | ||||
|         <div class="pf-c-toolbar" id="page-layout-table-simple-toolbar-bottom"> | ||||
|             {% include 'partials/pagination.html' %} | ||||
|         </div> | ||||
|         {% else %} | ||||
|         <div class="pf-c-empty-state"> | ||||
|             <i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i> | ||||
|             <h1 class="pf-c-title pf-m-lg"> | ||||
|                 {% trans 'No Sources.' %} | ||||
|             </h1> | ||||
|             <div class="pf-c-empty-state__body"> | ||||
|                 {% trans 'Currently no sources exist. Click the button below to create one.' %} | ||||
|             </div> | ||||
|             <div class="pf-c-dropdown"> | ||||
|                 <button class="pf-m-primary pf-c-dropdown__toggle" type="button"> | ||||
|                     <span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span> | ||||
|                     <i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i> | ||||
|                 </button> | ||||
|                 <ul class="pf-c-dropdown__menu" hidden> | ||||
|                     {% for type, name in types.items %} | ||||
|                     <li> | ||||
|                         <a class="pf-c-dropdown__menu-item" href="{% url 'passbook_admin:source-create' %}?type={{ type }}&back={{ request.get_full_path }}">{{ name }}</a> | ||||
|                     </li> | ||||
|                     {% endfor %} | ||||
|                 </ul> | ||||
|             </div> | ||||
|         </div> | ||||
|         {% endif %} | ||||
|     </div> | ||||
| </section> | ||||
| {% endblock %} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer