|
@@ -19,17 +19,28 @@
|
|
<th>{{ 'Mac'|trans({}, 'CablemodemBundle') }}</th><td>{{ host.mac }}</td>
|
|
<th>{{ 'Mac'|trans({}, 'CablemodemBundle') }}</th><td>{{ host.mac }}</td>
|
|
</tr>
|
|
</tr>
|
|
{% endif %}
|
|
{% endif %}
|
|
- {% if host.options %}
|
|
|
|
- <tr class="sonata-ba-view-container">
|
|
|
|
- <th>{{ 'Options'|trans({}, 'CablemodemBundle') }}</th><td>{{ host.options }}</td>
|
|
|
|
- </tr>
|
|
|
|
- {% endif %}
|
|
|
|
<tr class="sonata-ba-view-container">
|
|
<tr class="sonata-ba-view-container">
|
|
<th>{{ 'HostType'|trans({}, 'CablemodemBundle') }}</th><td>{{ host.hostType.name }}</td>
|
|
<th>{{ 'HostType'|trans({}, 'CablemodemBundle') }}</th><td>{{ host.hostType.name }}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr class="sonata-ba-view-container">
|
|
<tr class="sonata-ba-view-container">
|
|
<th>{{ 'State'|trans({}, 'CablemodemBundle') }}</th><td>{{ host.state|trans({}, 'CablemodemBundle') }}</td>
|
|
<th>{{ 'State'|trans({}, 'CablemodemBundle') }}</th><td>{{ host.state|trans({}, 'CablemodemBundle') }}</td>
|
|
</tr>
|
|
</tr>
|
|
|
|
+ {% if host.options %}
|
|
|
|
+ <tr class="sonata-ba-view-container">
|
|
|
|
+ <th>{{ 'Options'|trans({}, 'CablemodemBundle') }}</th>
|
|
|
|
+ <td>
|
|
|
|
+ <table class="table table-bordered">
|
|
|
|
+ {% for option in host.options|split(',') %}
|
|
|
|
+ {% set values = option|split(':') %}
|
|
|
|
+ <tr>
|
|
|
|
+ <th>{{ values.0|replace({'{': '', '}': '', '"': ''}) }}</th>
|
|
|
|
+ <td>{{ values.1|replace({'{': '', '}': '', '"': ''}) }}</td>
|
|
|
|
+ </tr>
|
|
|
|
+ {% endfor %}
|
|
|
|
+ </table>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ {% endif %}
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
</td>
|
|
</td>
|