<div th:fragment="results">	
	<div class="uv-table-group" style="margin-top:-20px;cursor: auto;" >
		<div class="col-sm-12 uv-table-section">
			<div class="uv-table-header" style="display:inline;">
				<h6 th:text="#{managers.search.title}"></h6>
				<hr class="uv-table-header-hr">
			</div>
		</div>
	</div>
	<div class="uv-table-group" th:if="${results}" style="cursor: auto;">
		<div class="col-sm-12 uv-table-section" th:each="item : ${resp_centres}">
			<strong th:text="${#locale.language} == 'es' ? ${item.rol.descripcioCas}:${item.rol.descripcioVal}"></strong>
			<br>
			<span th:text="${item.usuari.nom}"></span> <span th:text="${item.usuari.cognoms}"></span> (<a th:href="'mailto='+${item.usuari.email}" th:text="${item.usuari.email}"></a>)
			<form enctype='multipart/form-data' method="POST" action="/admin/userrole/remove" style="display:inline;margin-left:25px;" th:if="${#authentication.principal.isAdmin() or #authentication.principal.isGranted()}">
				<input type="hidden" name="idRol" th:value="${item.rol.idRol}">
				<input type="hidden" name="usuari" th:value="${item.usuari.usuari}">
				<input type="hidden" name="tlugar" th:value="${item.organ.tlugar}">
				<input type="hidden" name="lugar" th:value="${item.organ.lugar}">
				<button th:if="${(#authentication.principal.isAdmin() or #authentication.principal.isGranted()) and item.rol.idRol != 1}" 
					class="btn btn-danger pointer" style="width:40px;height:38px;border-radius:40px;" th:title="#{admin.action.delete}">
					<i class="fas fa-trash"></i>
				</button>
			</form>
		</div>
		<div class="col-sm-12 uv-table-section" th:each="item : ${resp_titulacions}" style="margin-top:20px;">
			<strong th:text="${#locale.language} == 'es' ? ${item.organ.nomCas}:${item.organ.nomVal}"></strong>
			<br>
			<span th:text="${#locale.language} == 'es' ? ${item.rol.descripcioCas}:${item.rol.descripcioVal}"></span>: 
			<span th:text="${item.usuari.nom}"></span> <span th:text="${item.usuari.cognoms}"></span> (<a th:href="'mailto:'+${item.usuari.email}" th:text="${item.usuari.email}"></a>)
			<form enctype='multipart/form-data' method="POST" action="/admin/userrole/remove" style="display:inline;margin-left:25px;" th:if="${#authentication.principal.isAdmin() or #authentication.principal.isGranted()}">
				<input type="hidden" name="idRol" th:value="${item.rol.idRol}">
				<input type="hidden" name="usuari" th:value="${item.usuari.usuari}">
				<input type="hidden" name="tlugar" th:value="${item.organ.tlugar}">
				<input type="hidden" name="lugar" th:value="${item.organ.lugar}">
				<button th:if="${(#authentication.principal.isAdmin() or #authentication.principal.isGranted()) and item.rol.idRol != 1}" 
					class="btn btn-danger pointer" style="width:40px;height:38px;border-radius:40px;" th:title="#{admin.action.delete}">
					<i class="fas fa-trash"></i>
				</button>
			</form>
		</div>
	</div>
	<div th:if="${not results}">
		<span th:text="${managers.noResults}"></span>
	</div>
</div>