Subversion Repositories SmartDukaan

Rev

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

Rev 35289 Rev 35340
Line 62... Line 62...
62
 
62
 
63
</style>
63
</style>
64
<section class="wrapper">
64
<section class="wrapper">
65
    <div class="row">
65
    <div class="row">
66
        <div class="col-lg-12">
66
        <div class="col-lg-12">
67
            <h3 class="page-header"><i class="icon_document_alt"></i>Lead Detail</h3>
67
            <h3 class="page-header"><i class="icon_document_alt"></i>Trial Detail</h3>
68
            <ol class="breadcrumb">
68
            <ol class="breadcrumb">
69
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
69
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
70
                <li><i class="icon_document_alt"></i>LEAD DETAIL</li>
70
                <li><i class="icon_document_alt"></i>Pending Trial User Detail</li>
71
            </ol>
71
            </ol>
72
        </div>
72
        </div>
73
    </div>
73
    </div>
74
 
74
 
75
 
75
 
Line 121... Line 121...
121
                                    <span style="background-image:url('${rc.contextPath}/download-attachment?documentId=$trialForm.getAadhaarDocumentId()')"></span>
121
                                    <span style="background-image:url('${rc.contextPath}/download-attachment?documentId=$trialForm.getAadhaarDocumentId()')"></span>
122
                                </a>
122
                                </a>
123
                            </td>
123
                            </td>
124
 
124
 
125
                            <td class="text-center">
125
                            <td class="text-center">
126
                                <button class="btn btn-success btn-xs mk_trial_create"
126
                                <button class="btn btn-success btn-xs openBrandModal"
127
                                        style="margin-bottom: 5px;margin-right: 5px;">
127
                                        style="margin-bottom: 5px;margin-right: 5px;" data-id="$trialForm.getId()"
-
 
128
                                        data-toggle="modal"
-
 
129
                                        data-target="#brandPotentialModal">
128
                                    <i class="fa fa-check-circle"></i> Create Code
130
                                    <i class="fa fa-check-circle"></i> Verify
129
                                </button>
131
                                </button>
130
                                <button class="btn btn-danger btn-xs mk_cancel mk_trial_cancel">
132
                                <button class="btn btn-danger btn-xs mk_cancel mk_trial_cancel">
131
                                    <i class="fa fa-times-circle"></i> Cancel Trial
133
                                    <i class="fa fa-times-circle"></i> Cancel Trial
132
                                </button>
134
                                </button>
133
                            </td>
135
                            </td>
Line 149... Line 151...
149
        <div class="modal-dialog">
151
        <div class="modal-dialog">
150
            <div class="modal-content"></div>
152
            <div class="modal-content"></div>
151
        </div>
153
        </div>
152
    </div>
154
    </div>
153
</section>
155
</section>
-
 
156
 
-
 
157
<div class="modal fade" id="brandPotentialModal" tabindex="-1" role="dialog">
-
 
158
    <div class="modal-dialog modal-lg" role="document">
-
 
159
        <div class="modal-content">
-
 
160
 
-
 
161
            <!-- Modal Header -->
-
 
162
            <div class="modal-header bg-dark text-white">
-
 
163
                <h5 class="modal-title">Brand Potential Verification</h5>
-
 
164
                <button type="button" class="close text-white" data-dismiss="modal">
-
 
165
                    <span>&times;</span>
-
 
166
                </button>
-
 
167
            </div>
-
 
168
 
-
 
169
            <!-- Modal Body -->
-
 
170
            <div class="modal-body">
-
 
171
 
-
 
172
                <form id="brandPotentialForm" onsubmit="event.preventDefault(); saveBrandPotential();">
-
 
173
 
-
 
174
                    <input type="hidden" name="trialFormId" value=""/>
-
 
175
 
-
 
176
                    <table class="table table-bordered align-middle">
-
 
177
                        <thead class="table-light">
-
 
178
                        <tr>
-
 
179
                            <th>Brand</th>
-
 
180
                            <th>Potential</th>
-
 
181
                            <th style="width: 50px;">Add</th>
-
 
182
                        </tr>
-
 
183
                        </thead>
-
 
184
 
-
 
185
                        <tbody id="brandPotentialRows">
-
 
186
                        <tr>
-
 
187
                            <td>
-
 
188
                                <input type="text" name="brand_1" class="form-control" placeholder="Brand Name"/>
-
 
189
                            </td>
-
 
190
                            <td>
-
 
191
                                <input type="number" name="potential_1" class="form-control"
-
 
192
                                       placeholder="Enter Potential"/>
-
 
193
                            </td>
-
 
194
                            <td class="text-center">
-
 
195
                                <button type="button" class="btn btn-sm btn-danger" onclick="addRow()">+</button>
-
 
196
                            </td>
-
 
197
                        </tr>
-
 
198
                        </tbody>
-
 
199
 
-
 
200
                    </table>
-
 
201
 
-
 
202
                    <button type="submit" class="btn w-100 mt-3" style="background:#d93025;color:white;">
-
 
203
                        Save & Verify
-
 
204
                    </button>
-
 
205
 
-
 
206
                </form>
-
 
207
 
-
 
208
            </div>
-
 
209
 
-
 
210
        </div>
-
 
211
    </div>
-
 
212
</div>
-
 
213
 
-
 
214
 
-
 
215
<script>
-
 
216
    let rowCount = 1;
-
 
217
 
-
 
218
    function addRow() {
-
 
219
        rowCount++;
-
 
220
 
-
 
221
        const tbody = document.getElementById("brandPotentialRows");
-
 
222
 
-
 
223
        const newRow = document.createElement("tr");
-
 
224
        newRow.innerHTML = `
-
 
225
            <td>
-
 
226
                <input type="text" name="brand_${rowCount}" class="form-control" placeholder="Brand Name" />
-
 
227
            </td>
-
 
228
            <td>
-
 
229
                <input type="number" name="potential_${rowCount}" class="form-control"  placeholder="Enter Potential" />
-
 
230
            </td>
-
 
231
            <td class="text-center">
-
 
232
                <button type="button" class="btn btn-sm btn-danger" onclick="addRow()">+</button>
-
 
233
            </td>
-
 
234
        `;
154
 
235
 
-
 
236
        tbody.appendChild(newRow);
155
   
237
    }
-
 
238
</script>
-
 
239
 
156
 
240
 
157
 
241
 
158
 
242
 
159
    
243
    
160
 
244