Subversion Repositories SmartDukaan

Rev

Rev 24739 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24739 Rev 24798
Line 69... Line 69...
69
		  
69
		  
70
  <div class="col-lg-6">
70
  <div class="col-lg-6">
71
		 <div id="feature-table">
71
		 <div id="feature-table">
72
		<div class="row">
72
		<div class="row">
73
	    	<div class="col-lg-12">
73
	    	<div class="col-lg-12">
74
	    		<table class="table table-striped table-advance table-hover">
74
	    		<table class="table table-border table-condensed table-bordered" id="catalog-feature-table">
-
 
75
		    		
75
	    			<tbody>
76
	    			<thead>
76
	    				<tr>
77
	    				<tr>
77
	    					
78
	    					<th>Item Name</th>
78
	    					<th>Catalog Item Id</th>
79
	    					<th>Catalog Item Id</th>
79
	    					<th>Rank Points</th>
80
	    					<th>Rank Points</th>
80
	    					<th>Feature</th>
81
	    					<th>Feature</th>
81
	    					<th>Status</th>
82
	    					<th>Status</th>
-
 
83
	    					<th>Remove</th>
82
	    				</tr>
84
	    				</tr>
-
 
85
	    					</thead>
-
 
86
	    					<tbody>
83
	    					#if(!$tagRanking.isEmpty())
87
	    					#if(!$tagRanking.isEmpty())
84
			    			#foreach( $request in $tagRanking )
88
			    			#foreach( $request in $tagRanking )
85
			    				<tr data="$request.getCatalogItemId()">
89
			    				<tr data="$request.getCatalogItemId()">
-
 
90
			    				    <td>$catalogDescription.get($request.getCatalogItemId())</td>
86
			    					<td>$request.getCatalogItemId()</td>
91
			    					<td>$request.getCatalogItemId()</td>
87
			    					<td>$request.getRankPoints()</td>
92
			    					<td>$request.getRankPoints()</td>
88
			    					#if($request.getFeature())
93
			    					#if($request.getFeature())
89
			    					<td>$request.getFeature()</td>
94
			    					<td>$request.getFeature()</td>
90
			    					#else
95
			    					#else
Line 94... Line 99...
94
			    					<td><button class="btn btn-primary editfeature"  data-requestid="$request.getCatalogItemId()" data-rank="$request.getRankPoints()" data-feature="$request.getFeature()" type="button" >Edit</button>
99
			    					<td><button class="btn btn-primary editfeature"  data-requestid="$request.getCatalogItemId()" data-rank="$request.getRankPoints()" data-feature="$request.getFeature()" type="button" >Edit</button>
95
								     </td>
100
								     </td>
96
			    					#else
101
			    					#else
97
			    					<td><button class="btn btn-primary editfeature"  data-requestid="$request.getCatalogItemId()" data-rank="$request.getRankPoints()" data-feature="" type="button" >Edit</button>
102
			    					<td><button class="btn btn-primary editfeature"  data-requestid="$request.getCatalogItemId()" data-rank="$request.getRankPoints()" data-feature="" type="button" >Edit</button>
98
								     </td>
103
								     </td>
-
 
104
								     #end
-
 
105
								     <td><button class="btn btn-primary deleteCatalogranking"  data-tagid="$request.getId()" type="button" >Delete</button>
-
 
106
								     </td>
99
			    					#end
107
			    					
100
									
108
									
101
			    				</tr>	
109
			    				</tr>	
102
			    	   #end
110
			    	   #end
103
		    			#else
111
		    			#else
104
		    				<tr>
112
		    				<tr>
Line 108... Line 116...
108
	    			</tbody>
116
	    			</tbody>
109
	    		</table>
117
	    		</table>
110
	    	</div>
118
	    	</div>
111
	    </div>
119
	    </div>
112
    </div>
120
    </div>
113
    
121
	
114
    #if(!$tagRanking.isEmpty())
-
 
115
    	<div class="row" id="feature-paginated">
-
 
116
    		<div class="col-lg-9">
-
 
117
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
-
 
118
    		</div>
-
 
119
    		<div class="col-lg-4" style="text-align:right;float:right">
-
 
120
				<div class="btn-group" style="width:40%">
-
 
121
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
-
 
122
				</div>
-
 
123
				<div class="btn-group" style="width:40%">
-
 
124
					#if($end >= $size)
-
 
125
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
-
 
126
					#else
-
 
127
						<button class="btn btn-primary next" style="width:100%">Next</button>
-
 
128
					#end
-
 
129
				</div>
-
 
130
	    	</div>
-
 
131
	    </div>
-
 
132
    #end
-
 
133
    </div>		
-
 
134
 </section>
122
 </section>
135
 
123
 
136
<div id="feature-container" style="background:white;background-color:white;">
124
<div id="feature-container" style="background:white;background-color:white;">
137
</div>
125
</div>
138
 
126
 
-
 
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