Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean Michel Rouly
research-questions
Commits
d44e1378
Commit
d44e1378
authored
Mar 08, 2014
by
Jean Michel Rouly
Browse files
Added section label to question display
parent
295811b1
Changes
4
Hide whitespace changes
Inline
Side-by-side
researchquestions/website/templates/index.html
View file @
d44e1378
...
...
@@ -28,6 +28,9 @@ Homepage
<div
class=
"panel-heading"
>
<h3
class=
"panel-title"
>
{{question.anonymized}}
{% if question.section %}
<em>
for
</em>
{{question.section}}
{% endif %}
<span
class=
"pull-right"
>
<em>
Asked on {{question.date.date}}
</em>
</span>
...
...
researchquestions/website/templates/my_questions.html
View file @
d44e1378
...
...
@@ -26,6 +26,9 @@ My Questions
<div
class=
"panel-heading"
>
<h3
class=
"panel-title"
>
{{question.anonymized}}
{% if question.section %}
<em>
for
</em>
{{question.section}}
{% endif %}
<span
class=
"pull-right"
>
<em>
Asked on {{question.date.date}}
</em>
</span>
...
...
researchquestions/website/templates/question.html
View file @
d44e1378
...
...
@@ -34,6 +34,9 @@ Question Discussion
<div
class=
"panel-heading"
>
<h3
class=
"panel-title"
>
{{question.anonymized}}
{% if question.section %}
<em>
for
</em>
{{question.section}}
{% endif %}
<span
class=
"pull-right"
>
<em>
Asked on {{question.date.date}}
</em>
</span>
...
...
researchquestions/website/templates/submit_question.html
View file @
d44e1378
...
...
@@ -55,28 +55,27 @@ Submit Question
<div
class=
"form-group"
>
{% endif %}
<label
class=
"col-sm-2 control-label"
for=
"{{form.section.id_for_label}}"
>
{{ form.section.label }}
{% if form.section.errors %} (Invalid){% endif %}
</label>
<div
class=
"col-sm-10"
>
{{ form.section }}
</div>
<div
class=
"col-sm-10 col-sm-offset-2"
>
<span
class=
"help-block"
>
The class section for which you are submitting this
question, if any. Example: HNRS 110.
</span>
</div>
<label
class=
"col-sm-2 control-label"
for=
"{{form.section.id_for_label}}"
>
{{ form.section.label }}
{% if form.section.errors %} (Invalid){% endif %}
</label>
<div
class=
"col-sm-10"
>
{{ form.section }}
</div>
<div
class=
"col-sm-10 col-sm-offset-2"
>
<span
class=
"help-block"
>
The class section for which you are submitting this
question, if any. Example: HNRS 110.
</span>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"col-
lg-1
2"
>
<div
class=
"col-
sm-10 col-sm-offset-
2"
>
<input
type=
"submit"
class=
"btn btn-primary"
value=
"Submit Question"
/>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment