Files
@ d3db3c085912
Branch filter:
Location: conntrackt/conntrackt/templates/conntrackt/location_widget.html - annotation
d3db3c085912
1.2 KiB
text/html
CONNT-24: Fix the ampersands in HTML (& instead of &). Fix the headers to be XHTML5-comliant. Make sure that all tags are closed (like input, hr etc). Use non-empty actions for forms. Replace invalid use of width attribute for img with CSS styling. Don't use readonly attribute for select fields. Set an empty label instead (one option in drop-box).
90fac7c6abb9 02c5e6c3ba98 b9fabc69b505 b9fabc69b505 b9fabc69b505 b9fabc69b505 5deeefd8d0fc b9fabc69b505 02c5e6c3ba98 b9fabc69b505 b9fabc69b505 b9fabc69b505 897541fd8978 897541fd8978 b9fabc69b505 02c5e6c3ba98 3d2465eff823 b9fabc69b505 d3db3c085912 b9fabc69b505 b9fabc69b505 5deeefd8d0fc b9fabc69b505 3d2465eff823 02c5e6c3ba98 02c5e6c3ba98 | {% load conntrackt_tags %}
<table class="table table-striped">
<tr>
<td style="width:99%"><strong>{{location.name}}</strong></td>
<td>{% html_link '<i class="icon-book"></i>' 'project_location_iptables' project.id location.id class="btn btn-link" %}</td>
<td></td>
<td></td>
</tr>
{% for entity in entities %}
<tr>
<td>{% html_link entity.name 'entity' entity.id class="btn btn-link" %}</td>
<td>{% html_link '<i class="icon-list"></i>' 'entity_iptables' entity.id class="btn btn-link" %}</td>
<td>{% html_link '<i class="icon-edit"></i>' 'entity_update' entity.id class="btn btn-link" get="next="|add:request.path %}</td>
<td>{% html_link '<i class="icon-remove"></i>' 'entity_delete' entity.id class="btn btn-link" get="next="|add:request.path %}</td>
</tr>
{% endfor %}
{% with project_id=project.id|slugify location_id=location.id|slugify %}
<tr>
<td>{% html_link "Add entity" "entity_create" class="btn btn-primary btn-mini" get="project="|add:project_id|add:"&location="|add:location_id|add:"&next="|add:request.path %}</td>
<td></td>
<td></td>
<td></td>
</tr>
{% endwith %}
</table>
|