Add "timeline" button to child button group

This commit is contained in:
Christopher C. Wells 2021-08-29 14:09:01 -07:00 committed by Christopher Charbonneau Wells
parent 10af931279
commit f474a47008
7 changed files with 20 additions and 13814 deletions

View File

@ -1,3 +1,7 @@
.child-actions {
flex-wrap: wrap;
}
@include media-breakpoint-between(sm, md) { @include media-breakpoint-between(sm, md) {
#dashboard-child { #dashboard-child {
&.card-columns { &.card-columns {

View File

@ -1,16 +1,20 @@
{% load i18n %} {% load i18n %}
<div class="child-actions btn-group btn-group-md center-block" role="group" aria-label="{% trans "Child actions" %}"> <div class="child-actions btn-group btn-group-lg border rounded border-light bg-dark center-block" role="group" aria-label="{% trans "Child actions" %}">
{% if perms.core.view_child %} {% if perms.core.view_child %}
<a href="{% url 'dashboard:dashboard-child' object.slug %}" class="btn btn-success"> <a href="{% url 'dashboard:dashboard-child' object.slug %}" class="btn" title="{% trans "Dashboard" %}">
<i class="icon icon-dashboard" aria-hidden="true"></i> <i class="icon icon-dashboard" aria-hidden="true"></i>
</a> </a>
<a href="{% url 'core:child' object.slug %}" class="btn" title="{% trans "Timeline" %}">
<i class="icon icon-timeline" aria-hidden="true"></i>
</a>
{% endif %} {% endif %}
<div class="btn-group" role="group"> <div class="btn-group" role="group">
<button id="reports-dropdown" <button id="reports-dropdown"
class="btn btn-primary dropdown-toggle" class="btn dropdown-toggle"
title="{% trans "Reports" %}"
type="button" type="button"
data-toggle="dropdown" data-toggle="dropdown"
aria-haspopup="true" aria-haspopup="true"
@ -28,14 +32,16 @@
</div> </div>
{% if perms.core.change_child %} {% if perms.core.change_child %}
<a class="btn btn-warning" <a class="btn"
href="{% url 'core:child-update' object.slug %}" href="{% url 'core:child-update' object.slug %}"
title="{% trans "Edit" %}"
role="button"><i class="icon icon-update" aria-hidden="true"></i></a> role="button"><i class="icon icon-update" aria-hidden="true"></i></a>
{% endif %} {% endif %}
{% if perms.core.delete_child %} {% if perms.core.delete_child %}
<a class="btn btn-danger" <a class="btn"
href="{% url 'core:child-delete' object.slug %}" href="{% url 'core:child-delete' object.slug %}"
title="{% trans "Delete" %}"
role="button"><i class="icon icon-delete" aria-hidden="true"></i></a> role="button"><i class="icon icon-delete" aria-hidden="true"></i></a>
{% endif %} {% endif %}

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -13801,6 +13801,10 @@ h3 {
padding: 0; padding: 0;
} }
.child-actions {
flex-wrap: wrap;
}
@media (min-width: 576px) and (max-width: 991.98px) { @media (min-width: 576px) and (max-width: 991.98px) {
#dashboard-child.card-columns { #dashboard-child.card-columns {
column-count: 2; column-count: 2;

Binary file not shown.

File diff suppressed because one or more lines are too long