Subversion Repositories SmartDukaan

Rev

Rev 23343 | Rev 23914 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22860 ashik.ali 1
<style>
2
	.table-striped > tbody > tr:nth-child(odd) > td{
3
  		background: white;
4
  		background-color: white;
5
	}
6
	.table-striped > tbody > tr:nth-child(even) > td{
7
  		background: white;
8
  		background-color:white;
9
	}
10
	.table-striped > tbody > tr:hover > td,
11
	.table-striped > tbody > tr:hover {
23181 ashik.ali 12
		background-color: #e98c8f;
22860 ashik.ali 13
	  	color:white;
14
	}
15
	.btn:hover{
16
  		color: grey;
17
  		text-decoration: none;
18
	}
19
	.btn-primary:hover{
20
  		color: grey;
21
  		text-decoration: none;
22
	}
23
	.sale-details{
24
		cursor:pointer;
25
	}
26
</style>
27
 
23343 ashik.ali 28
<section class="wrapper">
22860 ashik.ali 29
	<div class="row">
30
		<div class="col-lg-12">
23026 ashik.ali 31
			<h3 class="page-header"><i class="icon_document_alt"></i>SCHEME</h3>
22860 ashik.ali 32
			<ol class="breadcrumb">
33
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
34
				<li><i class="icon_document_alt"></i>SCHEMES</li>						  	
35
			</ol>
36
		</div>
37
	</div>
23752 govind 38
	<div id="scheme-item-search">
39
    		<div class="row">
40
    			<div class="col-lg-12">
41
                <div class="col-md-3 col-sm-3 col-xs-12 form-group pull-right top_search">
42
                  <div class="input-group">
43
                    <input type="text" class="form-control" id="scheme-item-search-text" placeholder="Search for ItemID..." value="$searchItem"  />
44
                    <span class="input-group-btn">
45
                      <button class="btn btn-primary submit" id="scheme-item-search-button" type="button">Go!</button>
46
                    </span>
47
                  </div>
48
                </div>
49
              </div>
50
         </div>
51
        </div>
52
	<div id="scheme-search">
53
    		<div class="row">
54
    			<div class="col-lg-12">
55
                <div class="col-md-3 col-sm-3 col-xs-12 form-group pull-right top_search">
56
                  <div class="input-group">
57
                    <input type="text" class="form-control" id="scheme-search-text" placeholder="Search for schemeID..." value="$searchTerm" />
58
                    <span class="input-group-btn">
59
                      <button class="btn btn-primary submit" id="scheme-search-button" type="button">Go!</button>
60
                    </span>
61
                  </div>
62
                </div>
63
              </div>
64
         </div>
65
        </div>
22860 ashik.ali 66
  	<div id="schemes-table">
67
		<div class="row">
68
	    	<div class="col-lg-12">
69
	    		<table class="table table-striped table-advance table-hover">
70
	    			<tbody>
71
	    				<tr>
23752 govind 72
	    					<th>ID</th>
22860 ashik.ali 73
	    					<th>Name</th>
74
	    					<th>Description</th>
75
	    					<th>Type</th>
76
	    					<th>Amount Type</th>
77
	    					<th>Amount</th>
23026 ashik.ali 78
	    					<th>Start Date Time</th>
79
	    					<th>End Date Time</th>
22860 ashik.ali 80
	    					<th>Created On</th>
81
	    					<th>Active</th>
82
	    					<th>Expire</th>
83
	    				</tr>
84
	    				#if(!$schemes.isEmpty())
85
			    			#foreach( $scheme in $schemes )
86
			    				<tr class="scheme-details" data="$scheme.getId()">
23752 govind 87
			    					<td>$scheme.getId()</td>
22860 ashik.ali 88
			    					<td>$scheme.getName()</td>
89
			    					<td>$scheme.getDescription()</td>
90
			    					<td>$scheme.getType()</td>
91
			    					<td>$scheme.getAmountType()</td>
92
			    					<td>$scheme.getAmount()</td>
23026 ashik.ali 93
			    					<td>$scheme.getFormattedStartDateTime()</td>
94
			    					<td>$scheme.getFormattedEndDateTime()</td>
22860 ashik.ali 95
			    					<td>$scheme.getFormattedCreateTimestamp()</td>
96
			    					#if(($scheme.getActiveTimestamp()) && (!$scheme.getExpireTimestamp()))
97
			    						<td><i class="fa fa-check" aria-hidden="true"></i></td>
98
			    					#else
99
			    						<td><i class="fa fa-times" aria-hidden="true"></i></td>
100
			    					#end
101
			    					#if($scheme.getExpireTimestamp())
102
			    						<td><i class="fa fa-check" aria-hidden="true"></i></td>
103
			    					#else
104
			    						<td><i class="fa fa-times" aria-hidden="true"></i></td>
105
			    					#end
106
			    				</tr>
107
			    			#end
108
		    			#else
109
		    				<tr>
110
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
111
		    				</tr>
112
		    			#end
113
	    			</tbody>
114
	    		</table>
115
	    	</div>
116
	    </div>
117
    </div>
118
    #if(!$schemes.isEmpty())
119
    	<div class="row" id="schemes-paginated">
120
    		<div class="col-lg-9">
121
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
122
    		</div>
123
    		<div class="col-lg-3" style="text-align:right;">
124
				<div class="btn-group" style="width:40%">
125
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
126
				</div>
127
				<div class="btn-group" style="width:40%">
128
					#if($end >= $size)
129
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
130
					#else
131
						<button class="btn btn-primary next" style="width:100%">Next</button>
132
					#end
133
				</div>
134
	    	</div>
135
	    </div>
136
    #end
137
</section>
138
<div id="scheme-details-container" style="background:white;background-color:white;">
139
</div>