Commit bb377d91 by Őry Máté

dashboard: show if mass op is denied by permission

parent 13bfd1ff
......@@ -934,7 +934,7 @@ textarea[name="list-new-namelist"] {
}
.mass-op-panel .status-icon {
font-size: 1.5em;
font-size: .8em;
}
#vm-list-search, #vm-mass-ops {
......
......@@ -17,10 +17,11 @@ Do you want to perform the <strong>{{op}}</strong> operation on the following {{
<div class="panel panel-default mass-op-panel">
<i class="fa {{ i.get_status_icon }} fa-fw"></i>
{{ i.name }} ({{ i.pk }})
<div style="float: right;" title="{{ i.disabled }}">
<i class="fa status-icon
{% if i.disabled %}fa-minus-square minus{% else %}fa-check-square check{% endif %}">
</i>
<div style="float: right;" title="{{ i.disabled }}" class="status-icon">
<span class="fa-stack">
<i class="fa fa-stack-2x fa-square {{ i.disabled|yesno:"minus,check" }}"></i>
<i class="fa fa-stack-1x fa-inverse fa-{% if i.disabled %}{{i.disabled_icon|default:"minus"}}{% else %}check{% endif %}"></i>
</span>
</div>
</div>
<input type="checkbox" name="vm" value="{{ i.pk }}" {% if not i.disabled %}checked{% endif %}
......
......@@ -78,7 +78,8 @@ from .tables import (
GroupListTable, UserKeyListTable
)
from common.models import (
HumanReadableObject, HumanReadableException, fetch_human_exception
HumanReadableObject, HumanReadableException, fetch_human_exception,
create_readable,
)
from vm.models import (
Instance, instance_activity, InstanceActivity, InstanceTemplate, Interface,
......
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 sign in to comment