Skip to content

Commit

Permalink
Merge pull request #140 from grepthink/master
Browse files Browse the repository at this point in the history
Minor styling added to TSR forms
  • Loading branch information
Kevin Pannell committed Oct 16, 2018
2 parents bc6d67d + bc1191f commit cc1f992
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 43 deletions.
26 changes: 13 additions & 13 deletions teamwork/templates/projects/tsr_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ <h3 class="box-title">Edit TSR Submission</h3>
<p class="text-center">
<strong>Assignment:</strong> {{ ass.ass_name }}
</p>
<form action="{% url 'tsr_edit' cur_proj.slug ass.slug %}" method="post" role="form">
{% csrf_token %}
{% for form in forms %}
<h3>For {{form.prefix}}</h3>
{% for field in form.visible_fields %}
<label for="{{ field.label }}" class="control-label">{{ field.label }}</label>
<form action="{% url 'tsr_edit' cur_proj.slug ass.slug %}" method="post" role="form">
{% csrf_token %}
{% for form in forms %}
<h3>For {{form.prefix}}</h3>
{% for field in form.visible_fields %}
<label for="{{ field.label }}" class="control-label">{{ field.label }}</label>

{{ field }}
{{ field }}
{% endfor %}
<br>
<br>
{% endfor %}
<br>
<br>
{% endfor %}
<br>
<h5> <input type="submit" value="Submit">
</form>
<h5> <input type="submit" value="Save">
</form>
</div>
</div>
</div>
</div>
{% endblock content %}
45 changes: 30 additions & 15 deletions teamwork/templates/projects/tsr_member.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,35 @@
onblur="checkTextField(this);" />
{% block content %}

<form action="{% url 'create_member_tsr' cur_proj.slug ass.slug %}" method="post" role="form">
{% csrf_token %}
{% for form in forms %}
<br>
<br>
<h3>For
{{form.prefix}}</h3>
{% for field in form.visible_fields %}
<label for="{{ field.label }}" class="control-label">{{ field.label }}</label>
<div class="col-md-8">
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">TSR Form</h3>
</div>
<div class="box-body">
<p class="text-center">
<strong>Course:</strong> {{ cur_proj.course.first.name }}
</p>
<p class="text-center">
<strong>Assignment:</strong> {{ ass.ass_name }}
</p>
<form action="{% url 'create_member_tsr' cur_proj.slug ass.slug %}" method="post" role="form">
{% csrf_token %}
{% for form in forms %}
<h3>For
{{form.prefix}}</h3>
{% for field in form.visible_fields %}
<label for="{{ field.label }}" class="control-label">{{ field.label }}</label>

{{ field }}
{% endfor %}
{% endfor %}
<br>
<h5> <input type="submit" value="Submit">
</form>
{{ field }}
{% endfor %}
<br>
<br>
{% endfor %}
<br>
<h5> <input type="submit" value="Submit">
</form>
</div>
</div>
</div>
{% endblock content %}
46 changes: 31 additions & 15 deletions teamwork/templates/projects/tsr_scrum_master.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,36 @@
onblur="checkTextField(this);" />
{% block content %}

<form action="{% url 'create_scrum_master_tsr' cur_proj.slug ass.slug %}" method="post" role="form">
{% csrf_token %}
{% for form in forms %}
<br>
<br>
<h3>For
{{form.prefix}}</h3>
{% for field in form.visible_fields %}
<label for="{{ field.label }}" class="control-label">{{ field.label }}</label>
<div class="col-md-8">
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">Edit TSR Submission</h3>
</div>
<div class="box-body">
<p class="text-center">
<strong>Course:</strong> {{ cur_proj.course.first.name }}
</p>
<p class="text-center">
<strong>Assignment:</strong> {{ ass.ass_name }}
</p>

{{ field }}
{% endfor %}
{% endfor %}
<br>
<h5> <input type="submit" value="Submit">
</form>
<form action="{% url 'create_scrum_master_tsr' cur_proj.slug ass.slug %}" method="post" role="form">
{% csrf_token %}
{% for form in forms %}
<h3>For
{{form.prefix}}</h3>
{% for field in form.visible_fields %}
<label for="{{ field.label }}" class="control-label">{{ field.label }}</label>

{{ field }}
{% endfor %}
<br>
<br>
{% endfor %}
<br>
<h5> <input type="submit" value="Submit">
</form>
</div>
</div>
</div>
{% endblock content %}

0 comments on commit cc1f992

Please sign in to comment.