From 63b3cd995f91a37184a8c6557efd015ae5e08c01 Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Tue, 23 Jan 2018 15:48:55 +0000 Subject: [PATCH] Add semantic UI styling to the submission form --- opentech/apply/dashboard/templates/dashboard/dashboard.html | 5 +++++ .../apply/dashboard/templates/dashboard/tables/table.html | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/opentech/apply/dashboard/templates/dashboard/dashboard.html b/opentech/apply/dashboard/templates/dashboard/dashboard.html index b78c4c5bd..520dda61f 100644 --- a/opentech/apply/dashboard/templates/dashboard/dashboard.html +++ b/opentech/apply/dashboard/templates/dashboard/dashboard.html @@ -1,6 +1,11 @@ {% extends "base.html" %} {% load render_table from django_tables2 %} +{% block extra_css %} + {# To remove after the demo and we have some style #} + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.9/semantic.min.css"/> +{% endblock %} + {% block content %} <h1>Recieved Content</h1> <h3>Track and explore recent submissions</h3> diff --git a/opentech/apply/dashboard/templates/dashboard/tables/table.html b/opentech/apply/dashboard/templates/dashboard/tables/table.html index 49e9c41a1..6ff5e6032 100644 --- a/opentech/apply/dashboard/templates/dashboard/tables/table.html +++ b/opentech/apply/dashboard/templates/dashboard/tables/table.html @@ -1,4 +1,5 @@ -{% extends 'django_tables2/table.html' %} +{% extends 'django_tables2/semantic.html' %} +{# Change back to after demo: extends 'django_tables2/table.html' #} {# example of how to extend the table template #} {% block table.tbody.row %} -- GitLab