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
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -75,13 +75,15 @@
        <div class="col-sm-10">
            <ul>
            {% for config in device.device_config.config_rules %}
                <li>{{ config.resource_key }}:
                {% if config.WhichOneof('config_rule') == 'custom' %}
                <li>{{ config.custom.resource_key }}:
                    <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>
                        {% endfor %}
                    </ul>
                </li>
                {% endif %}
            {% endfor %}
            </ul>
        </div>
+4 −2
Original line number Diff line number Diff line
@@ -65,13 +65,15 @@
        <div class="col-sm-10">
            <ul>
            {% for config in service.service_config.config_rules %}
                <li>{{ config.resource_key }}:
                {% if config.WhichOneof('config_rule') == 'custom' %}
                <li>{{ config.custom.resource_key }}:
                    <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>
                        {% endfor %}
                    </ul>
                </li>
                {% endif %}
            {% endfor %}
            </ul>
        </div>