Browse Source

imported php faq page

php2python
Holger Frey 7 years ago
parent
commit
e2c872a9f5
  1. 2
      ordr2/templates/layout.jinja2
  2. 74
      ordr2/templates/pages/faq.jinja2
  3. 2
      ordr2/templates/pages/welcome.jinja2
  4. 9
      ordr2/views/pages.py

2
ordr2/templates/layout.jinja2

@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
<![endif]-->
</head>
<body class="">
<body class="{{ ''.join(request.traversed)}} {{request.view_name}}">
<header class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">

74
ordr2/templates/pages/faq.jinja2

@ -0,0 +1,74 @@ @@ -0,0 +1,74 @@
{% extends "ordr2:templates/layout.jinja2" %}
{% block subtitle %} FAQ {% endblock subtitle %}
{% block content %}
<div class="container">
<h1>Frequently Asked Questions</h1>
<section>
<h2>Account</h2>
<div class="well">
<h3>
Why can't I log in? It always says: &quot;You entered the wrong unsername and/or password.&quot;
</h3>
<p>
First of all, just because <em>ordr</em> tells you that you have entered a wrong username or password doesn't mean that's necesseraily true. Sound dumb? But actually this is a security measure, which helps against brood force attacks because the adversary doesn't know if the username he guessed was correct or not.
</p>
<p>
Usually there are two common reasons why you can't log in. There are:
</p>
<ol>
<li><em>Your account hasn't been activated by an admin yet.</em> &ndash; In this case ask a admin if he already has activated your account.</li>
<li><em>You mistyped your password or username.</em> &ndash; Just try it another time and make sure caps log isn't activated.</li>
</ol>
</div>
<div class="well">
<h3>
Why can't I choose my own username?
</h3>
<p>
We want to enforce a specific guideline for the username. Namely <em>first name</em> followed immediately by the <em>last name</em>. This way everyone can easily identify the person, who placed an order. So please enter your real name into the registration form. Otherwise your account may not been activated because no one knows who you are.
</p>
</div>
<div class="well">
<h3>
Why can I only edit my email after I registered?
</h3>
<p>
Your username depends on your first and last name. Changing the username is not allowed, therefore you are also not allowed to change your first and last name afterwards. Even admins can not change your first/last name and your username.
</p>
</div>
</section>
<section>
<h2>Ordering</h2>
<div class="well">
<h3>
I have an consumable, which I am ordering regulary but isn't in the databse. Can I add it?
</h3>
<p>
Unfortunately you can not add consumables to the databse yourself. But ask an admin or purchaser. They're certainly to help you out.
</p>
</div>
</section>
<section>
<h2>Miscellaneous</h2>
<div class="well">
<h3>
I have found a bug where can I report it?
</h3>
<p>
If you have found a bug or an issue with the software please use <a href="https://git.cpi.imtek.uni-freiburg.de/holgi/ordr2/issues">this page here</a>.
You need an <a href="https://wiki.cpi.imtek.uni-freiburg.de/CPIvServerDocumentation/GogsGitServer">gogs</a> account to submit an issue. Please be as specific as you can be.
</p>
</div>
</section>
</div>
{% endblock content %}

2
ordr2/templates/pages/welcome.jinja2

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
{% extends "ordr2:templates/layout.jinja2" %}
{% block subtitle %} Welcome {% endblock subtitle %}
{% block content %}
<div class="container">

9
ordr2/views/pages.py

@ -8,3 +8,12 @@ from pyramid.view import view_config @@ -8,3 +8,12 @@ from pyramid.view import view_config
)
def welcome(context, request):
return {}
@view_config(
context='ordr2.resources.Root',
name='faq',
renderer='../templates/pages/faq.jinja2'
)
def faqs(context, request):
return {}