Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
24106 tejbeer 1
 
2
 <style>
3
	.table-striped > tbody > tr:nth-child(odd) > td{
4
  		background: white;
5
  		background-color: white;
6
	}
7
	.table-striped > tbody > tr:nth-child(even) > td{
8
  		background: white;
9
  		background-color:white;
10
	}
11
	.table-striped > tbody > tr:hover > td,
12
	.table-striped > tbody > tr:hover {
13
		background-color: #e98c8f;
14
	  	color:white;
15
	}
16
	.btn:hover{
17
  		color: grey;
18
  		text-decoration: none;
19
	}
20
	.btn-primary:hover{
21
  		color: grey;
22
  		text-decoration: none;
23
	}
24
	.sale-details{
25
		cursor:pointer;
26
	}
27
</style>
28
 
29
 
30
 
31
<section class="wrapper">
32
	<div class="row">
33
		<div class="col-lg-12">
34
			<h3 class="page-header"><i class="icon_document_alt"></i>CATALOG</h3>
35
			<ol class="breadcrumb">
36
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
37
				<li><i class="icon_document_alt"></i>FEATURE</li>
38
			</ol>
39
		</div>
40
	</div>
41
	<div class="col-lg-6">
42
	<div class = "row" style="background:white;background-color:white;padding:10px;">
43
		<h4 class="modelHeaderCustom" style="font-size:22px;padding-bottom:2%">Enter Item Information</h4>
44
	<div class = "row">
45
			<div class="col-lg-6 form-group">
46
			   	<input placeholder="CatalogItemId" id="catalogItemid" name="catalogItemId" type="number" value="" class="form-control input-sm">
47
			</div>
48
			<div class="col-lg-6 form-group">
49
			   	<input placeholder="Rank" id="rankPoints" name="rankPoints" type="number" value="" class="form-control input-sm">
50
			</div>
51
			<br>
52
			<div class="col-lg-12" form-group>
53
 
54
 
55
					<div>
56
					<textarea id="featureEditor" name="myEditor"></textarea>
57
					</div>
58
		    <br>
59
		    <div>
60
			<input id="submitFeature" type="button" value="Submit">
61
			</div>
62
		     </div>	
63
 
64
		  </div>   
65
</div>
66
</div>
67
 
68
 
69
 
70
  <div class="col-lg-6">
71
		 <div id="feature-table">
72
		<div class="row">
73
	    	<div class="col-lg-12">
24798 tejbeer 74
	    		<table class="table table-border table-condensed table-bordered" id="catalog-feature-table">
75
 
76
	    			<thead>
24106 tejbeer 77
	    				<tr>
24798 tejbeer 78
	    					<th>Item Name</th>
24106 tejbeer 79
	    					<th>Catalog Item Id</th>
80
	    					<th>Rank Points</th>
81
	    					<th>Feature</th>
82
	    					<th>Status</th>
24798 tejbeer 83
	    					<th>Remove</th>
24106 tejbeer 84
	    				</tr>
24798 tejbeer 85
	    					</thead>
86
	    					<tbody>
24106 tejbeer 87
	    					#if(!$tagRanking.isEmpty())
88
			    			#foreach( $request in $tagRanking )
89
			    				<tr data="$request.getCatalogItemId()">
24798 tejbeer 90
			    				    <td>$catalogDescription.get($request.getCatalogItemId())</td>
24106 tejbeer 91
			    					<td>$request.getCatalogItemId()</td>
92
			    					<td>$request.getRankPoints()</td>
93
			    					#if($request.getFeature())
94
			    					<td>$request.getFeature()</td>
95
			    					#else
96
			    					<td>null</td>
97
			    					#end
98
			    					#if($request.getFeature())
24739 tejbeer 99
			    					<td><button class="btn btn-primary editfeature"  data-requestid="$request.getCatalogItemId()" data-rank="$request.getRankPoints()" data-feature="$request.getFeature()" type="button" >Edit</button>
24106 tejbeer 100
								     </td>
101
			    					#else
24739 tejbeer 102
			    					<td><button class="btn btn-primary editfeature"  data-requestid="$request.getCatalogItemId()" data-rank="$request.getRankPoints()" data-feature="" type="button" >Edit</button>
24106 tejbeer 103
								     </td>
24798 tejbeer 104
								     #end
105
								     <td><button class="btn btn-primary deleteCatalogranking"  data-tagid="$request.getId()" type="button" >Delete</button>
106
								     </td>
107
 
24106 tejbeer 108
 
109
			    				</tr>	
110
			    	   #end
111
		    			#else
112
		    				<tr>
113
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
114
		    				</tr>
115
		    			#end
116
	    			</tbody>
117
	    		</table>
118
	    	</div>
119
	    </div>
120
    </div>
24798 tejbeer 121
 
24106 tejbeer 122
 </section>
123
 
124
<div id="feature-container" style="background:white;background-color:white;">
125
</div>
126
 
24798 tejbeer 127
 <script type="text/javascript">
128
 	$(document).ready(function() {
129
 	  $('#catalog-feature-table').DataTable(
130
  {
131
 
132
    "bPaginate": true,
133
    "bLengthChange": true,
134
    "bFilter": true,
135
    "bInfo": false,
136
    "bAutoWidth": false ,
137
 
138
    }
139
 
140
  );
141
 
142
} );
143
</script>
144