| <!DOCTYPE html> |
| <html xmlns:th="https://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"> |
| |
| <head> |
| </head> |
| |
| <body> |
| <div th:fragment="children"> |
| <ul class="nested active"> |
| <li th:each="child : ${children}"> |
| <span |
| th:class="${child.children.isEmpty()}? space : caret-down" |
| th:text="${child.isStructuralNode()? '' : child.service.name}" |
| th:title="${child.isStructuralNode()? '' : child.service.description}" |
| onclick="toggleBranch(this)" |
| th:classappend="*{uuid != null} ? disabled_service : ''">Child Service</span> |
| <i class="fas fa-plus-circle text-primary action" |
| th:attr="onclick=|openSelectModal('${child.isStructuralNode()? '' : child.service.key}', '${child.getQualifiedId()}')|" |
| title="Add Child Service" |
| th:if="*{uuid == null}"></i> |
| <i class="fas fa-times-circle text-black action" |
| title="Delete Service" |
| th:attr="onclick=|openRemoveServiceModal('${child.parentNode.getQualifiedId()}', '${child.isStructuralNode()? '' : child.service.key}')|" |
| th:if="*{uuid == null}"></i> |
| <i class="fas fa-cogs text-secondary action" |
| th:attr="onclick=|openConfigModal('${child.getQualifiedId()}')|" |
| title="Service Configuration" |
| th:if="${not child.isStructuralNode()}"></i> |
| |
| <section th:include="serviceChildren :: children" th:with="children=${child.children}, parent=${child}"></section> |
| </li> |
| </ul> |
| </div> |
| </body> |
| </html> |