Skip to content
Snippets Groups Projects
Commit 0457a2ef authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

WebUI component:

- Corrected templates to take into consideration new ConfigRules.
parent 09dfed15
No related branches found
No related tags found
1 merge request!54Release 2.0.0
...@@ -75,13 +75,15 @@ ...@@ -75,13 +75,15 @@
<div class="col-sm-10"> <div class="col-sm-10">
<ul> <ul>
{% for config in device.device_config.config_rules %} {% for config in device.device_config.config_rules %}
<li>{{ config.resource_key }}: {% if config.WhichOneof('config_rule') == 'custom' %}
<li>{{ config.custom.resource_key }}:
<ul> <ul>
{% for key, value in (config.resource_value | from_json).items() %} {% for key, value in (config.custom.resource_value | from_json).items() %}
<li><b>{{ key }}:</b> {{ value }}</li> <li><b>{{ key }}:</b> {{ value }}</li>
{% endfor %} {% endfor %}
</ul> </ul>
</li> </li>
{% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
......
...@@ -65,13 +65,15 @@ ...@@ -65,13 +65,15 @@
<div class="col-sm-10"> <div class="col-sm-10">
<ul> <ul>
{% for config in service.service_config.config_rules %} {% for config in service.service_config.config_rules %}
<li>{{ config.resource_key }}: {% if config.WhichOneof('config_rule') == 'custom' %}
<li>{{ config.custom.resource_key }}:
<ul> <ul>
{% for key, value in (config.resource_value | from_json).items() %} {% for key, value in (config.custom.resource_value | from_json).items() %}
<li><b>{{ key }}:</b> {{ value }}</li> <li><b>{{ key }}:</b> {{ value }}</li>
{% endfor %} {% endfor %}
</ul> </ul>
</li> </li>
{% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment