diff --git a/core/static_src/img/core/child-placeholder.png b/core/static_src/img/core/child-placeholder.png new file mode 100644 index 00000000..294d77c5 Binary files /dev/null and b/core/static_src/img/core/child-placeholder.png differ diff --git a/core/static_src/scss/core.scss b/core/static_src/scss/core.scss new file mode 100644 index 00000000..1c6a0a6e --- /dev/null +++ b/core/static_src/scss/core.scss @@ -0,0 +1,5 @@ +#view-child { + .child-photo { + max-width: 150px; + } +} diff --git a/core/templates/core/child_detail.html b/core/templates/core/child_detail.html index 58e31585..7cfa5f67 100644 --- a/core/templates/core/child_detail.html +++ b/core/templates/core/child_detail.html @@ -1,4 +1,5 @@ {% extends 'babybuddy/page.html' %} +{% load static %} {% block title %}{{ object }}{% endblock %} @@ -9,48 +10,12 @@ {% block content %}
-
{{ object }}
+ +
{{ object }}

Born {{ object.birth_date }}
Age {{ object.birth_date|timesince }}

- -
- - {% if perms.core.view_child %} - - - - {% endif %} - - - - {% if perms.core.change_child %} - - {% endif %} - - {% if perms.core.delete_child %} - - {% endif %} - -
+ {% include 'dashboard/child_button_group.html' %}
{% endblock %} \ No newline at end of file diff --git a/dashboard/static_src/scss/dashboard.scss b/dashboard/static_src/scss/dashboard.scss new file mode 100644 index 00000000..e69de29b diff --git a/dashboard/templates/dashboard/child_button_group.html b/dashboard/templates/dashboard/child_button_group.html new file mode 100644 index 00000000..8bf1815f --- /dev/null +++ b/dashboard/templates/dashboard/child_button_group.html @@ -0,0 +1,37 @@ +
+ + {% if perms.core.view_child %} + + + + {% endif %} + +
+ + +
+ + {% if perms.core.change_child %} + + {% endif %} + + {% if perms.core.delete_child %} + + {% endif %} + +
\ No newline at end of file diff --git a/dashboard/templates/dashboard/dashboard.html b/dashboard/templates/dashboard/dashboard.html index 2c3fd784..1591a938 100644 --- a/dashboard/templates/dashboard/dashboard.html +++ b/dashboard/templates/dashboard/dashboard.html @@ -1,27 +1,31 @@ {% extends 'babybuddy/page.html' %} +{% load static %} -{% block title %}Welcome!{% endblock %} +{% block title %}Dashboard{% endblock %} + +{% block breadcrumbs %} + +{% endblock %} {% block content %} -
- {% for child in objects %} -
- -
-

- {{ child.name }} - {{ child.birth_date }} -

-

- {% if perms.core.view_child %} - - - - {% endif %} -

-
-