Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
35340 aman 1
<script type="text/javascript">
2
 
3
    $(document).ready(function () {
4
 
5
        $('#trial-users').DataTable({
6
 
7
                    "bPaginate": true,
8
                    "bLengthChange": true,
9
                    "bFilter": true,
10
                    "bInfo": false,
11
                    "bAutoWidth": false,
12
                    "scrollX": true,
13
 
14
                }
15
        );
16
    });
17
</script>
18
 
19
<style>
20
 
21
 
22
    img:target {
23
        border: 5px solid red;
24
    }
25
 
26
    .lightbox {
27
        /* Default to hidden */
28
        display: none;
29
 
30
        /* Overlay entire screen */
31
        position: fixed;
32
        z-index: 999;
33
        top: 0;
34
        left: 0;
35
        right: 0;
36
        bottom: 0;
37
 
38
        /* A bit of padding around image */
39
        padding: 1em;
40
 
41
        /* Translucent background */
42
        background: rgba(0, 0, 0, 0.8);
43
    }
44
 
45
    /* Unhide the lightbox when it's the target */
46
    .lightbox:target {
47
        display: block;
48
    }
49
 
50
    .lightbox span {
51
        /* Full width and height */
52
        display: block;
53
        width: 100%;
54
        height: 100%;
55
 
56
        /* Size and position background image */
57
        background-position: center;
58
        background-repeat: no-repeat;
59
        background-size: contain;
60
    }
61
 
35360 aman 62
    .mb-5 {
63
        margin-bottom: 5px;
64
    }
35340 aman 65
 
35360 aman 66
 
35340 aman 67
</style>
68
<section class="wrapper">
69
    <div class="row">
70
        <div class="col-lg-12">
35360 aman 71
            <h3 class="page-header"><i class="icon_document_alt"></i>Trial Partner</h3>
35340 aman 72
            <ol class="breadcrumb">
73
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
35360 aman 74
                <li><i class="icon_document_alt"></i>Verified Trial Partner</li>
35340 aman 75
            </ol>
76
        </div>
77
    </div>
78
 
79
 
80
    <div class="row">
81
        <div class="col-lg-12">
82
            <table class="table table-border table-condensed table-bordered" id="trial-users">
83
                <thead>
84
                <tr>
35360 aman 85
                    <th>Id</th>
35340 aman 86
                    <th>Outlet Name</th>
87
                    <th>Email</th>
88
                    <th>Mobile</th>
89
                    <th>Name</th>
90
                    <th>City</th>
91
                    <th>State</th>
92
                    <th>Address</th>
93
                    <th>Pin Code</th>
94
                    <th>Pan Document</th>
95
                    <th>Aadhaar Document</th>
96
                    <th>Action</th>
97
                </tr>
98
                </thead>
99
                <tbody>
100
                    #if($trialForms.size() > 0)
101
                        #foreach( $trialForm in $trialForms )
102
                        <tr data-id="$trialForm.getId()">
35360 aman 103
                            <td>$trialForm.getId()</td>
35340 aman 104
                            <td>$trialForm.getBusinessName()</td>
105
                            <td>$trialForm.getEmail()</td>
106
                            <td>$trialForm.getMobile()</td>
107
                            <td>$trialForm.getFirstName() $trialForm.getLastName()</td>
108
                            <td>$trialForm.getCity()</td>
109
                            <td>$trialForm.getState()</td>
110
                            <td>$trialForm.getAddressLine1() $trialForm.getAddressLine2()</td>
111
                            <td>$trialForm.getPincode()</td>
112
                            <td>
113
                                <a href="#pan-id$trialForm.getId()">
114
                                    <img src="${rc.contextPath}/download-attachment?documentId=$trialForm.getPanDocumentId()"
115
                                         width="100">
116
                                </a>
117
                                <a href="#" class="lightbox" id="pan-id$trialForm.getId()">
118
                                    <span style="background-image:url('${rc.contextPath}/download-attachment?documentId=$trialForm.getPanDocumentId()')"></span>
119
                                </a>
120
                            </td>
121
                            <td>
122
                                <a href="#aadhaar-id$trialForm.getId()">
123
                                    <img src="${rc.contextPath}/download-attachment?documentId=$trialForm.getAadhaarDocumentId()"
124
                                         width="100">
125
                                </a>
126
                                <a href="#" class="lightbox" id="aadhaar-id$trialForm.getId()">
127
                                    <span style="background-image:url('${rc.contextPath}/download-attachment?documentId=$trialForm.getAadhaarDocumentId()')"></span>
128
                                </a>
129
                            </td>
130
 
131
                            <td class="text-center">
35360 aman 132
                                <button class="btn btn-success  approve-trial mb-5"
133
                                        data-id="$trialForm.getId()"
134
                                >
135
                                    <i class="fa fa-check-circle"></i> Mark Approved
35340 aman 136
                                </button>
35360 aman 137
                                <button class="btn btn-success openUserBrandPotential mb-5"
138
                                        data-id="$trialForm.getId()">
139
                                    <i class="fa fa-eye"></i> Show Potential
140
                                </button>
141
                                <button class="btn btn-success converted mb-5">
142
                                    <i class="fa fa-times-circle"></i> Converted
143
                                </button>
144
                                <button class="btn btn-danger  mk_cancel mk_trial_cancel">
35340 aman 145
                                    <i class="fa fa-times-circle"></i> Cancel Trial
146
                                </button>
147
                            </td>
148
 
149
                        </tr>
150
                        #end
151
                    #else
152
                    <tr>
153
                        <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
154
                    </tr>
155
                    #end
156
                </tbody>
157
            </table>
158
        </div>
159
    </div>
160
 
161
 
162
    <div id="fetchLeadActivityData" class="modal" role="dialog">
163
        <div class="modal-dialog">
164
            <div class="modal-content"></div>
165
        </div>
166
    </div>
167
</section>
168
 
35360 aman 169
<div class="modal fade" id="brandPotentialModal" tabindex="-1" role="dialog">
170
    <div class="modal-dialog modal-lg" role="document">
171
        <div class="modal-content">
35340 aman 172
 
35360 aman 173
            <div class="modal-header bg-dark text-white">
174
                <h5 class="modal-title">Brand Potential Details</h5>
175
                <button type="button" class="close text-white" data-dismiss="modal">
176
                    <span>&times;</span>
177
                </button>
178
            </div>
35340 aman 179
 
35360 aman 180
            <div class="modal-body">
35340 aman 181
 
35360 aman 182
                <table class="table table-bordered align-middle">
183
                    <thead class="table-light">
184
                    <tr>
185
                        <th>Trial ID</th>
186
                        <th>Brand</th>
187
                        <th>Potential</th>
188
                        <th>Created At</th>
189
                    </tr>
190
                    </thead>
35340 aman 191
 
35360 aman 192
                    <tbody id="brandPotentialRows"></tbody>
193
                </table>
35340 aman 194
 
35360 aman 195
            </div>
35340 aman 196
 
35360 aman 197
        </div>
198
    </div>
199
</div>
200