1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 15:15:22 +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

@ -82,7 +82,7 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Edit privileges form">{% csrf_token %}
<input type="hidden" name="user_inst" value="{{ inst.id }}">
<div class="form-group row">
<label class="col-sm-4 col-form-label">{% trans "VNC" %}</label>
@ -122,7 +122,7 @@
</div> <!-- /.modal -->
</td>
<td style="width:5px;">
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Delete user form">{% csrf_token %}
<input type="hidden" name="user_inst" value="{{ inst.id }}">
<button type="submit" class="btn btn-sm btn-secondary" name="delete" title="{% trans "Delete" %}" onclick="return confirm('{% trans "Are you sure?" %}')">
<span class="fa fa-trash" aria-hidden="true"></span>

View file

@ -66,7 +66,7 @@
<div class="modal fade" id="editUser{{ user.id }}" tabindex="-1" role="dialog" aria-labelledby="editUserLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Edit user form">{% csrf_token %}
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h5 class="modal-title">{% trans "Edit user info" %}</h5>

View file

@ -64,7 +64,7 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<form method="post">{% csrf_token %}
<form method="post" aria-label="Edit user form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-4 col-form-label">{% trans "Name" %}</label>
<div class="col-sm-6">

View file

@ -8,7 +8,7 @@
<div class="modal fade" id="AddUser" tabindex="-1" role="dialog" aria-labelledby="AddUserLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<form method="post">{% csrf_token %}
<form method="post" aria-label="Add user form">{% csrf_token %}
<div class="modal-header">
<h5 class="modal-title">{% trans "Add New User" %}</h5>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>

View file

@ -13,7 +13,7 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Add user instance form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-4 col-form-label">{% trans "Host" %} / {% trans "Instance" %}</label>
<div class="col-sm-6">

View file

@ -13,7 +13,7 @@
{% trans "Incorrect username or password." %}
</div>
{% endif %}
<form class="form-signin" method="post" role="form">{% csrf_token %}
<form class="form-signin" method="post" role="form" aria-label="Login form">{% csrf_token %}
<h2 class="form-signin-heading">{% trans "Sign In" %}</h2>
<input type="text" class="form-control" name="username" placeholder="{% trans "Login" %}" autocapitalize="none" autocorrect="off" autofocus>
<input type="password" class="form-control" name="password" placeholder="{% trans "Password" %}">

View file

@ -16,7 +16,7 @@
<div class="row">
<div class="col-lg-12">
<h3 class="page-header">{% trans "Edit Profile" %}</h3>
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Edit user info form">{% csrf_token %}
<div class="form-group">
<label class="col-sm-2 col-form-label">{% trans "Login" %}</label>
<div class="col-sm-4">
@ -43,7 +43,7 @@
</form>
{% if perms.accounts.change_password %}
<h3 class="page-header">{% trans "Edit Password" %}</h3>
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Edit user password form">{% csrf_token %}
<div class="form-group">
<label class="col-sm-2 col-form-label">{% trans "Old" %}</label>
<div class="col-sm-4">
@ -79,7 +79,7 @@
<tr>
<td>{{ key.keyname }} ({% ssh_to_fingerprint key.keypublic %})</td>
<td>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Delete user public key form">{% csrf_token %}
<input type="hidden" name="keyid" value="{{ key.id }}"/>
<button type="submit" class="btn btn-sm btn-secondary" name="keydelete" title="{% trans "Delete" %}" onclick="return confirm('{% trans "Are you sure?" %}')">
<span class="fa fa-trash"></span>
@ -93,7 +93,7 @@
</div>
</div>
{% endif %}
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Add key to user form">{% csrf_token %}
<div class="form-group bridge_name_form_group_dhcp">
<label class="col-sm-2 col-form-label">{% trans "Key name" %}</label>
<div class="col-sm-4">

View file

@ -16,7 +16,7 @@
<div class="">
<div class="col-lg-12">
<h3 class="page-header">{% trans "App Settings" %}</h3>
<form action="{% url 'set_language' %}" method="post" style="display:inline">{% csrf_token %}
<form action="{% url 'set_language' %}" method="post" style="display:inline" aria-label="Edit language.name_local settings form">{% csrf_token %}
<div class="form-group row">
<input name="next" type="hidden" value="{{ redirect_to }}">
<label class="col-sm-3 col-form-label">{% trans "Language" %}</label>
@ -35,7 +35,7 @@
</div>
</form>
{% if request.user.is_superuser %}
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Edit sass directory settings form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{{ sass_dir.name }}</label>
<div class="col-sm-6">
@ -43,7 +43,7 @@
</div>
</div>
</form>
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Edit theme settings form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans bootstrap_theme.name %}</label>
<div class="col-sm-6">
@ -57,7 +57,7 @@
</div>
</form>
{% endif %}
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Edit bottom bar settings form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{{ show_inst_bottom_bar.name }}</label>
<div class="col-sm-6">

View file

@ -60,7 +60,7 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
{% ifequal compute.type 1 %}
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Edit tcp host form">{% csrf_token %}
<div class="modal-body">
<div class="form-group row">
<label class="col-sm-4 col-form-label">{% trans "Label" %}</label>
@ -107,7 +107,7 @@
</form>
{% endifequal %}
{% ifequal compute.type 2 %}
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Edit ssh host form">{% csrf_token %}
<div class="modal-body">
<p class="modal-body">{% trans "Need create ssh <a href='https://github.com/retspen/webvirtmgr/wiki/Setup-SSH-Authorization'>authorization key</a>. If you have another SSH port on your server, you can add IP:PORT like '192.168.1.1:2222'." %}</p>
<div class="form-group row">
@ -151,7 +151,7 @@
</form>
{% endifequal %}
{% ifequal compute.type 3 %}
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Edit tls host form">{% csrf_token %}
<div class="modal-body">
<div class="form-group row">
<label class="col-sm-4 col-form-label">{% trans "Label" %}</label>
@ -199,7 +199,7 @@
</form>
{% endifequal %}
{% ifequal compute.type 4 %}
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Edit/delete host form">{% csrf_token %}
<div class="modal-body">
<div class="form-group row">
<label class="col-sm-4 col-form-label">{% trans "Label" %}</label>

View file

@ -49,7 +49,7 @@
<body>
<div id='main_container' class="container">
<nav class="navbar navbar-expand-md navbar-dark bg-primary">
<nav class="navbar navbar-expand-md navbar-dark bg-primary" arial-label="console navbar">
<div class="container">
<a class="navbar-brand">{{ instance.name }}</a>
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target=".navbar-collapse" aria-expanded="false" aria-label="Toggle navigation">

View file

@ -295,7 +295,7 @@
<!-- Password Dialog -->
<div class="noVNC_center noVNC_connect_layer">
<div id="noVNC_password_dlg" class="noVNC_panel"><form>
<div id="noVNC_password_dlg" class="noVNC_panel"><form aria-label="noVNC password form">
<ul>
<li>
<label>Password:</label>

View file

@ -14,7 +14,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="Flavor selection 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

@ -34,7 +34,7 @@
<div class="col-lg-12">
<div role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<ul class="nav nav-tabs" role="tablist" aria-label="Instance create method">
<li class="nav-item">
<a class="nav-link active" href="#select_architecture" aria-controls="flavor" role="tab" data-toggle="tab">
{% trans "Architecture" %}
@ -51,7 +51,7 @@
<div role="tabpanel" class="tab-pane tab-pane-bordered active" id="select_architecture">
<div class="center-block">
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Select instance architecture form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Architecture" %}</label>
<div class="col-sm-6">
@ -84,7 +84,7 @@
</div>
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="addFromXML">
<div class="well">
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Create instance with XML form">{% csrf_token %}
<div class="col-sm-12" id="xmlheight">
<input type="hidden" name="dom_xml"/>
<textarea id="editor"></textarea>

View file

@ -38,7 +38,7 @@
<div class="col-lg-12">
<div role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<ul class="nav nav-tabs" role="tablist" aria-label="Instance create method">
<li class="nav-item">
<a class="nav-link float-right" href="#" role="tab" data-toggle="tab" onclick="goto_compute()">
<span class="fa fa-arrow-left"></span>
@ -102,7 +102,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 instance from flavor form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Name" %}</label>
<div class="col-sm-6">
@ -286,7 +286,7 @@
</a>
</td>
<td style="width:5px;">
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Delete flavor form">{% csrf_token %}
<input type="hidden" name="flavor" value="{{ flavor.id }}">
<button type="submit" class="btn btn-sm btn-secondary" name="delete_flavor" onclick="return confirm('{% trans "Are you sure?" %}')">
<span class="fa fa-trash"></span>
@ -304,7 +304,7 @@
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="addCustom">
<div class="well">
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Create custom instance form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Name" %}</label>
<div class="col-sm-7">
@ -517,7 +517,7 @@
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="addFromTemp">
<div class="well">
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Create instance from template form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Name" %}</label>
<div class="col-sm-7">

View file

@ -13,7 +13,7 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Add instance network form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-4 col-form-label">{% trans "MAC" %}</label>
<div class="col-sm-6">

View file

@ -13,7 +13,7 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Add instance owner form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-4 col-form-label">{% trans "User" %}</label>
<div class="col-sm-6">

View file

@ -13,7 +13,7 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<ul class="nav nav-tabs">
<ul class="nav nav-tabs" aria-label="Disk attach type">
<li class="nav-item">
<a class="nav-link active" href="#NewDisk" data-toggle="tab">{% trans 'New Disk' %}</a>
</li>
@ -23,7 +23,7 @@
</ul>
<div class="tab-content">
<div class="tab-pane active" id="NewDisk">
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Add new volume to disk form">{% csrf_token %}
<div class="modal-body">
<p class="font-weight-bold">{% trans "Volume parameters" %}</p>
<div class="form-group row">
@ -93,7 +93,7 @@
</div>
</div> <!-- /.modal-body -->
<div class="tab-pane" id="ExistingDisk">
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Add existing volume to instance form">{% csrf_token %}
<div class="modal-body">
<p class="font-weight-bold">{% trans "Volume parameters" %}</p>
<div class="form-group row">

View file

@ -13,7 +13,7 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<form method="post"> {% csrf_token %}
<form method="post" aria-label="Select compute for instance create form"> {% csrf_token %}
<div class="form-group row">
<label class="col-sm-4 col-form-label">{% trans "Compute" %}</label>
<div class="col-sm-6">

View file

@ -14,7 +14,7 @@
</div>
<div class="modal-body">
<ul class="nav nav-tabs mb-3" role="tablist">
<ul class="nav nav-tabs mb-3" role="tablist" aria-label="Disk options">
<li class="nav-item" role="presentation">
<a class="nav-link active" href="#VirtualDisk{{ id }}" data-toggle="tab">{% trans 'Virtual Disk' %}</a>
</li>

View file

@ -69,7 +69,7 @@
<div class="container">
<div role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-pills" id="navbtn">
<ul class="nav nav-pills" id="navbtn" aria-label="Instance actions">
<li class="nav-item">
<a href="#power" class="nav-link action-button active" aria-controls="power" role="tab" data-toggle="tab">
<i id="action-block" class="fa fa-power-off fa-2x" aria-hidden="true"></i>
@ -120,7 +120,7 @@
<div role="tabpanel" class="tab-pane active" id="power">
<div role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<ul class="nav nav-tabs" role="tablist" aria-label="Instance power actions">
{% ifequal status 1 %}
<li class="nav-item">
<a class="nav-link text-secondary active" href="#poweroff" aria-controls="poweroff" role="tab" data-toggle="tab">
@ -172,21 +172,21 @@
{% ifequal status 1 %}
<div role="tabpanel" class="tab-pane tab-pane-bordered active" id="poweroff">
<p>{% trans "This action sends an ACPI shutdown signal to the instance." %}</p>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label0="Power off instance form">{% csrf_token %}
<input type="submit" name="poweroff" class="btn btn-lg btn-success float-right" value="{% trans "Power Off" %}">
<div class="clearfix"></div>
</form>
</div>
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="powercycle">
<p>{% trans "This action forcibly powers off and start the instance and may cause data corruption." %}</p>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Power cycle instance form">{% csrf_token %}
<input type="submit" name="powercycle" class="btn btn-lg btn-success float-right" value="{% trans "Power Cycle" %}">
<div class="clearfix"></div>
</form>
</div>
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="powerforce">
<p>{% trans "This action forcibly powers off the instance and may cause data corruption." %}</p>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Force to shotdown instance form">{% csrf_token %}
<input type="submit" name="powerforce" class="btn btn-lg btn-success float-right" value="{% trans "Force Off" %}">
<div class="clearfix"></div>
</form>
@ -194,7 +194,7 @@
{% if request.user.is_superuser %}
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="suspend">
<p>{% trans "This action suspends the instance." %}</p>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Suspend instance form">{% csrf_token %}
<input type="submit" name="suspend" class="btn btn-lg btn-success float-right" value="{% trans "Suspend" %}">
<div class="clearfix"></div>
</form>
@ -205,14 +205,14 @@
{% if request.user.is_superuser %}
<div role="tabpanel" class="tab-pane tab-pane-bordered active" id="resume">
<p>{% trans "This action restore the instance after suspend." %}</p>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Resume instance from suspension form">{% csrf_token %}
<input type="submit" name="resume" class="btn btn-lg btn-success float-right" value="{% trans "Resume" %}">
<div class="clearfix"></div>
</form>
</div>
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="powerforce">
<p>{% trans "This action forcibly powers off the instance and may cause data corruption." %}</p>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Force to shutdown form">{% csrf_token %}
<input type="submit" name="powerforce" class="btn btn-lg btn-success float-right" value="{% trans "Force Off" %}">
<div class="clearfix"></div>
</form>
@ -220,7 +220,7 @@
{% else %}
<div role="tabpanel" class="tab-pane tab-pane-bordered active" id="resume">
<p>{% trans "Administrator blocked your instance." %}</p>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Resume instance form">{% csrf_token %}
<button class="btn btn-lg btn-success disabled float-right">{% trans "Resume" %}</button>
<div class="clearfix"></div>
</form>
@ -230,7 +230,7 @@
{% ifequal status 5 %}
<div role="tabpanel" class="tab-pane tab-pane-bordered active" id="boot">
<p>{% trans "Click on Boot button to start this instance." %}</p>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Start instance form">{% csrf_token %}
{% if instance.is_template %}
<p>{% trans "Template instance cannot be started." %}</p>
<input type="submit" name="poweron" class="btn btn-lg btn-success float-right disabled" value="{% trans "Power On" %}">
@ -244,7 +244,7 @@
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="access">
<div role="tabpanel" class="tab-pane" id="access" aria-label="Instance access options">
<div role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
@ -299,7 +299,7 @@
{% if show_access_root_password %}
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="rootpasswd">
<p>{% trans "You need shut down your instance and enter a new root password." %}</p>
<form class="form-inline" method="post" role="form">{% csrf_token %}
<form class="form-inline" method="post" role="form" aria-label="Add root password to instance form">{% csrf_token %}
<div class="form-group row">
<div class="col-sm-12">
<input type="text" class="form-control-lg" name="passwd" placeholder="{% trans "Enter Password" %}" maxlength="24">
@ -317,7 +317,7 @@
{% if show_access_ssh_keys %}
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="sshkeys">
<p>{% trans "You need shut down your instance and choose your public key." %}</p>
<form class="form-inline" method="post" role="form">{% csrf_token %}
<form class="form-inline" method="post" role="form" aria-label="Add public key to instance form">{% csrf_token %}
<div class="form-group row">
<div class="col-sm-12">
<select name="sshkeyid" class="form-control keyselect">
@ -358,7 +358,7 @@
<div role="tabpanel" class="tab-pane" id="resize">
<div role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<ul class="nav nav-tabs" role="tablist" aria-label="Instance resize options">
<li class="nav-item">
<a class="nav-link text-secondary active" href="#resizevm_cpu" aria-controls="resizevm_cpu" role="tab" data-toggle="tab">
{% trans "CPU" %}
@ -381,7 +381,7 @@
<div role="tabpanel" class="tab-pane tab-pane-bordered active" id="resizevm_cpu">
{% if request.user.is_superuser or request.user.is_staff or userinstance.is_change %}
{% if status == 5 or not vcpus %}
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Resize instance cpu form">{% csrf_token %}
<p class="font-weight-bold">{% trans "Logical host CPUs" %} : {{ vcpu_host }}</p>
<div class="form-group row">
<label class="col-sm-4 col-form-label"> {% trans "Current Allocation" %}</label>
@ -420,7 +420,7 @@
<div class="col-sm-3"></div>
<div class="col-sm-6">
{% for id, vcpu in vcpus.items %}
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Resize instance cpu form">{% csrf_token %}
<div class="col-sm-3">
<input name="id" value="{{ id }}" hidden/>
{% if vcpu.enabled == 'yes' and vcpu.hotpluggable == "yes" %}
@ -444,7 +444,7 @@
</div>
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="resizevm_mem">
{% if request.user.is_superuser or request.user.is_staff or userinstance.is_change %}
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Resize instance memory form">{% csrf_token %}
<p class="font-weight-bold">{% trans "Total host memory" %}: {{ memory_host|filesizeformat }}</p>
<div class="form-group row">
<label class="col-sm-4 col-form-label">{% trans "Current allocation" %} ({% trans "MB" %})</label>
@ -483,7 +483,7 @@
</div>
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="resizevm_disk">
{% if request.user.is_superuser or request.user.is_staff or userinstance.is_change %}
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Resize instance disk form">{% csrf_token %}
<p class="font-weight-bold">{% trans "Disk allocation (GB)" %}:</p>
{% for disk in disks %}
<div class="form-group row">
@ -511,7 +511,7 @@
<div role="tabpanel" class="tab-pane" id="snapshots">
<div role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<ul class="nav nav-tabs" role="tablist" aria-label="Instance snapshot menu">
<li class="nav-item">
<a class="nav-link text-secondary active" href="#takesnapshot" aria-controls="takesnapshot" role="tab" data-toggle="tab">
{% trans "Take Snapshot" %}
@ -528,7 +528,7 @@
<div role="tabpanel" class="tab-pane tab-pane-bordered active" id="takesnapshot">
{% ifequal status 5 %}
<p>{% trans "This may take more than an hour, depending on how much content is on your droplet and how large the disk is." %}</p>
<form class="form-inline" method="post" role="form">{% csrf_token %}
<form class="form-inline" method="post" role="form" aria-label="Create snapshot form">{% csrf_token %}
<div class="form-group row">
<div class="col-sm-12">
<input type="text" class="form-control form-control-lg" name="name" placeholder="{% trans "Enter Snapshot Name" %}" maxlength="14">
@ -561,7 +561,7 @@
<td><strong>{{ snap.name }}</strong></td>
<td>{{ snap.date|date:"M d H:i:s" }}</td>
<td style="width:30px;">
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Restore snapshot form">{% csrf_token %}
<input type="hidden" name="name" value="{{ snap.name }}">
{% ifequal status 5 %}
<button type="submit" class="btn btn-sm btn-secondary" name="revert_snapshot" title="{% trans 'Revert to this Snapshot' %}" onclick="return confirm('Are you sure?')">
@ -576,7 +576,7 @@
</form>
</td>
<td style="width:30px;">
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Delete snapshot form">{% csrf_token %}
<input type="hidden" name="name" value="{{ snap.name }}">
<button type="submit" class="btn btn-sm btn-danger" name="delete_snapshot" title="{% trans 'Delete Snapshot' %}" onclick="return confirm('{% trans "Are you sure?" %}')">
<span class="fa fa-trash"></span>
@ -598,7 +598,7 @@
<div role="tabpanel" class="tab-pane" id="settings">
<div role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<ul class="nav nav-tabs" role="tablist" aria-label="Instance settings">
{% if request.user.is_superuser %}
<li class="nav-item ">
<a class="nav-link text-secondary active" href="#boot_opt" aria-controls="boot" role="tab" data-toggle="tab">
@ -664,7 +664,7 @@
{% if request.user.is_superuser %}
<div role="tabpanel" class="tab-pane tab-pane-bordered active" id="boot_opt">
<p class="font-weight-bold">{% trans 'Autostart' %}</p>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Set enable/disable autostart instance form">{% csrf_token %}
<div class="form-group row">
<div class="col-sm-12 text-center">
<p>{% trans "Autostart your instance when host server is power on " %}
@ -678,7 +678,7 @@
</div>
</form>
<p class="font-weight-bold">{% trans 'Boot Order' %}</p>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Enable/disable instance boot order form">{% csrf_token %}
<div class="form-group row">
<div class="col-sm-12 text-center">
{% ifequal status 5 %}
@ -705,7 +705,7 @@
{% endfor %}
</div>
</div>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Boot order edit form">{% csrf_token %}
<input id="bootorder" name="bootorder" hidden>
<div class="d-flex justify-content-center">
<div id="b_order" class="multipleselect border-0">
@ -738,7 +738,7 @@
<div class="clearfix"></div>
</div>
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="disks">
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Detach instance CD-ROM form">{% csrf_token %}
<p class="font-weight-bold">
{% trans "Instance Media" %}
{% if status == 5 and allow_admin_or_not_template %}
@ -754,7 +754,7 @@
</p>
</form>
{% for cd in media %}
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Mount/unmount instance CD-ROM form">{% csrf_token %}
<div class="form-group row">
<a class="col-sm-3 col-form-label"
name="details"
@ -860,7 +860,7 @@
<td>{{ disk.storage }}</td>
<td>{{ disk.path }}</td>
<td class="text-nowrap">
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Edit instance volume form">{% csrf_token %}
<input type="hidden" name="path" value="{{ disk.path }}">
<input type="hidden" name="dev" value="{{ disk.dev }}">
<input type="hidden" name="storage" value="{{ disk.storage }}">
@ -914,7 +914,7 @@
{% for network in networks %}
<tr>
<td rowspan="2">eth{{ forloop.counter0 }}({{ network.target|default:"no target" }})
<form method="post">{% csrf_token %}
<form method="post" aria-label="set instance link state form">{% csrf_token %}
<input name="mac" value="{{ network.mac }}" hidden/>
<input name="set_link_state" value="{{ network.state }}" hidden/>
<input type="checkbox" {% if network.state == 'up' %} checked
@ -1021,7 +1021,7 @@
<td>{{ network.model }}</td>
<th>{% trans 'QoS' %}</th>
<td class="d-flex justify-content-end">
<form method="post" name="add_qos{{ forloop.counter0 }}" role="form">{% csrf_token %}
<form method="post" name="add_qos{{ forloop.counter0 }}" role="form" aria-label="Add network qos form">{% csrf_token %}
<input type="text" name="net-mac-{{ forloop.counter0 }}" value="{{ network.mac }}" hidden/>
{% include 'add_network_qos.html' with id=forloop.counter0 %}
</form>
@ -1054,7 +1054,7 @@
<tbody>
{% for q, attrs in qos.items %}
{% for att in attrs %}
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Instance Qos configuration form">{% csrf_token %}
<tr>
<td><label class="col-form-label">{{ q }} {{ att.direction | capfirst }}</label></td>
<td><input id="qos_average" class="form-control" name="qos_average"
@ -1092,7 +1092,7 @@
</div>
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="migrate">
<p>{% trans "For migration both host servers must have equal settings and OS type" %}</p>
<form class="ml-3 form" method="post" role="form">{% csrf_token %}
<form class="ml-3 form" method="post" role="form" aria-label="Migrate instance form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Original host" %}</label>
<div class="col-sm-6">
@ -1179,7 +1179,7 @@
</div>
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="xmledit">
<p>{% trans "If you need to edit xml please Power Off the instance" %}</p>
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Edit instance XML form">{% csrf_token %}
<div class="col-sm-12" id="xmlheight">
<textarea id="editor">{{ inst_xml }}</textarea>
</div>
@ -1210,7 +1210,7 @@
<tr>
<td><a href="{% url 'account' userinstance.user.id %}">{{ userinstance.user }}</a></td>
<td style="width:30px;">
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Delete Instance owner">{% csrf_token %}
<input type="hidden" name="userinstance" value="{{ userinstance.pk }}">
<button type="submit" class="btn btn-sm btn-secondary" name="del_owner" title="{% trans "Delete Ownership" %}">
<i class="fa fa-trash"></i>
@ -1228,7 +1228,7 @@
{% if request.user.is_superuser or request.user.is_staff or userinstance.is_vnc %}
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="vncsettings">
<p class="text-muted">{% trans "To set console's type, shutdown the instance." %}</p>
<form class="form" method="post" role="form">{% csrf_token %}
<form class="form" method="post" role="form" aria-label="set console type form">{% csrf_token %}
<div class="form-group row" id="console_type_selection">
<label for="console_select_type" class="col-sm-2 col-form-label">{% trans "Type" %}</label>
<div class="col-sm-6">
@ -1252,7 +1252,7 @@
</div>
</form>
<p class="text-muted">{% trans "To set console listen address, shutdown the instance." %}</p>
<form class="form" method="post" role="form">{% csrf_token %}
<form class="form" method="post" role="form" aria-label="Set console listen address form">{% csrf_token %}
<div class="form-group row" id="console_listen_address_selection">
<label for="console_select_listen_address" class="col-sm-2 col-form-label">{% trans "Listen on" %}</label>
<div class="col-sm-6">
@ -1275,7 +1275,7 @@
</div>
</form>
<p class="text-muted">{% trans "To create console password, shutdown the instance." %}</p>
<form class="form" method="post" role="form">{% csrf_token %}
<form class="form" method="post" role="form" aria-label="Create console password form">{% csrf_token %}
<div class="form-group row">
<div class="col-sm-10 offset-2 ">
<div class="custom-control custom-switch">
@ -1313,7 +1313,7 @@
</div>
</form>
<p class="text-muted">{% trans "To set console's keymap, shutdown the instance." %}</p>
<form class="form" method="post" role="form">{% csrf_token %}
<form class="form" method="post" role="form" aria-label="Set console keymap form">{% csrf_token %}
<div class="form-group row">
<div class="col-sm-10 offset-2">
<div class="custom-control custom-switch">
@ -1350,7 +1350,7 @@
{% if request.user.is_superuser or request.user.userattributes.can_clone_instances %}
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="clone">
<p class="font-weight-bold">{% trans "Create a clone" %}</p>
<form class="form" action="" method="post" role="form">{% csrf_token %}
<form class="form" action="" method="post" role="form" aria-label="Create clone form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label font-weight-normal">{% trans "Clone Name" %}</label>
{% if request.user.is_superuser %}
@ -1449,7 +1449,7 @@
</div>
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="options">
<p>{% trans "To set instance template name description, shutdown the instance." %}</p>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Set instance template name description form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Title" %}</label>
<div class="col-sm-6">
@ -1485,7 +1485,7 @@
</form>
<p class="font-weight-bold">{% trans "To set instance video model, shutdown the instance." %}</p>
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Set instance video model form">{% csrf_token %}
<div class="form-group row">
<label for="video_model_select" class="col-sm-3 col-form-label">{% trans "Primary Video Model" %}</label>
<div class="col-sm-6">
@ -1509,7 +1509,7 @@
</form>
<p class="font-weight-bold">{% trans "To set instance vCPUs hotpluggable" %}</p>
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Set instance vCPUs hotpluggable form">{% csrf_token %}
<div class="form-group row">
<label for="vcpu_hotplug" class="col-sm-3 col-form-label">{% trans "vCPU Hot Plug" %}</label>
<div class="col-sm-6">
@ -1540,7 +1540,7 @@
{% else %}
<label class="badge badge-default">{% trans 'Unknown' %}</label>
{% endif %}
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Enable/Disable Qemu Guest Agent form">{% csrf_token %}
<div class="form-group row">
<label for="guest_agent" class="col-sm-3 col-form-label">{% trans "Qemu Guest Agent" %}</label>
<div class="col-sm-6">
@ -1565,7 +1565,7 @@
<div role="tabpanel" class="tab-pane" id="graphics">
<div role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<ul class="nav nav-tabs" role="tablist" aria-label="Instance graphs and logs menu">
<li class="nav-item">
<a class="nav-link text-secondary active" href="#graphs" id="graphtab" aria-controls="graphs" role="tab" data-toggle="tab" aria-controls="graphs" aria-selected="true">
{% trans "Real Time" %}
@ -1657,7 +1657,7 @@
<div role="tabpanel" class="tab-pane" id="undefine">
<div role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<ul class="nav nav-tabs" role="tablist" aria-label="Instance destroy menu">
<li class="nav-item">
<a class="nav-link active" href="#destroy" aria-controls="destroy" role="tab" data-toggle="tab">
{% trans "Destroy Instance" %}

View file

@ -1,5 +1,5 @@
{% load i18n %}
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Shortcut instance action form">{% csrf_token %}
<input type="hidden" name="name" value="{{ inst }}"/>
<input type="hidden" name="compute_id" value="{{ host.0 }}"/>
{% ifequal vm.status 5 %}

View file

@ -13,7 +13,7 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Create New Interface form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Name" %}</label>
<div class="col-sm-6">
@ -66,7 +66,7 @@
</div>
</div>
<div class="tabbable">
<ul class="nav nav-tabs">
<ul class="nav nav-tabs" aria-label="IP types">
<li class="nav-item">
<a class="nav-link active" href="#ipv4tab" data-toggle="tab">{% trans "IPv4" %}</a>
</li>

View file

@ -55,7 +55,7 @@
<dd class="col-8">{{ start_mode }}</dd>
<dt class="col-4">{% trans "State" %}</dt>
<dd class="col-8">
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Interface start/stop/delete form">{% csrf_token %}
{% ifequal state 0 %}
<input type="submit" class="btn btn-sm btn-primary" name="start" value="{% trans "Start" %}">
<input type="submit" class="btn btn-sm btn-danger" name="delete" value="{% trans "Delete" %}" onclick="return confirm('{% trans "Are you sure?" %}')">

View file

@ -13,7 +13,7 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<form method="post" action="" role="form" novalidate>{% csrf_token %}
<form method="post" action="" role="form" aria-label="Add New Network form" novalidate>{% csrf_token %}
<div class="form-group row">
<label class="col-sm-4 col-form-label">{% trans "Name" %}</label>
<div class="col-sm-6">

View file

@ -12,7 +12,7 @@
<h5 class="modal-title">{% trans "Add IPv4 Fixed Address" %}</h5>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Add IPV6 Fixed Address">{% csrf_token %}
<div class="modal-body">
<div class="form-group row">
<label class="col-sm-4 col-form-label">{% trans "Subnet Pool" %}</label>

View file

@ -12,7 +12,7 @@
<h5 class="modal-title">{% trans "Add IPV6 Fixed Address" %}</h5>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Add IPV6 Fixed Address form">{% csrf_token %}
<div class="modal-body">
<div class="form-group row">
<label class="col-sm-4 col-form-label">{% trans "Subnet Pool" %}</label>

View file

@ -47,7 +47,7 @@
<dd class="col-6">{{ device }}</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="Network start/stop/delete form">{% csrf_token %}
{% ifequal state 0 %}
<input type="submit" class="btn btn-sm btn-success" name="start" value="{% trans "Start" %}">
<input type="submit" class="btn btn-sm btn-danger" name="delete" value="{% trans "Delete" %}" onclick="return confirm('{% trans "Are you sure?" %}')">
@ -58,7 +58,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="Network enable/disable autostart form">{% csrf_token %}
{% ifequal autostart 0 %}
<input type="submit" class="btn btn-sm btn-success" name="set_autostart" value="{% trans "Enable" %}">
{% else %}
@ -76,7 +76,7 @@
</button>
<div class="collapse" id="collapseXML">
<div class="card card-body">
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="Network edit with XML form">{% csrf_token %}
<div id="xmlheight">
<input type="hidden" name="edit_xml"/>
<textarea id="edit_editor">{{ xml }}</textarea>
@ -124,7 +124,7 @@
<dt class="col-6">{% trans "End" %}</dt>
<dd class="col-6">{{ ipv4_dhcp_range_end }}</dd>
{% else %}
<form class="form-inline col-lg-12 pl-0" method="post" role="form">{% csrf_token %}
<form class="form-inline col-lg-12 pl-0" method="post" role="form" aria-label="Edit dhcp range form">{% csrf_token %}
<dt class="col-6">{% trans "Start" %}</dt>
<dd class="col-6"><input name="range_start" value="{{ ipv4_dhcp_range_start }}"/></dd>
<dt class="col-6">{% trans "End" %}</dt>
@ -181,7 +181,7 @@
<tbody>
{% for fix4 in ipv4_fixed_address %}
<tr>
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="IPv4 edit/delete form">{% csrf_token %}
<td><input class="form-control" value="{{ fix4.mac }}" name="mac" readonly/></td>
<td><input class="form-control" value="{{ fix4.ip }}" name="address" /></td>
<td><input class="form-control" value="{{ fix4.name }}" name="name" /></td>
@ -236,7 +236,7 @@
<dt class="col-6">{% trans "End" %}</dt>
<dd class="col-6">{{ ipv6_dhcp_range_end }}</dd>
{% else %}
<form class="form-inline col-lg-12 pl-0" method="post" role="form">{% csrf_token %}
<form class="form-inline col-lg-12 pl-0" method="post" role="form" aria-label="Edit dhcp range form">{% csrf_token %}
<dt class="col-6">{% trans "Start" %}</dt>
<dd class="col-6"><input name="range_start" value="{{ ipv6_dhcp_range_start }}"/></dd>
<dt class="col-6">{% trans "End" %}</dt>
@ -290,7 +290,7 @@
<tbody>
{% for fix6 in ipv6_fixed_address %}
<tr>
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="IP v6 edit/delete form">{% csrf_token %}
<td><input class="form-control" value="{{ fix6.id }}" name="id" readonly/></td>
<td><input class="form-control" value="{{ fix6.ip }}" name="address" /></td>
<td><input class="form-control" value="{{ fix6.name }}" name="name" /></td>
@ -318,7 +318,7 @@
{% if net_forward.0 == 'route' or net_forward.0 == 'nat' or net_forward.0 == 'isolated' %}
{% if state == 0 and qos.items|length != 2%}
<form method="post" name="set_qos" role="form">{% csrf_token %}
<form method="post" name="set_qos" role="form" aria-label="Create network qos form">{% csrf_token %}
{% include 'add_network_qos.html' %}
</form>
{% endif %}
@ -337,7 +337,7 @@
</thead>
<tbody>
{% for q, att in qos.items %}
<form method="post" role="form">{% csrf_token %}
<form method="post" role="form" aria-label="QoS configuration form">{% csrf_token %}
<tr>
<td><label class="col-form-label">{{ q | capfirst }}</label></td>
<td><input id="qos_average" class="form-control" name="qos_average"

View file

@ -13,7 +13,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="Add new NWFilter rule form">{% csrf_token %}
<div class="form-group row">
<div class="col-12" id="xmlheight">
<input type="hidden" name="nwfilterrule_xml"/>

View file

@ -12,7 +12,7 @@
<h5 class="modal-title">{% trans "Create New NWFilter" %}</h5>
<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 new NWFilter form"">{% csrf_token %}
<div class="form-group row">
<div class="col-12" id="xmlheight">
<input type="hidden" name="nwfilter_xml"/>

View file

@ -71,7 +71,7 @@
<h5 class="page-header mr-auto">{% trans "Filter References" %}
<form class="form-inline float-right" method="post" role="form">{% csrf_token %}
<form class="form-inline float-right" method="post" role="form" aria-label="Add NWFilter form">{% csrf_token %}
<div class="form-group">
<div class="input-group">
<div class="input-group-prepend">
@ -109,7 +109,7 @@
<th scope="row">{{ forloop.counter }}</th>
<td>{{ ref }}</td>
<td style="width:30px;">
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Delete NWFilter form">{% csrf_token %}
<input type="hidden" name="ref" value="{{ ref }}">
<button type="submit" class="btn btn-sm btn-danger" name="del_nwfilter_ref" title="{% trans "Delete" %}" onclick="return confirm('{% trans "Are you sure?" %}')">
<i class="fa fa-trash"></i>
@ -147,7 +147,7 @@
<td>{{ rule.statematch }}</td>
<td>{{ rule.directives }}</td>
<td>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Delete NWFilter rule">{% csrf_token %}
<input type="hidden" name="action" value="{{ rule.action }}">
<input type="hidden" name="direction" value="{{ rule.direction }}">
<input type="hidden" name="priority" value="{{ rule.priority }}">

View file

@ -97,7 +97,7 @@
<h5 class="modal-title">{% trans "Clone NWFilter" %} <span class="text-danger">{{ nwfilter.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 NWFilter form">{% csrf_token %}
<div class="modal-body">
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Name" %}</label>
@ -118,7 +118,7 @@
<button class="btn btn-sm btn-secondary" data-toggle="modal" data-target="#Clone{{ forloop.counter }}" title="{% trans "Clone" %}"><i class="fa fa-files-o"></i></button>
</td>
<td>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Delete NWFilter form">{% csrf_token %}
<input type="hidden" name="nwfiltername" value="{{ nwfilter.name }}">
<button type="submit" class="btn btn-sm btn-secondary" name="del_nwfilter" title="{% trans "Delete" %}" onclick="return confirm('{% trans "Are you sure?" %}')">
<i class="fa fa-trash"></i>

View file

@ -13,7 +13,7 @@
<h5 class="modal-title">{% trans "Create New Secret" %}</h5>
</div>
<div class="modal-body">
<form method="post" action="" role="form">{% csrf_token %}
<form method="post" action="" role="form" aria-label="Create Secret form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Ephemeral" %}</label>
<div class="col-sm-6">

View file

@ -78,7 +78,7 @@
</td>
<td>{{ secret.usage }}</td>
<td>
<form action="" method="post" role="form">{% csrf_token %}
<form action="" method="post" role="form" aria-label="Delete secret form">{% csrf_token %}
<input type="hidden" name="uuid" value="{{ secret.uuid }}"/>
<a data-toggle="modal" href="#editSecret{{ secret.uuid }}" class="btn btn-sm btn-primary" title="{% trans "Edit" %}">
<span class="fa fa-pencil"></span>
@ -98,7 +98,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="Edit secret form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Value" %}</label>
<input type="hidden" name="uuid" value="{{ secret.uuid }}">

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>

View file

@ -2,7 +2,7 @@
{% load font_awesome %}
{% load common_tags %}
<!-- Fixed navbar -->
<nav class="navbar navbar-expand-md navbar-dark bg-primary mb-3">
<nav class="navbar navbar-expand-md navbar-dark bg-primary mb-3" aria-label="Main top navbar">
<div class="container">
<a class="navbar-brand" href="{% url 'index' %}">WebVirtCloud</a>
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-label="Toggle navigation">