Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
36823 ranu 1
<section class="wrapper">
2
	<div class="row">
3
		<div class="col-lg-12">
4
			<h3 class="page-header"><i class="icon_document_alt"></i> COMPANY OFFICES</h3>
5
			<ol class="breadcrumb">
6
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
7
				<li><i class="icon_document_alt"></i>Company Offices</li>
8
			</ol>
9
		</div>
10
	</div>
11
 
12
	<div class="row">
13
		<div class="col-lg-12">
14
			<div class="panel panel-default">
15
				<div class="panel-heading">
16
					<strong>Office Directory</strong>
17
					<span class="pull-right" style="color:#777; font-size:12px;">
18
						Use the <strong>code</strong> column in the Beat Plan Bulk sheet to add an office as a stop.
19
					</span>
20
				</div>
21
				<div class="panel-body" style="padding:6px;">
22
					<table id="officeTable" class="table table-bordered table-striped table-condensed"
23
						   style="width:100%;">
24
						<thead>
25
						<tr>
26
							<th>Status</th>
27
							<th>Code</th>
28
							<th>Name</th>
29
							<th>Type</th>
30
							<th>Address</th>
31
							<th>City</th>
32
							<th>State</th>
33
							<th>Lat / Lng</th>
34
						</tr>
35
						</thead>
36
						<tbody>
37
							#foreach($o in $offices)
38
							<tr>
39
								<td style="white-space:nowrap;">
40
									#if($o.isActive())
41
										<span class="label label-success">Active</span>
42
									#else
43
										<span class="label label-default">Inactive</span>
44
									#end
45
								</td>
46
								<td><strong>$!o.getCode()</strong></td>
47
								<td>$!o.getName()</td>
48
								<td>$!o.getType()</td>
49
								<td style="font-size:11px; color:#555;">$!o.getAddress()</td>
50
								<td>$!o.getCity()</td>
51
								<td>$!o.getState()</td>
52
								<td style="font-size:11px; color:#777; white-space:nowrap;">$!o.getLat()
53
									, $!o.getLng()</td>
54
							</tr>
55
							#end
56
						</tbody>
57
					</table>
58
				</div>
59
			</div>
60
		</div>
61
	</div>
62
</section>
63
 
64
<script>
65
	$(function () {
66
		if ($.fn.DataTable) {
67
			$('#officeTable').DataTable({
68
				"pageLength": 50,
69
				"order": [[0, 'asc'], [1, 'asc']]
70
			});
71
		}
72
	});
73
</script>