1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

add aria-label definition to forms

This commit is contained in:
catborise 2020-05-26 16:18:38 +03:00 committed by catborise
parent 8bafaa8720
commit bf15de507a
37 changed files with 122 additions and 122 deletions

View file

@ -13,7 +13,7 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="tabbable">
<ul class="nav nav-tabs">
<ul class="nav nav-tabs" aria-label="Storage create types">
<li class="nav-item">
<a class="nav-link active" href="#dirtab" data-toggle="tab">{% trans "DIR" %}</a>
</li>
@ -30,7 +30,7 @@
<div class="tab-content">
<div class="tab-pane active" id="dirtab">
<div class="modal-body">
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Create storage with pool dir path form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Type" %}</label>
<div class="col-sm-6">
@ -59,7 +59,7 @@
</div>
<div class="tab-pane" id="lvmtab">
<div class="modal-body">
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Create storage pool with LVM pool">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Type" %}</label>
<div class="col-sm-6">
@ -88,7 +88,7 @@
</div>
<div class="tab-pane" id="cephtab">
<div class="modal-body">
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Create storage pool with ceph form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Type" %}</label>
<div class="col-sm-6">
@ -153,7 +153,7 @@
</div>
<div class="tab-pane" id="netfstab">
<div class="modal-body">
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Create storage pool with net filesystem form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Type" %}</label>
<div class="col-sm-6">
@ -209,7 +209,7 @@
</div>
<div class="tab-pane" id="isotab">
<div class="modal-body">
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Create iso pool form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Name" %}</label>
<div class="col-sm-6">

View file

@ -15,7 +15,7 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<form enctype="multipart/form-data" method="post" role="form">{% csrf_token %}
<form enctype="multipart/form-data" method="post" role="form" aria-label="Upload iso form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Name" %}</label>
<div class="col-sm-6">
@ -46,7 +46,7 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Create volume to storage form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Name" %}</label>
<div class="col-sm-6">

View file

@ -57,7 +57,7 @@
<dd class="col-6">{{ used|filesizeformat }}</dd>
<dt class="col-6">{% trans "State" %}</dt>
<dd class="col-6">
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Storage start/stop form">{% csrf_token %}
{% ifequal state 0 %}
<input type="submit" class="btn btn-sm btn-secondary" name="start" value="{% trans "Start" %}">
<input type="submit" class="btn btn-sm btn-danger" name="delete" value="{% trans "Delete" %}"
@ -70,7 +70,7 @@
</dd>
<dt class="col-6">{% trans "Autostart" %}</dt>
<dd class="col-6">
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Storage disable/enable autostart form">{% csrf_token %}
{% ifequal autostart 0 %}
<input type="submit" class="btn btn-sm btn-secondary" name="set_autostart"
value="{% trans "Enable" %}">
@ -120,7 +120,7 @@
<h5 class="modal-title">{% trans "Clone image" %} <span class="text-danger">{{ volume.name }}</span></h5>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Clone image file form">{% csrf_token %}
<div class="modal-body">
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Name" %}</label>
@ -171,7 +171,7 @@
{% endifnotequal %}
</td>
<td>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Delete volume form">{% csrf_token %}
<input type="hidden" name="volname" value="{{ volume.name }}">
<button type="submit" class="btn btn-sm btn-secondary" name="del_volume" title="{% trans "Delete" %}" onclick="return confirm('{% trans "Are you sure?" %}')">
<i class="fa fa-trash"></i>