Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed Oct 19, 2024
1 parent f2b8549 commit 47acd1a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tin/templates/assignments/custom_file_action.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ <h3 class="errors">Please correct the following errors:</h3>
<li>{{ field.label }}: {{ error }}</li>
{% endfor %}
{% endfor %}
{% for error in assignment_form.non_field_errors %}
{% for error in form.non_field_errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}

<form method="post" action="{% url 'assignments:create_file_action' course.id %}?{{ request.GET.urlencode }}">
<form method="post" action="{% url 'assignments:create_file_action' course.id %}?action={{ action.id }}">
{% csrf_token %}
<div class="tbl">
{% for field in form %}
<div class="tbl-row" {% if field.name == "permission" %} id="{{ field.name }}" {% endif %}>
<div class="tbl-row">
<span class="tbl-cell bold" style="padding-right:5px;min-width:200px;">{{ field.label_tag }}</span>
<span class="tbl-cell form-input">{{ field }}{% if field.help_text %}<br>{{ field.help_text }}{% endif %}</span>
</div>
Expand All @@ -64,10 +64,5 @@ <h3 class="errors">Please correct the following errors:</h3>
{% endif %}

<input type="submit" value="{% if action %}Save{% else %}Create{% endif %}" />
{% if action %}
<div style="padding: 20px 0px;">
<a class="errors bold" href="{% url 'assignments:delete_file_action' action.id %}">Delete</a>
</div>
{% endif %}
</form>
{% endblock main %}

0 comments on commit 47acd1a

Please sign in to comment.