summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Reports/reports/templates/clients/index.html
blob: 708d52ad117eca17e2a89edbf178e59910fed81c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{% extends "base.html" %}

{% block extra_header_info %}
<script type="text/javascript" src="{% url Bcfg2.Server.Reports.reports.views.client_index %}../site_media/sorttable.js"></script>
<script type="text/javascript" src="{% url Bcfg2.Server.Reports.reports.views.client_index %}../site_media/CalendarPopup.js"></script>
<script language="JavaScript" type="text/javascript">var cal = new CalendarPopup();</script>
{% endblock%}

{% block title %}Client Index Listing{% endblock %}

{% block pagebanner %}
  <div class="header">
      <h1>Clients List</h1>
  </div>
  <br/>
{% endblock %}

{% block content %}
<div>
<span class="mini-date">
<b>Enter date or use calendar popup: </b>
</span>
<form name="timestamp-select" action="{{path}}" method="get">
<span class="mini-date">
<input type="text" name="date1" value="{{timestamp_date}}" size=10 />@
<input type="text" name="time" value="{{timestamp_time}}" size=8 />
<a href="#" onClick="cal.select(document.forms['timestamp-select'].date1,'anchor1','yyyy-MM-dd'); return false;"
   name="anchor1" ID="anchor1">Calendar</A>
<input type="button" name="go" value="Go" onClick="location.href='{% url Bcfg2.Server.Reports.reports.views.client_index %}'+document.forms['timestamp-select'].date1.value+'@'+document.forms['timestamp-select'].time.value;" />
 | <input type="button" name="now" value="Now" onClick="location.href='{% url Bcfg2.Server.Reports.reports.views.client_index %}';"/>
</span></form>
<br/><br/><br/></div>

{% if client_list_b %}
<table><tr><td valign="top">
    <ul style="list-style-type:none;">
    {% for client in client_list_b %}
        <li><div class="{{client.current_interaction.state}}-lineitem">
		<a href="{% url Bcfg2.Server.Reports.reports.views.client_detail client.name %}">{{ client.name }}</a>
		</div></li>
    {% endfor %}
    </ul>
</td><td valign="top">
    <ul style="list-style-type:none;">
    {% if client_list_a %}
      {% for client in client_list_a %}
	    <li><div class="{{client.current_interaction.state}}-lineitem">
		<a href="{% url Bcfg2.Server.Reports.reports.views.client_detail client.name %}">{{ client.name }}</a>
		</div></li>
      {% endfor %}
    {% endif %}
    </ul>
</tr></table>
{% else %}
    <p>No client records are available.</p>
{% endif %}
{% endblock %}