code improvements
unify lowercase variant of form method post remove duplicate class selector improve comments
This commit is contained in:
parent
4c3dc1e081
commit
5bd922d109
|
@ -120,7 +120,6 @@ function progress_bar($valuemin, $valuemax, $valuenow, $class = '', $content = '
|
|||
*
|
||||
* @param string $icon_name
|
||||
* @param string $class
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function icon(string $icon_name, string $class = ''): string
|
||||
|
|
|
@ -111,7 +111,7 @@ ready(() => {
|
|||
});
|
||||
});
|
||||
|
||||
/*
|
||||
/**
|
||||
* Button to set current time in time input fields.
|
||||
*/
|
||||
ready(() => {
|
||||
|
@ -152,7 +152,7 @@ ready(() => {
|
|||
*/
|
||||
ready(() => {
|
||||
[
|
||||
['welcome-title', '.btn-group.btn-group .btn.d-none'],
|
||||
['welcome-title', '.btn-group .btn.d-none'],
|
||||
['settings-title', '.user-settings .nav-item'],
|
||||
['oauth-settings-title', 'table tr.d-none'],
|
||||
].forEach(([id, selector]) => {
|
||||
|
@ -183,8 +183,11 @@ ready(() => {
|
|||
return;
|
||||
}
|
||||
|
||||
const onChange = (e) => {
|
||||
localStorage.setItem('collapseShiftsFilterSelect', e.type);
|
||||
/**
|
||||
* @param {Event} event
|
||||
*/
|
||||
const onChange = (event) => {
|
||||
localStorage.setItem('collapseShiftsFilterSelect', event.type);
|
||||
};
|
||||
|
||||
document.getElementById('collapseShiftsFilterSelect')
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="mb-3">
|
||||
<form method="POST" action="{{ url('/admin/logs') }}" class="form-inline">
|
||||
<form method="post" action="{{ url('/admin/logs') }}" class="form-inline">
|
||||
{{ csrf() }}
|
||||
|
||||
{{ f.input('search', __('form.search'), 'text', {'value': search, 'hide_label': true}) }}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{% block title %}{{ __('schedule.import.load.title') }}{% endblock %}
|
||||
|
||||
{% block row_content %}
|
||||
<form method="POST" action="{{ url('/admin/schedule/import/' ~ schedule_id) }}">
|
||||
<form method="post" action="{{ url('/admin/schedule/import/' ~ schedule_id) }}">
|
||||
{{ csrf() }}
|
||||
|
||||
<div class="col-lg-12">
|
||||
|
|
|
@ -32,13 +32,13 @@
|
|||
</td>
|
||||
<td>
|
||||
{% if not user.oauth.contains('provider', name) %}
|
||||
<form method="POST" action="{{ url('/oauth/' ~ name ~ '/connect') }}">
|
||||
<form method="post" action="{{ url('/oauth/' ~ name ~ '/connect') }}">
|
||||
{{ csrf() }}
|
||||
|
||||
{{ f.submit(__('form.connect'), {'size' : 'sm'}) }}
|
||||
</form>
|
||||
{% else %}
|
||||
<form method="POST" action="{{ url('/oauth/' ~ name ~ '/disconnect') }}">
|
||||
<form method="post" action="{{ url('/oauth/' ~ name ~ '/disconnect') }}">
|
||||
{{ csrf() }}
|
||||
|
||||
{{ f.submit(__('form.disconnect'), {'btn_type': 'danger', 'size' : 'sm'}) }}
|
||||
|
|
Loading…
Reference in New Issue