Skip to content

Commit

Permalink
Remove form enctypes were unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
he3lixxx committed Jun 5, 2023
1 parent e2aca6e commit 3c56fc3
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions evap/evaluation/templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h3>{% trans 'Profile' %}</h3>
<div class="row mb-3">
<div class="col-6">
<div class="card">
<form id="profile-form" method="POST" enctype="multipart/form-data" class="form-horizontal multiselect-form">
<form id="profile-form" method="POST" class="form-horizontal multiselect-form">
{% csrf_token %}
<div class="card-body">
<h4 class="card-title mb-4">{% trans 'Personal information' %}</h4>
Expand Down Expand Up @@ -52,7 +52,7 @@ <h4 class="card-title mb-4">{% trans 'Personal information' %}</h4>
</div>
{% if user.is_editor %}
<div class="col-6">
<form id="settings-form" method="POST" class="form-horizontal multiselect-form settings-form" enctype="multipart/form-data">
<form id="settings-form" method="POST" class="form-horizontal multiselect-form settings-form">
{% csrf_token %}
{% include 'bootstrap_form_errors.html' with errors=delegates_form.non_field_errors %}
<div class="card">
Expand Down
2 changes: 1 addition & 1 deletion evap/staff/templates/staff_course_type_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<a href="{% url 'staff:course_type_merge_selection' %}" class="btn btn-sm btn-secondary">{% trans 'Merge course types' %}</a>
</div>

<form id="course-type-form" method="POST" enctype="multipart/form-data" class="form-horizontal tomselectform">
<form id="course-type-form" method="POST" class="form-horizontal tomselectform">
{% csrf_token %}
{{ formset.management_form }}

Expand Down
2 changes: 1 addition & 1 deletion evap/staff/templates/staff_degree_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% block content %}
{{ block.super }}

<form id="degree-form" method="POST" enctype="multipart/form-data" class="form-horizontal tomselectform">
<form id="degree-form" method="POST" class="form-horizontal tomselectform">
{% csrf_token %}
{{ formset.management_form }}

Expand Down
4 changes: 2 additions & 2 deletions evap/staff/templates/staff_evaluation_person_management.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h6 class="card-subtitle mb-2 text-muted">{% trans 'From Excel file' %}</h6>
</form>
</div>
<div class="col">
<form id="participant-copy-form" method="POST" enctype="multipart/form-data" class="form-vertical h-100">
<form id="participant-copy-form" method="POST" class="form-vertical h-100">
{% csrf_token %}
<div class="card h-100">
<div class="card-body">
Expand Down Expand Up @@ -86,7 +86,7 @@ <h6 class="card-subtitle mb-2 text-muted">{% trans 'From Excel file' %}</h6>
</form>
</div>
<div class="col">
<form id="contributor-copy-form" method="POST" enctype="multipart/form-data" class="form-vertical h-100">
<form id="contributor-copy-form" method="POST" class="form-vertical h-100">
{% csrf_token %}
<div class="card h-100">
<div class="card-body">
Expand Down
2 changes: 1 addition & 1 deletion evap/staff/templates/staff_faq_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% block content %}
{{ block.super }}

<form method="POST" class="form-horizontal" enctype="multipart/form-data">
<form method="POST" class="form-horizontal">
{% csrf_token %}
{{ formset.management_form }}

Expand Down
2 changes: 1 addition & 1 deletion evap/staff/templates/staff_faq_section.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% block content %}
{{ block.super }}

<form method="POST" class="form-horizontal" enctype="multipart/form-data">
<form method="POST" class="form-horizontal">
{% csrf_token %}
{{ formset.management_form }}

Expand Down
2 changes: 1 addition & 1 deletion evap/staff/templates/staff_template_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{% block content %}
{{ block.super }}

<form id="template-form" method="POST" enctype="multipart/form-data" class="form-horizontal multiselect-form">
<form id="template-form" method="POST" class="form-horizontal multiselect-form">
{% csrf_token %}
<div class="card mb-3">
<div class="card-body row">
Expand Down
2 changes: 1 addition & 1 deletion evap/staff/templates/staff_user_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{{ block.super }}
<h3>{% if form.instance.id %}{% trans 'Edit user' %}{% else %}{% trans 'Create user' %}{% endif %}</h3>

<form id="user-form" method="POST" enctype="multipart/form-data" class="form-horizontal multiselect-form">
<form id="user-form" method="POST" class="form-horizontal multiselect-form">
{% csrf_token %}
<div class="card mb-3">
<div class="card-body">
Expand Down

0 comments on commit 3c56fc3

Please sign in to comment.