Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
23419 ashik.ali 1
<style>
2
.row{
3
	margin:0 auto;
4
}
5
.modal-content{
6
		background : white;
7
	}
8
	.modelHeaderCustom{
9
		font-size:14px;
10
		font-weight:bold;
11
	}
12
	.border-highlight{
13
		border : 3px solid red;
14
	}
15
	hr{
16
		background-color:#007aff;
17
		border:none;
18
		height:1px;
19
		background:#007aff;
20
	}
21
	.control-label {
22
		margin-top: 0;
23
    		margin-bottom: 0;
24
    		padding-top: 7px;
25
    		font-weight:bold;
26
    		font-size:14px;
27
	}
28
	.form-group{
29
		border-bottom: 1px solid #eff2f7;
30
    		padding-bottom: 15px;
31
    		margin-bottom: 15px;
32
	}
33
	.right{
34
		float:right;
35
	}
36
	.form-control{
37
		color:black;
38
		text-transform:uppercase;
39
	}
40
.table-align-center{
41
	text-align:center;
42
}
43
.bold-details {
44
	text-transform:capitalize;
45
	font-weight:600;
46
	color:#212121;
47
}
48
</style>
49
 
50
<script type="text/javascript">
51
 
52
	$(document).ready(function() {
53
        $('#activePrebookingItemsDescription').multiselect({
54
	        //	includeSelectAllOption: true,
55
	        	maxHeight: 200,
56
	        	buttonWidth: '280px',
57
	        //	numberDisplayed: 1,
58
	        	nonSelectedText: 'Items',
59
	        	nSelectedText: ' - Items Selected',
60
	        	enableFiltering: true,
23569 govind 61
	        	enableCaseInsensitiveFiltering:true,
23419 ashik.ali 62
	        	multiple: false,
63
	        	onChange: function() {
64
        			var selected = this.$select.val();
65
        			console.log("selected value : "+selected);
66
        			var selecteds = selected.split(",");
67
        			var advanceAmount = selecteds[1];
68
        			var tentativeAmount = selecteds[2];
69
        			$('#advanceAmount').val(advanceAmount);
70
        			$('#tentativeAmount').val(tentativeAmount);
71
        			$('#totalAmount').val(advanceAmount);
72
        			$('#quantity').val(1);
73
    			}
74
        });
75
 
76
    });
77
 
78
</script>
79
 
80
<section class="wrapper">
81
	<div class="row">
82
		<div class="col-lg-12">
83
			<h3 class="page-header"><i class="icon_document_alt"></i>PREBOOKING LISTING</h3>
84
			<ol class="breadcrumb">
85
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
86
				<li><i class="icon_document_alt"></i>CREATE</li>
87
			</ol>
88
		</div>
89
	</div>
90
	<form id="create-prebooking-order-form">
91
		<div id="customer-details" style="background:white;background-color:white;padding:10px;">
92
			<h4 class="modelHeaderCustom" style="font-size:22px;">Prebooking Order Information</h4>
93
			<div>
94
				<div class = "row">
95
 
96
					<div class="col-lg-4 form-group" id="items-container">
97
						<select class="form-control input-sm" id = "activePrebookingItemsDescription" placeholder="activePrebookingItemsDescription" >
98
							#foreach($prebookingListing in $prebookingListings)
24087 amit.gupta 99
								<option value="$prebookingListing.getCatalogId(),$prebookingListing.getAdvanceAmount(),$prebookingListing.getTentativeAmount()">$catalogIdDescriptionMap.get($prebookingListing.getCatalogId())</option>
23419 ashik.ali 100
							#end
101
						</select>
102
					</div>
103
 
104
					<div class="col-lg-2 form-group">
105
						<p>Advance Amount</p>
106
					</div>
107
 
108
					<div class="col-lg-2 form-group">
109
						#if($prebookingListings.isEmpty())
110
							<input placeholder = "Advance Amount" id="advanceAmount" name="advanceAmount" type="number" value="0" class="form-control phone input-sm" disabled>
111
						#else
112
							<input placeholder = "Advance Amount" id="advanceAmount" name="advanceAmount" type="number" value="$prebookingListings.get(0).getAdvanceAmount()" class="form-control phone input-sm" disabled>
113
						#end
114
					</div>
115
 
116
					<div class="col-lg-2 form-group">
117
						<p>Tentative Amount</p>
118
					</div>
119
 
120
					<div class="col-lg-2 form-group">
121
						#if($prebookingListings.isEmpty())
122
							<input placeholder = "Tentative Amount" id="tentativeAmount" name="tentativeAmount" type="number" value="0" class="form-control phone input-sm" disabled>
123
						#else
124
							<input placeholder = "Tentative Amount" id="tentativeAmount" name="tentativeAmount" type="number" value="$prebookingListings.get(0).getTentativeAmount()" class="form-control phone input-sm" disabled>
125
						#end
126
					</div>
127
 
128
				</div>
129
 
130
				<div class="row">
131
 
132
					<div class="col-lg-1 form-group">
133
						<p>Quantity</p>
134
					</div>
135
 
136
					<div class="col-lg-1 form-group">
137
						<input placeholder = "Quantity" id="quantity" name="quantity" type="number" value="1" class="form-control phone input-sm">
138
					</div>
139
 
140
					<div class="col-lg-2 form-group">
141
						<input placeholder = "Customer Name" id="customerName" name="customerName" type="text" value="" class="form-control phone input-sm">
142
					</div>
143
 
144
					<div class="col-lg-2 form-group">
145
						<input placeholder = "Customer Mobile No" id="customerMobileNumber" name="customerMobileNumber" type="text" value="" class="form-control phone input-sm">
146
					</div>
147
 
148
					<div class="col-lg-2 form-group">
149
						<input placeholder = "Customer Email Id" id="customerEmailId" name="customerEmailId" type="text" value="" class="form-control phone input-sm">
150
					</div>
151
 
152
					<div class="col-lg-2 form-group">
153
						<p>Total Amount</p>
154
					</div>
155
 
156
					<div class="col-lg-2 form-group">
157
						#if($prebookingListings.isEmpty())
158
							<input placeholder = "Total Amount" id="totalAmount" name="totalAmount" type="number" value="0" class="form-control phone input-sm" disabled>
159
						#else
160
							<input placeholder = "Total Amount" id="totalAmount" name="totalAmount" type="number" value="$prebookingListings.get(0).getTentativeAmount()" class="form-control phone input-sm" disabled>
161
						#end
162
					</div>
163
				</div>
164
 
165
				<div class="row">
166
 
167
					<div class="col-lg-3" style="float:right;">
168
						<input class="btn btn-primary" type="submit" style="width:100%;border-radius:0px;" value="Create Prebooking Order">
169
					</div>
170
				</div>
171
			</div>
172
		</div>
173
 
174
	</form>
175
</section>
24085 amit.gupta 176
<script type="text/javascript" src="resources/js/create-prebooking-order.js?v=${version}"></script>