Subversion Repositories SmartDukaan

Rev

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

Rev 24079 Rev 24123
Line 14... Line 14...
14
	stateNames = [];
14
	stateNames = [];
15
	#foreach($stateName in $stateNames)
15
	#foreach($stateName in $stateNames)
16
		//console.log("$stateName");
16
		//console.log("$stateName");
17
		stateNames.push("$stateName");
17
		stateNames.push("$stateName");
18
	#end
18
	#end
-
 
19
	
-
 
20
	 $(".addlocationbutton").click(function(){
-
 
21
        $("#addLocationModal").modal({backdrop: false});
-
 
22
    });
19
</script>
23
</script>
20
 
24
 
21
<section class="wrapper">
25
<section class="wrapper">
22
<div class="row" style="background:white;font-size:14px;">
26
<div class="row" style="background:white;font-size:14px;">
23
	<form id="update-retailer-details-form">
27
	<form id="update-retailer-details-form">
Line 83... Line 87...
83
				#end
87
				#end
84
			</div>
88
			</div>
85
			
89
			
86
		</div>
90
		</div>
87
		
91
		
-
 
92
			<div class="row" >
-
 
93
				<div class="col-lg-5 form-group">
-
 
94
					<p class="bold-details">Location</p>
-
 
95
				</div>
-
 
96
				<div class="col-lg-4 form-group">
-
 
97
				#if($locationdetail)
-
 
98
						<input placeholder = "location" id="location" name="location" type="checkbox" value="true" checked>
-
 
99
				#else
-
 
100
				   <input placeholder = "location" id="location" name="location" type="checkbox" value="false" >
-
 
101
				   
-
 
102
				  #end
-
 
103
				</div>
-
 
104
			</div>
-
 
105
		
-
 
106
		<div class="row" style="display: none" id ="divLocation" >
-
 
107
			<div class="col-lg-4 form-group">
-
 
108
				<p class="bold-details">Attendence Location</p>
-
 
109
			</div>
-
 
110
			<div class="col-lg-6 form-group">
-
 
111
				#if($locationdetail)
-
 
112
					<input placeholder="Location" id="attendenceLocation" name="attendenceLocation" type="text" value="$locationdetail.getName(),$locationdetail.getLine1(),$locationdetail.getLine2(),$locationdetail.getCity(),$locationdetail.getState(),$locationdetail.getPin()" class="form-control input-sm">
-
 
113
			    #else
-
 
114
			       <input placeholder="Location" id="attendenceLocation" name="attendenceLocation" type="text" value="" class="form-control input-sm">
-
 
115
			    #end
-
 
116
		</div>
-
 
117
		<div class="row">
-
 
118
		<div class="col-md-2 col-md-offset-5">
-
 
119
			#if($locationdetail)
-
 
120
              	<button class="btn btn-primary changelocation" id="change-location-button" data-target="#addLocationModal" type="button">Change</button>
-
 
121
              	#else
-
 
122
              	<button class="btn btn-primary addlocation" id="add-location-button" data-target="#addLocationModal" data-toggle="modal" type="button">Add</button>
-
 
123
              	#end
-
 
124
			</div>
-
 
125
	    </div>		
-
 
126
			
-
 
127
			
-
 
128
			 <div id="addLocationModal" class="modal fade" role="dialog">
-
 
129
					  <div class="modal-dialog">
-
 
130
					
-
 
131
					    <!-- Modal content-->
-
 
132
					    <div class="modal-content">
-
 
133
					      <div class="modal-header">
-
 
134
					        <button type="button" class="close" data-dismiss="modal">&times;</button>
-
 
135
					        <h4 class="modal-title">Add Location</h4>
-
 
136
					      </div>
-
 
137
					   <div class="modal-body">
-
 
138
					   <div id="add-location-modal">
-
 
139
						
-
 
140
		         </div>
-
 
141
		      </div>
-
 
142
		    </div>
-
 
143
		   </div>
-
 
144
		 </div>
-
 
145
        		
-
 
146
		</div>
-
 
147
		
-
 
148
			<div class="row" >
-
 
149
				<div class="col-lg-5 form-group">
-
 
150
					<p class="bold-details">Brand Promoter</p>
-
 
151
				</div>
-
 
152
				<div class="col-lg-4 form-group">
-
 
153
					
-
 
154
						<input placeholder = "brandPromoter" id="brandPromoter" name="brandPromoter" type="checkbox" value="" >
-
 
155
				
-
 
156
				</div>
-
 
157
			</div>
-
 
158
			
-
 
159
		<div class="row" style="display: none" id ="divPromoter" >
-
 
160
			<div class="col-lg-4 form-group">
-
 
161
				<p class="bold-details">Promoter Name</p>
-
 
162
			</div>
-
 
163
			<div class="col-lg-6 form-group">
-
 
164
				
-
 
165
					<input placeholder="Promoter Name" id="promoterName" name="promoterName" type="text" value="" class="form-control input-sm">
-
 
166
			
-
 
167
		</div>
-
 
168
		</div>
-
 
169
		
88
		<div class="row">
170
		<div class="row">
89
			#if($userRoleNames)
171
			#if($userRoleNames)
90
				<div class="col-lg-4 form-group">
172
				<div class="col-lg-4 form-group">
91
					<p class="bold-details">ROLES</p>
173
					<p class="bold-details">ROLES</p>
92
				</div>
174
				</div>