Subversion Repositories SmartDukaan

Rev

Rev 35360 | Go to most recent revision | Details | 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
 
62
 
63
</style>
64
<section class="wrapper">
65
    <div class="row">
66
        <div class="col-lg-12">
67
            <h3 class="page-header"><i class="icon_document_alt"></i>Trial Detail</h3>
68
            <ol class="breadcrumb">
69
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
70
                <li><i class="icon_document_alt"></i>Verified Trial User Detail</li>
71
            </ol>
72
        </div>
73
    </div>
74
 
75
 
76
    <div class="row">
77
        <div class="col-lg-12">
78
            <table class="table table-border table-condensed table-bordered" id="trial-users">
79
                <thead>
80
                <tr>
81
                    <th>Outlet Name</th>
82
                    <th>Email</th>
83
                    <th>Mobile</th>
84
                    <th>Name</th>
85
                    <th>City</th>
86
                    <th>State</th>
87
                    <th>Address</th>
88
                    <th>Pin Code</th>
89
                    <th>Pan Document</th>
90
                    <th>Aadhaar Document</th>
91
                    <th>Action</th>
92
                </tr>
93
                </thead>
94
                <tbody>
95
                    #if($trialForms.size() > 0)
96
                        #foreach( $trialForm in $trialForms )
97
                        <tr data-id="$trialForm.getId()">
98
                            <td>$trialForm.getBusinessName()</td>
99
                            <td>$trialForm.getEmail()</td>
100
                            <td>$trialForm.getMobile()</td>
101
                            <td>$trialForm.getFirstName() $trialForm.getLastName()</td>
102
                            <td>$trialForm.getCity()</td>
103
                            <td>$trialForm.getState()</td>
104
                            <td>$trialForm.getAddressLine1() $trialForm.getAddressLine2()</td>
105
                            <td>$trialForm.getPincode()</td>
106
                            <td>
107
                                <a href="#pan-id$trialForm.getId()">
108
                                    <img src="${rc.contextPath}/download-attachment?documentId=$trialForm.getPanDocumentId()"
109
                                         width="100">
110
                                </a>
111
                                <a href="#" class="lightbox" id="pan-id$trialForm.getId()">
112
                                    <span style="background-image:url('${rc.contextPath}/download-attachment?documentId=$trialForm.getPanDocumentId()')"></span>
113
                                </a>
114
                            </td>
115
                            <td>
116
                                <a href="#aadhaar-id$trialForm.getId()">
117
                                    <img src="${rc.contextPath}/download-attachment?documentId=$trialForm.getAadhaarDocumentId()"
118
                                         width="100">
119
                                </a>
120
                                <a href="#" class="lightbox" id="aadhaar-id$trialForm.getId()">
121
                                    <span style="background-image:url('${rc.contextPath}/download-attachment?documentId=$trialForm.getAadhaarDocumentId()')"></span>
122
                                </a>
123
                            </td>
124
 
125
                            <td class="text-center">
126
                                <button class="btn btn-success btn-xs"
127
                                        style="margin-bottom: 5px;margin-right: 5px;" data-id="$trialForm.getId()"
128
                                        data-toggle="modal"
129
                                        data-target="#brandPotentialModal">
130
                                    <i class="fa fa-check-circle"></i> Create Code
131
                                </button>
132
                                <button class="btn btn-danger btn-xs mk_cancel mk_trial_cancel">
133
                                    <i class="fa fa-times-circle"></i> Cancel Trial
134
                                </button>
135
                            </td>
136
 
137
                        </tr>
138
                        #end
139
                    #else
140
                    <tr>
141
                        <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
142
                    </tr>
143
                    #end
144
                </tbody>
145
            </table>
146
        </div>
147
    </div>
148
 
149
 
150
    <div id="fetchLeadActivityData" class="modal" role="dialog">
151
        <div class="modal-dialog">
152
            <div class="modal-content"></div>
153
        </div>
154
    </div>
155
</section>
156
 
157
 
158
 
159
 
160
 
161
 
162