[skip-ci] Initial accessibility improvements

This commit is contained in:
Matteo Gheza 2020-10-27 00:18:25 +01:00
parent ac78ccde9c
commit be939d859e
3 changed files with 9 additions and 9 deletions

View File

@ -34,12 +34,12 @@ foreach($risultato as $row){
$name = $user->nameById($row["id"]);
$name_encoded = urlencode($name);
$functionName = $row["available"] ? "Deactivate" : "Activate";
$firstCell = $row["chief"] ? "<a onclick='$functionName(".$row["id"].");'><img src='./resources/images/red_helmet.png' width='20px'>$name</a>" : "<a onclick='$callFunction(".$row["id"].");'><img src='./resources/images/black_helmet.png' width='20px'>$name</a>";
$firstCell = $row["chief"] ? "<a onclick='$functionName(".$row["id"].");'><img alt="chief" src='./resources/images/red_helmet.png' width='20px'>$name</a>" : "<a onclick='$callFunction(".$row["id"].");'><img alt="normal user" src='./resources/images/black_helmet.png' width='20px'>$name</a>";
$secondCell = $row["available"] ? "<a onclick='$functionName(".$row["id"].");'><i class='fa fa-check' style='color:green'></i></a>" : "<a onclick='$callFunction(".$row["id"].");'><i class='fa fa-times' style='color:red'></i></a>";
$response[] = [
(time()-$row["online_time"])<=30 ? "<u>".$firstCell."</u>" : $firstCell,
$secondCell,
$row['autista'] ? "<img src='./resources/images/wheel.png' width='20px'>" : "",
$row['autista'] ? "<img alt="driver" src='./resources/images/wheel.png' width='20px'>" : "",
$row['telefono'] ? "<a href='tel:+".$row['telefono']."'><i class='fa fa-phone'></i></a>" : "",
$row['telefono'] ? "<a href='https://api.whatsapp.com/send?phone=+".$row['telefono']."text=ALLERTA IN CORSO.%20Mettiti%20in%20contatto%20con%20$name_encoded'><i class='fa fa-whatsapp' style='color:green'></i></a>" : "",
$row['services'],

View File

@ -69,7 +69,7 @@ textarea {
<div class="container">
<label><b>{{ 'Service day'|t }}</b></label>
<div class="input-group">
<input placeholder="DD/MM/YYY" autocomplete="off" name="data" data-provide="datepicker" value="{{ values.data }}" type="text" class="form-control">
<input aria-label="Date picker" placeholder="DD/MM/YYY" autocomplete="off" name="data" data-provide="datepicker" value="{{ values.data }}" type="text" class="form-control">
<div class="input-group-addon">
<span class="glyphicon glyphicon-th"></span>
</div>
@ -92,7 +92,7 @@ textarea {
<br>
{% for user in service.personale %}
<div {{ user.name == "test" ? "style='display: none'" : "" }} class="form-check">
<input class="form-check-input capo capo-{{ user.id }}" style="transform: scale(1.4); -webkit-transform: scale(1.4);" type="checkbox" name='capo[]' value='{{ user.id }}'>
<input aria-label="{{ username(user.id) }}" class="form-check-input capo capo-{{ user.id }}" style="transform: scale(1.4); -webkit-transform: scale(1.4);" type="checkbox" name='capo[]' value='{{ user.id }}'>
<label class="form-check-label" for="capo-{{ user.id }}">
{{ username(user.id) }}
</label>
@ -109,7 +109,7 @@ textarea {
{% for user in service.personale %}
{% if user.autista == 1 %}
<div {{ user.name == "test" ? "style='display: none'" : "" }} class="form-check">
<input class="form-check-input autisti autisti-{{ user.id }}" style="transform: scale(1.4); -webkit-transform: scale(1.4);" type="checkbox" name='autisti[]' value='{{ user.id }}'>
<input aria-label="{{ username(user.id) }}" class="form-check-input autisti autisti-{{ user.id }}" style="transform: scale(1.4); -webkit-transform: scale(1.4);" type="checkbox" name='autisti[]' value='{{ user.id }}'>
<label class="form-check-label" for="autisti-{{ user.id }}">
{{ username(user.id) }}
</label>
@ -121,7 +121,7 @@ textarea {
<br>
{% for user in service.personale %}
<div {{ user.name == "test" ? "style='display: none'" : "" }} class="form-check">
<input class="form-check-input personale personale-{{ user.id }}" style="transform: scale(1.4); -webkit-transform: scale(1.4);" type="checkbox" name='personale[]' value='{{ user.id }}'>
<input aria-label="{{ username(user.id) }}" class="form-check-input personale personale-{{ user.id }}" style="transform: scale(1.4); -webkit-transform: scale(1.4);" type="checkbox" name='personale[]' value='{{ user.id }}'>
<label class="form-check-label" for="personale-{{ user.id }}">
{{ username(user.id) }}
</label>

View File

@ -69,7 +69,7 @@ textarea {
<div class="container">
<label><b>{{ 'Training day'|t }}</b></label>
<div class="input-group">
<input placeholder="DD/MM/YYY" autocomplete="off" name="data" data-provide="datepicker" value="{{ values.data }}" type="text" class="form-control">
<input aria-label="Date picker" placeholder="DD/MM/YYY" autocomplete="off" name="data" data-provide="datepicker" value="{{ values.data }}" type="text" class="form-control">
<div class="input-group-addon">
<span class="glyphicon glyphicon-th"></span>
</div>
@ -92,7 +92,7 @@ textarea {
<br>
{% for user in training.personale %}
<div {{ user.name == "test" ? "style='display: none'" : "" }} class="form-check">
<input class="form-check-input capo capo-{{ user.id }}" style="transform: scale(1.4); -webkit-transform: scale(1.4);" type="checkbox" name='capo[]' value='{{ user.id }}'>
<input aria-label="{{ username(user.id) }}" class="form-check-input capo capo-{{ user.id }}" style="transform: scale(1.4); -webkit-transform: scale(1.4);" type="checkbox" name='capo[]' value='{{ user.id }}'>
<label class="form-check-label" for="capo-{{ user.id }}">
{{ username(user.id) }}
</label>
@ -108,7 +108,7 @@ textarea {
<br>
{% for user in training.personale %}
<div {{ user.name == "test" ? "style='display: none'" : "" }} class="form-check">
<input class="form-check-input personale personale-{{ user.id }}" style="transform: scale(1.4); -webkit-transform: scale(1.4);" type="checkbox" name='personale[]' value='{{ user.id }}'>
<input aria-label="{{ username(user.id) }}" class="form-check-input personale personale-{{ user.id }}" style="transform: scale(1.4); -webkit-transform: scale(1.4);" type="checkbox" name='personale[]' value='{{ user.id }}'>
<label class="form-check-label" for="personale-{{ user.id }}">
{{ username(user.id) }}
</label>