Revision 9cad4715 templates/user_routes.html

b/templates/user_routes.html
4 4
<script type="text/javascript" src="/static/js/jquery.dataTables.js"></script>
5 5
<script type="text/javascript">
6 6
	$(document).ready( function(){
7
		$('#create_dialog').dialog({
8
			height: 400,
9
            width: 500,
10
			modal: true,
11
			autoOpen: false,
12
		});
7 13
			$('#routes_table').dataTable( {
8 14
			"bJQueryUI": true,
9 15
			"oLanguage": {
......
11 17
			},
12 18
			"iDisplayLength": 25,
13 19
	} );
20
	$( ".button_place #routebutton" ).button({
21
            icons: {
22
                primary: "ui-icon-circle-plus"
23
            },
24
			});
14 25
		});
26
		
27
		
28
		
29

  
15 30
</script>
16 31
{% endblock %}
17 32
{% block title %}{% trans "My routes" %}{% endblock %}
18 33
{% block content %}
19
<h3>{% trans "My routes" %}</h3>
34
<div style="float:left">
35
	<h3 style="margin-top: 0px;">{% trans "My routes" %}</h3>
36
</div>
37
<div class='button_place' style="float:right">
38
	<a href="{% url add-route %}" id="routebutton">Add Route</a>
39
</div>
20 40

  
21 41
<table class="display" width="100%" id="routes_table">
22 42
<thead>
......
27 47
	<th style="text-align: center;">{% trans "Status" %}</th>
28 48
	{% comment %}<th style="text-align: center;">{% trans "Details" %}</th>{% endcomment %}
29 49
	<th style="text-align: center;">{% trans "Expires" %}</th>
50
	<th style="text-align: center;">{% trans "Response" %}</th>
30 51
</tr>
31 52
</thead>
32 53

  
......
40 61
	<td style="text-align: center;">{% if route.is_online %}Online{% else %}Offline{% endif %}</td>
41 62
	{% comment %}<td style="text-align: center;">{{ route.response }}</td>{% endcomment %}
42 63
	<td style="text-align: center;">{{ route.expires }}</td>
64
	<td style="text-align: center;">{{ route.response }}</td>
43 65
</tr>
44 66

  
45 67
{% endfor %}
46 68
</tbody>
47 69
</table>
48 70

  
71
<div id="create_dialog" title="Add a new Route">
72
	KOKO
73
	</div>
74

  
49 75
{% endblock %}

Also available in: Unified diff