summaryrefslogtreecommitdiff
path: root/app/classes/templates
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2022-05-14 16:38:07 -0400
committerlxf <sng@luxagraf.net>2022-05-14 16:38:07 -0400
commitbb3973ffb714c932e9ec6dd6a751228dc71fe1d3 (patch)
tree6fa32f9392ad2ec32271349b86a4c1388fd6ba95 /app/classes/templates
initial commit
Diffstat (limited to 'app/classes/templates')
-rw-r--r--app/classes/templates/classes/class_detail.html11
-rw-r--r--app/classes/templates/classes/class_list.html43
2 files changed, 54 insertions, 0 deletions
diff --git a/app/classes/templates/classes/class_detail.html b/app/classes/templates/classes/class_detail.html
new file mode 100644
index 0000000..50ae63f
--- /dev/null
+++ b/app/classes/templates/classes/class_detail.html
@@ -0,0 +1,11 @@
+{% extends 'base.html' %}
+{% load typogrify_tags %}
+{% block primary %}
+<main>
+<article>
+ <h2><a href="{{object.get_absolute_url}}">{{object.title|widont|smartypants}}</a></h2>
+ <h4>{{object.description|safe|widont|smartypants}}</h4>
+
+</article>
+</main>
+{% endblock %}
diff --git a/app/classes/templates/classes/class_list.html b/app/classes/templates/classes/class_list.html
new file mode 100644
index 0000000..fa1267c
--- /dev/null
+++ b/app/classes/templates/classes/class_list.html
@@ -0,0 +1,43 @@
+{% extends 'base.html' %}
+{% load typogrify_tags %}
+{% load get_next %}
+{% load html5_datetime %}
+{% load pagination_tags %}
+{% block breadcrumbs %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{% endblock %}
+{% block primary %}
+<main role="main" class="archive-wrapper">
+ <div class="archive-intro">
+ <h2 class="archive-hed">Classes</h2>
+ <p>More information coming soon.</p>
+ </div>
+ {% comment %}
+ {% autopaginate object_list 24 %}
+ <ul class="archive-list">{% for object in object_list %}
+ <li class="h-entry hentry archive-list-card" itemscope itemType="http://schema.org/Article">
+ {% if object.featured_image %}<a href="{{object.get_absolute_url}}" class="u-url">
+ <div class="circle-img-wrapper"><img src="{{object.featured_image.get_thumbnail_url}}" alt="{{object.featured_image.alt}}" class="u-photo" /></div>{%endif%}
+ <span class="date dt-published card-smcaps">{{object.pub_date|date:"F Y"}}</span>
+ <a href="{{object.get_absolute_url}}">
+ <h2 class="card-hed">{{object.title|safe|smartypants|widont}}</h2>
+ <p class="card-lede">{{object.subtitle}}</p>
+ <p class="p-summary">{{object.description}}</p>
+ {% if object.session.status == 0 %}
+ <p>Now Enrolling for {{object.session.title}} <br />({{object.number_of_classes}} classes every {{object.get_class_days_display}}, {{object.session.date_start}} - {{object.session.date_end}})</p>
+ {% else %}
+ <p>This class is not currently offered, but if you're interested please email me about setting up a future session.</p>
+ {% endif %}
+ {% if object.requires %}
+ <p>Prerequisites: {{object.requires}}</p>
+ {% endif %}
+ </a>
+ </li>
+ {%endfor%}</ul>
+ {%endcomment%}
+ </main>
+ {%comment%}
+ <nav aria-label="page navigation" class="pagination">
+ {% paginate %}
+ </nav>
+ {%endcomment%}
+</main>
+{% endblock %}