Commit d44e1378 authored by Jean Michel Rouly's avatar Jean Michel Rouly

Added section label to question display

parent 295811b1
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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-12">
<div class="col-sm-10 col-sm-offset-2">
<input type="submit" class="btn btn-primary" value="Submit Question" />
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment