-
-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a placeholder image for Child objects (in the future, hopefully, photo uploads will be added) and reworks the Dashboard view to look better when more than one child is in the database. There are also some minor tweaks to the Child detail view and one new Gulp requirement to improve the flow of copying static image assets from apps.
- Loading branch information
Showing
12 changed files
with
117 additions
and
78 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#view-child { | ||
.child-photo { | ||
max-width: 150px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<div class="child-actions btn-group btn-group-lg center-block" role="group" aria-label="Child actions"> | ||
|
||
{% if perms.core.view_child %} | ||
<a href="{% url 'dashboard-child' object.slug %}" class="btn btn-success"> | ||
<i class="icon icon-dashboard" aria-hidden="true"></i> | ||
</a> | ||
{% endif %} | ||
|
||
<div class="btn-group" role="group"> | ||
<button id="reports-dropdown" | ||
class="btn btn-primary dropdown-toggle" | ||
type="button" | ||
data-toggle="dropdown" | ||
aria-haspopup="true" | ||
aria-expanded="false"><i class="icon icon-graph" aria-hidden="true"></i></button> | ||
<div class="dropdown-menu" aria-labelledby="reports-dropdown"> | ||
<a class="dropdown-item" href="{% url 'reports:report-diaperchange-types-child' object.slug %}">Diaper Change Types</a> | ||
<a class="dropdown-item" href="{% url 'reports:report-diaperchange-lifetimes-child' object.slug %}">Diaper Lifetimes</a> | ||
<a class="dropdown-item" href="{% url 'reports:report-sleep-pattern-child' object.slug %}">Sleep Pattern</a> | ||
<a class="dropdown-item" href="{% url 'reports:report-sleep-totals-child' object.slug %}">Sleep Totals</a> | ||
<a class="dropdown-item" href="{% url 'reports:report-timeline-child' object.slug %}">Timeline</a> | ||
</div> | ||
</div> | ||
|
||
{% if perms.core.change_child %} | ||
<a class="btn btn-warning" | ||
href="{% url 'child-update' object.slug %}" | ||
role="button"><i class="icon icon-update" aria-hidden="true"></i></a> | ||
{% endif %} | ||
|
||
{% if perms.core.delete_child %} | ||
<a class="btn btn-danger" | ||
href="{% url 'child-delete' object.slug %}" | ||
role="button"><i class="icon icon-delete" aria-hidden="true"></i></a> | ||
{% endif %} | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters