{% extends "master-admin.html" %}
{% block main %}
{% if user.is_admin %}
{{ title }}
{% if message %}
{{ message }}
{% endif %}
{% for p in available %}
{%- if p in enabled %}
{%- set highlight = "hl-enabled" %}
{%- set actpath = "disable" %}
{%- set actlabel = "Disable" %}
{%- if p in changed %}
{%- if changed[p] == 'enabled' %}
{%- set highlight = "hl-enabled-new" %}
{%- endif %}
{%- endif %}
{%- else %}
{%- set highlight = "hl-disabled" %}
{%- set actpath = "enable" %}
{%- set actlabel = "Enable" %}
{%- if p in changed %}
{%- if changed[p] == 'disabled' %}
{%- set highlight = "hl-disabled-new" %}
{%- endif %}
{%- endif %}
{%- endif %}