Skip to content

Commit

Permalink
Use lowercase form method values
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Aug 13, 2024
1 parent 5f1254c commit ccd3ff8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions admin/templates/admin/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1>Administration</h1>
<h2 class="card-title">Set Maintenance Banner</h2>
<div class="d-flex justify-content-start align-items-end" style="width: 100%;">
<!-- Form to set a maintenance banner -->
<form action="{{ url_for('admin_bp.set_banner') }}" method="POST"
<form action="{{ url_for('admin_bp.set_banner') }}" method="post"
class="flex-fill me-2 needs-validation" novalidate>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<!-- Text area for entering banner details -->
Expand All @@ -38,7 +38,7 @@ <h2 class="card-title">Set Maintenance Banner</h2>
<button type="submit" class="btn btn-primary" name="Set Banner">Set Banner</button>
</form>
<!-- Form to remove the maintenance banner -->
<form action="{{ url_for('admin_bp.remove_banner') }}" method="POST" class="flex-shrink-1">
<form action="{{ url_for('admin_bp.remove_banner') }}" method="post" class="flex-shrink-1">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<button type="submit" class="btn btn-secondary" name="Remove Banner">Remove Banner</button>
</form>
Expand All @@ -50,7 +50,7 @@ <h2 class="card-title">Set Maintenance Banner</h2>
<section class="card my-3">
<div class="card-body">
<h2 class="card-title">Change Portal Theme</h2>
<form action="{{ url_for('admin_bp.set_theme') }}" method="POST" class="needs-validation" novalidate>
<form action="{{ url_for('admin_bp.set_theme') }}" method="post" class="needs-validation" novalidate>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<div class="mb-3">
<label for="theme">Select Theme:</label>
Expand All @@ -73,7 +73,7 @@ <h2 class="card-title">Change Portal Theme</h2>
<h2 class="card-title">Update Publication Terms</h2>
<div class="d-flex justify-content-start align-items-end" style="width: 100%;">
<!-- Form to update publication terms -->
<form action="{{ url_for('admin_bp.set_publication_terms') }}" method="POST"
<form action="{{ url_for('admin_bp.set_publication_terms') }}" method="post"
class="flex-fill me-2 needs-validation" novalidate>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<div class="mb-3">
Expand Down
6 changes: 3 additions & 3 deletions group_manager/templates/group_manager/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h1 id="group-manager-text">Group manager</h1>
<div class="card properties-create hidden">
<div class="card-header">Create new group</div>
<div class="card-body" id="group-properties-create">
<form class="form-horizontal" id="f-group-create" action="{{ url_for('group_manager_bp.group_create') }}" method="POST">
<form class="form-horizontal" id="f-group-create" action="{{ url_for('group_manager_bp.group_create') }}" method="post">
<div class="mb-3 row">
<label class="col-sm-4 form-label" for="f-group-create-name">Group name
<i class="fa-solid fa-question-circle" aria-hidden="true" title="Name and type for this group, this cannot be changed after group creation (may only contain lowercase letters (a-z) and hyphens (-))"></i>
Expand Down Expand Up @@ -211,7 +211,7 @@ <h1 id="group-manager-text">Group manager</h1>
<p class="placeholder-text">
Please select a group.
</p>
<form action="{{ url_for('group_manager_bp.group_update') }}" method="POST" id="f-group-update" class="hidden">
<form action="{{ url_for('group_manager_bp.group_update') }}" method="post" id="f-group-update" class="hidden">

<div class="mb-3 row">
<label class="col-sm-4 form-label" for="f-group-update-name">Group name
Expand Down Expand Up @@ -323,7 +323,7 @@ <h1 id="group-manager-text">Group manager</h1>
</div>
<div class="list-group overflow-auto" id="user-list" style="max-height: 243px"></div>
<div class="list-group-item item-user-create" id="user-list-add-user" hidden>
<form action="{{ url_for('group_manager_bp.user_create') }}" method="POST" class="form-inline" id="f-user-create">
<form action="{{ url_for('group_manager_bp.user_create') }}" method="post" class="form-inline" id="f-user-create">
<input name="group_name" id="f-user-create-group" type="hidden" />
<div class="input-group">
<select name="user_name" id="f-user-create-name" class="form-control form-control-sm selectify-user-name" required data-group="#f-user-create-group" >
Expand Down

0 comments on commit ccd3ff8

Please sign in to comment.