From e2d2cf7f764ffd9569e78b3e66bb73af98112e78 Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Tue, 26 Jan 2016 08:32:25 +0100 Subject: [PATCH] Add FAQ --- scipost/forms.py | 2 +- scipost/templates/scipost/about.html | 9 ++++++--- scipost/templates/scipost/index.html | 1 + scipost/urls.py | 1 + scipost/views.py | 3 +++ 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/scipost/forms.py b/scipost/forms.py index c058e5e1d..fceb78433 100644 --- a/scipost/forms.py +++ b/scipost/forms.py @@ -30,7 +30,7 @@ class RegistrationForm(forms.Form): username = forms.CharField(label='* Username', max_length=100) password = forms.CharField(label='* Password', widget=forms.PasswordInput()) password_verif = forms.CharField(label='* Verify pwd', widget=forms.PasswordInput()) - captcha = CaptchaField(label='* Captcha') + captcha = CaptchaField(label='* I am not a robot') #class RegistrationFormUser(forms.ModelForm): # class Meta: diff --git a/scipost/templates/scipost/about.html b/scipost/templates/scipost/about.html index 5b7ce49d0..eea2b9dfd 100644 --- a/scipost/templates/scipost/about.html +++ b/scipost/templates/scipost/about.html @@ -14,7 +14,8 @@ <div class="row"> <div class="col-6"> <h1>About SciPost</h1> - <h4>Read the original <a href="{% static 'scipost/info/SciPost_Description.pdf' %}">SciPost description document</a>. + <h4>Read the original <a href="{% static 'scipost/info/SciPost_Description.pdf' %}">SciPost description document</a>.</h4> + <h4><a href="{% url 'scipost:FAQ' %}">Frequently asked questions</a>.</h4> </div> <div class="col-6"> <p>SciPost is a complete scientific publication portal.</p> @@ -53,7 +54,7 @@ <section> <div class="row"> <div class="col-3"> - <h1>SciPost is endorsed by the</h1> + <h1>SciPost is endorsed by</h1> </div> <div class="col-3"> <a href="http://www.nwo.nl/en"><img src="{% static 'scipost/images/NWO_logo_EN.jpg' %}" alt="NWO logo" width='300px' /></a> @@ -64,7 +65,9 @@ <p style="font-size: 50%">FOM is part of NWO</p> </div> --> - <div class="col-6"> + <div class="col-1"> + </div> + <div class="col-5"> <p>All articles published in SciPost Journals fulfill the Gold standard Open Access requirements of the NWO, as stipulated on the NWO’s <a href="http://www.nwo.nl/en/policies/open+science">Open Science page</a>.</p> </div> </div> diff --git a/scipost/templates/scipost/index.html b/scipost/templates/scipost/index.html index 17747b1f5..1332a5e91 100644 --- a/scipost/templates/scipost/index.html +++ b/scipost/templates/scipost/index.html @@ -12,6 +12,7 @@ <h1><a href="{% url 'scipost:about' %}">About SciPost</a></h1> <p>SciPost is a complete scientific publication portal managed by active professional scientists.</p> <p>It is purely online-based and offers freely, openly, globally and perpetually accessible science.</p> + <h3><a href="{% url 'scipost:FAQ' %}">Frequently asked questions</a></h3> <h3><a href="{% url 'scipost:about' %}">Read more</a></h3> </div> <div class="col-1"></div> diff --git a/scipost/urls.py b/scipost/urls.py index e171dece8..7cbe5ea09 100644 --- a/scipost/urls.py +++ b/scipost/urls.py @@ -7,6 +7,7 @@ urlpatterns = [ url(r'^base$', views.base, name='base'), # Info url(r'^about$', views.about, name='about'), + url(r'^FAQ$', views.FAQ, name='FAQ'), url(r'^description$', views.description, name='description'), url(r'^peer_witnessed_refereeing$', views.peer_witnessed_refereeing, name='peer_witnessed_refereeing'), ################ diff --git a/scipost/views.py b/scipost/views.py index 15951feb5..2ac041b85 100644 --- a/scipost/views.py +++ b/scipost/views.py @@ -39,6 +39,9 @@ def base(request): def about(request): return render(request, 'scipost/about.html') +def FAQ(request): + return render(request, 'scipost/FAQ.html') + def description(request): response = HttpResponse(content_type='application/pdf') response['Content-Disposition'] = 'filename="SciPost_Description.pdf"' -- GitLab