ui: (pf4) fix empty state

This commit is contained in:
Jens Langhammer 2020-06-09 09:52:25 +02:00
parent 2e5170f631
commit f589da4e72
15 changed files with 226 additions and 197 deletions

View File

@ -65,6 +65,7 @@
</div> </div>
{% else %} {% else %}
<div class="pf-c-empty-state"> <div class="pf-c-empty-state">
<div class="pf-c-empty-state__content">
<i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i> <i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg"> <h1 class="pf-c-title pf-m-lg">
{% trans 'No Applications.' %} {% trans 'No Applications.' %}
@ -74,6 +75,7 @@
</div> </div>
<a href="{% url 'passbook_admin:application-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> <a href="{% url 'passbook_admin:application-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a>
</div> </div>
</div>
{% endif %} {% endif %}
</div> </div>
</section> </section>

View File

@ -67,6 +67,7 @@
</div> </div>
{% else %} {% else %}
<div class="pf-c-empty-state"> <div class="pf-c-empty-state">
<div class="pf-c-empty-state__content">
<i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i> <i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg"> <h1 class="pf-c-title pf-m-lg">
{% trans 'No Certificates.' %} {% trans 'No Certificates.' %}
@ -76,6 +77,7 @@
</div> </div>
<a href="{% url 'passbook_admin:certificatekeypair-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> <a href="{% url 'passbook_admin:certificatekeypair-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a>
</div> </div>
</div>
{% endif %} {% endif %}
</div> </div>
</section> </section>

View File

@ -69,6 +69,7 @@
</div> </div>
{% else %} {% else %}
<div class="pf-c-empty-state"> <div class="pf-c-empty-state">
<div class="pf-c-empty-state__content">
<i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i> <i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg"> <h1 class="pf-c-title pf-m-lg">
{% trans 'No Flows.' %} {% trans 'No Flows.' %}
@ -76,8 +77,8 @@
<div class="pf-c-empty-state__body"> <div class="pf-c-empty-state__body">
{% trans 'Currently no flows exist. Click the button below to create one.' %} {% trans 'Currently no flows exist. Click the button below to create one.' %}
</div> </div>
<a href="{% url 'passbook_admin:flow-create' %}?back={{ request.get_full_path }}" <a href="{% url 'passbook_admin:flow-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a>
class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> </div>
</div> </div>
{% endif %} {% endif %}
</div> </div>

View File

@ -64,6 +64,7 @@
</div> </div>
{% else %} {% else %}
<div class="pf-c-empty-state"> <div class="pf-c-empty-state">
<div class="pf-c-empty-state__content">
<i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i> <i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg"> <h1 class="pf-c-title pf-m-lg">
{% trans 'No Groups.' %} {% trans 'No Groups.' %}
@ -73,6 +74,7 @@
</div> </div>
<a href="{% url 'passbook_admin:group-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> <a href="{% url 'passbook_admin:group-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a>
</div> </div>
</div>
{% endif %} {% endif %}
</div> </div>
</section> </section>

View File

@ -81,6 +81,7 @@
</div> </div>
{% else %} {% else %}
<div class="pf-c-empty-state"> <div class="pf-c-empty-state">
<div class="pf-c-empty-state__content">
<i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i> <i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg"> <h1 class="pf-c-title pf-m-lg">
{% trans 'No Policies.' %} {% trans 'No Policies.' %}
@ -108,6 +109,7 @@
</ul> </ul>
</div> </div>
</div> </div>
</div>
{% endif %} {% endif %}
</div> </div>
</section> </section>

View File

@ -57,6 +57,7 @@
</div> </div>
{% else %} {% else %}
<div class="pf-c-empty-state"> <div class="pf-c-empty-state">
<div class="pf-c-empty-state__content">
<i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i> <i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg"> <h1 class="pf-c-title pf-m-lg">
{% trans 'No Policy Bindings.' %} {% trans 'No Policy Bindings.' %}
@ -66,6 +67,7 @@
</div> </div>
<a href="{% url 'passbook_admin:policy-binding-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> <a href="{% url 'passbook_admin:policy-binding-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a>
</div> </div>
</div>
{% endif %} {% endif %}
</div> </div>
</section> </section>

View File

@ -75,6 +75,7 @@
</div> </div>
{% else %} {% else %}
<div class="pf-c-empty-state"> <div class="pf-c-empty-state">
<div class="pf-c-empty-state__content">
<i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i> <i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg"> <h1 class="pf-c-title pf-m-lg">
{% trans 'No Property Mappings.' %} {% trans 'No Property Mappings.' %}
@ -102,6 +103,7 @@
</ul> </ul>
</div> </div>
</div> </div>
</div>
{% endif %} {% endif %}
</div> </div>
</section> </section>

View File

@ -94,6 +94,7 @@
</div> </div>
{% else %} {% else %}
<div class="pf-c-empty-state"> <div class="pf-c-empty-state">
<div class="pf-c-empty-state__content">
<i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i> <i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg"> <h1 class="pf-c-title pf-m-lg">
{% trans 'No Providers.' %} {% trans 'No Providers.' %}
@ -120,6 +121,7 @@
</ul> </ul>
</div> </div>
</div> </div>
</div>
{% endif %} {% endif %}
</div> </div>
</section> </section>

View File

@ -88,6 +88,7 @@
</div> </div>
{% else %} {% else %}
<div class="pf-c-empty-state"> <div class="pf-c-empty-state">
<div class="pf-c-empty-state__content">
<i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i> <i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg"> <h1 class="pf-c-title pf-m-lg">
{% trans 'No Sources.' %} {% trans 'No Sources.' %}
@ -114,6 +115,7 @@
</ul> </ul>
</div> </div>
</div> </div>
</div>
{% endif %} {% endif %}
</div> </div>
</section> </section>

View File

@ -84,6 +84,7 @@
</div> </div>
{% else %} {% else %}
<div class="pf-c-empty-state"> <div class="pf-c-empty-state">
<div class="pf-c-empty-state__content">
<i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i> <i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg"> <h1 class="pf-c-title pf-m-lg">
{% trans 'No Stages.' %} {% trans 'No Stages.' %}
@ -111,6 +112,7 @@
</ul> </ul>
</div> </div>
</div> </div>
</div>
{% endif %} {% endif %}
</div> </div>
</section> </section>

View File

@ -84,6 +84,7 @@
</div> </div>
{% else %} {% else %}
<div class="pf-c-empty-state"> <div class="pf-c-empty-state">
<div class="pf-c-empty-state__content">
<i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i> <i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg"> <h1 class="pf-c-title pf-m-lg">
{% trans 'No Flow-Stage Bindings.' %} {% trans 'No Flow-Stage Bindings.' %}
@ -93,6 +94,7 @@
</div> </div>
<a href="{% url 'passbook_admin:certificatekeypair-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> <a href="{% url 'passbook_admin:certificatekeypair-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a>
</div> </div>
</div>
{% endif %} {% endif %}
</div> </div>
</section> </section>

View File

@ -57,6 +57,7 @@
</div> </div>
{% else %} {% else %}
<div class="pf-c-empty-state"> <div class="pf-c-empty-state">
<div class="pf-c-empty-state__content">
<i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i> <i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg"> <h1 class="pf-c-title pf-m-lg">
{% trans 'No Invitations.' %} {% trans 'No Invitations.' %}
@ -66,6 +67,7 @@
</div> </div>
<a href="{% url 'passbook_admin:stage-invitation-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> <a href="{% url 'passbook_admin:stage-invitation-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a>
</div> </div>
</div>
{% endif %} {% endif %}
</div> </div>
</section> </section>

View File

@ -83,6 +83,7 @@
</div> </div>
{% else %} {% else %}
<div class="pf-c-empty-state"> <div class="pf-c-empty-state">
<div class="pf-c-empty-state__content">
<i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i> <i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg"> <h1 class="pf-c-title pf-m-lg">
{% trans 'No Stage Prompts.' %} {% trans 'No Stage Prompts.' %}
@ -92,6 +93,7 @@
</div> </div>
<a href="{% url 'passbook_admin:stage-prompt-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> <a href="{% url 'passbook_admin:stage-prompt-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a>
</div> </div>
</div>
{% endif %} {% endif %}
</div> </div>
</section> </section>

View File

@ -64,6 +64,7 @@
</div> </div>
{% else %} {% else %}
<div class="pf-c-empty-state"> <div class="pf-c-empty-state">
<div class="pf-c-empty-state__content">
<i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i> <i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg"> <h1 class="pf-c-title pf-m-lg">
{% trans 'No Users.' %} {% trans 'No Users.' %}
@ -73,6 +74,7 @@
</div> </div>
<a href="{% url 'passbook_admin:user-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a> <a href="{% url 'passbook_admin:user-create' %}?back={{ request.get_full_path }}" class="pf-c-button pf-m-primary" type="button">{% trans 'Create' %}</a>
</div> </div>
</div>
{% endif %} {% endif %}
</div> </div>
</section> </section>

View File

@ -43,7 +43,8 @@
{% endfor %} {% endfor %}
</div> </div>
{% else %} {% else %}
<div class="pf-c-empty-state"> <div class="pf-c-empty-state pf-m-full-height">
<div class="pf-c-empty-state__content">
<i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i> <i class="fas fa-cubes pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg">{% trans 'No Applications available.' %}</h1> <h1 class="pf-c-title pf-m-lg">{% trans 'No Applications available.' %}</h1>
<div class="pf-c-empty-state__body"> <div class="pf-c-empty-state__body">
@ -55,6 +56,7 @@
</a> </a>
{% endif %} {% endif %}
</div> </div>
</div>
{% endif %} {% endif %}
</section> </section>
{% endblock %} {% endblock %}