Skip to content

Commit 8977b80

Browse files
Merge pull request #252 from RSE-Sheffield/feat/video-instructions
Add documentation/help page with recorded video.
2 parents cf74e80 + 1b74395 commit 8977b80

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

home/templates/help.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{% extends "base_manager.html" %}
2+
{% block content %}
3+
<div class="container mx-auto px-4 py-8">
4+
<h1>How to use the SORT online tool</h1>
5+
<p>See the video below for instructions on how to use the SORT online tool.</p>
6+
7+
<iframe id="kaltura_player" style="width: 80%; aspect-ratio: 16 / 9; margin: auto"
8+
src='https://cdnapisec.kaltura.com/p/2103181/embedPlaykitJs/uiconf_id/53345422?iframeembed=true&amp;entry_id=1_e1eky7pw&amp;config%5Bprovider%5D=%7B%22widgetId%22%3A%221_t5fs1o53%22%7D&amp;config%5Bplayback%5D=%7B%22startTime%22%3A0%7D'
9+
style="width: 400px;height: 285px;border: 0;" allowfullscreen webkitallowfullscreen mozAllowFullScreen
10+
allow="autoplay *; fullscreen *; encrypted-media *"
11+
sandbox="allow-downloads allow-forms allow-same-origin allow-scripts allow-top-navigation allow-pointer-lock allow-popups allow-modals allow-orientation-lock allow-popups-to-escape-sandbox allow-presentation allow-top-navigation-by-user-activation"
12+
title="SORT Application Introduction"></iframe>
13+
</div>
14+
{% endblock %}

home/urls.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,9 @@
5454
views.ProjectDeleteView.as_view(),
5555
name="project_delete",
5656
),
57+
path(
58+
"help/",
59+
views.HelpView.as_view(),
60+
name="help",
61+
)
5762
]

home/views.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from django.shortcuts import get_object_or_404, redirect, render
1515
from django.urls import reverse, reverse_lazy
1616
from django.views import View
17-
from django.views.generic import ListView
17+
from django.views.generic import ListView, TemplateView
1818
from django.views.generic.edit import CreateView, DeleteView, UpdateView
1919

2020
from survey.models import Survey
@@ -360,3 +360,6 @@ def form_valid(self, form):
360360

361361
def get_success_url(self):
362362
return reverse_lazy("myorganisation")
363+
364+
class HelpView(LoginRequiredMixin, TemplateView):
365+
template_name = "help.html"

static/templates/base_manager.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
{% if '/invite' in request.path %}active{% endif %}"
3636
href="{% url 'myorganisation' %}"><i class="bx bxs-buildings"></i> My Organisation</a>
3737
</li>
38+
<li class="nav-item">
39+
<a class="nav-link {% if '/help;' in request.path %}active{% endif %}" href="{% url 'help' %}"><i class='bx bxs-help-circle' ></i> Help</a>
40+
</li>
3841
</ul>
3942
<ul class="navbar-nav">
4043
{% if user.is_authenticated %}

0 commit comments

Comments
 (0)