Commit a654b6ca authored by Flavio TARSETTI's avatar Flavio TARSETTI

[accounts] updated templates - text correction and added grant supervisor...

[accounts] updated templates - text correction and added grant supervisor access button inside box when available
parent 36da6165
Pipeline #14544 passed with stage
in 32 minutes and 42 seconds
......@@ -94,3 +94,8 @@ div.change_supervisor span.documentation
padding-top: 0em;
padding-bottom: 0em;
}
#grant_access_inside
{
margin-left: 45em;
}
......@@ -410,7 +410,7 @@
<div class="col-sm-6 ">
<div class="panel panel-default">
<div class="panel-heading"><i class="fa fa-users"></i> Supervision management
<div class="panel-heading"><i class="fa fa-users"></i> Management of supervisees
</div>
<div class="panel-body">
<form id="token" method="post" action="" class="form">
......@@ -504,7 +504,8 @@ You can remind them to revalidate their account before the expiration date or el
<div class="col-sm-6 col-sm-offset-1">
<div class="panel panel-default">
<div class="panel-heading"><i class="fa fa-users"></i> Supervision management of Supervisors
<div class="panel-heading"><i class="fa fa-users"></i> Management of Supervisors
<a id="grant_access_inside" class="btn btn-success btn-sm" onclick="beat.accounts.new_supervisor_access('{% url "api_accounts:list_supervisor_candidates" %}', '{% url "api_accounts:update_supervisor_candidate" %}', '{{ request.user.username }}')"><i class="fa fa-plus fa-lg"></i> Grant access</a>
</div>
<div class="panel-body">
<form id="token" method="post" action="" class="form">
......@@ -588,7 +589,13 @@ You can remind them to revalidate their account before the expiration date or el
</div>
</div>
<div class="col-sm-3">
</div>
{% endif %}
{% if not supervisors_pending|length > 0 and not supervisiontracks_supervisors_valid|length > 0 %}
<div class="row">
<div class="col-sm-3 col-sm-offset-1">
<div class="panel panel-default">
<div class="panel-heading"><i class="fa fa-users"></i> Grant Supervisor access</div>
......@@ -605,9 +612,7 @@ You can remind them to revalidate their account before the expiration date or el
</div>
</div>
</div>
</div>
{% endif %}
......@@ -617,7 +622,7 @@ You can remind them to revalidate their account before the expiration date or el
<div class="col-sm-6 col-sm-offset-1">
<div class="panel panel-default">
<div class="panel-heading"><i class="fa fa-users"></i> Supervision management of Supervisees
<div class="panel-heading"><i class="fa fa-users"></i> Management of Supervisees
</div>
<div class="panel-body">
<form id="token" method="post" action="" class="form">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment