1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-06-02 00:58:05 +02:00
ldapcherry/resources/templates/index.tmpl
kakwa a56c491ee1 cleanup in html template + tidylib
* few small cleanup in html template (avoid empty tbody, put id between
quotes)
* switch to tidylib to validate the html instead of the previous hack
calling an external service (https://html5.validator.nu/)
* remove the previous validator script
* add exception for tidylib on empty <span> (these are required by
bootstrap)
2019-02-09 18:31:37 +01:00

39 lines
1.4 KiB
Cheetah

## -*- coding: utf-8 -*-
<%inherit file="navbar.tmpl"/>
<%block name="core">
<div class="row clearfix top-buffer bottom-buffer">
<div class="col-md-2 column">
</div>
<div class="col-md-12 column">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Your attributes:</h3>
</div>
<div class="panel-body">
<table id="RecordTable" class="table table-hover table-condensed">
% if not searchresult is None:
<tbody>
%for attr in sorted(attrs_list.keys(), key=lambda attr: attrs_list[attr]['weight']):
<tr>
% if attr in searchresult:
<%
value = searchresult[attr]
if type(value) is list:
value = ', '.join(value)
%>
<td><b>${attrs_list[attr]['display_name']}</b>:</td>
<td>${value}</td>
% endif
</tr>
% endfor
</tbody>
%endif
</table>
</div>
</div>
</div>
<div class="col-md-2 column">
</div>
</div>
</%block>