Subversion Repositories SmartDukaan

Rev

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

Rev 33103 Rev 33105
Line 102... Line 102...
102
                                        </button>
102
                                        </button>
103
                                    #end
103
                                    #end
104
 
104
 
105
                                </td>
105
                                </td>
106
 
106
 
107
                                #if($authUser.getManagerId() != 0)
-
 
108
                                    <td>
107
                                <td>
109
                                        <select class="form-control input-sm" id="auth-users" name="auth-users"
108
                                    <select class="form-control input-sm" id="auth-users" name="auth-users"
110
                                                placeholder="Authusers">
109
                                            placeholder="Authusers">
111
                                            #if($authUser.getManagerId()==0)
110
                                        #if($authUser.getManagerId()==0)
112
                                                <option value="" disabled>Choose Manager</option>
111
                                            <option value="" disabled>Choose Manager</option>
113
                                            #end
112
                                        #end
114
                                            #foreach($activeAuthUser in $activeAuthUsers)
113
                                        #foreach($activeAuthUser in $activeAuthUsers)
115
                                                <option value="$activeAuthUser.getId()"
114
                                            <option value="$activeAuthUser.getId()"
116
                                                	#if($authUser.getManagerId()==$activeAuthUser.getId())
115
                                                #if($authUser.getManagerId()==$activeAuthUser.getId())
117
                                                        selected
116
                                                    selected
118
                                                    #end
117
                                                #end
119
                                                >$activeAuthUser.getFullName()</option>
118
                                            >$activeAuthUser.getFullName()</option>
120
                                            #end
119
                                        #end
121
                                        </select>
120
                                    </select>
122
                                        <button class="btn btn-primary add-manager" data-id="$authUser.getId()">Add
121
                                    <button class="btn btn-primary add-manager" data-id="$authUser.getId()">Add
123
                                        </button>
122
                                    </button>
124
                                    </td>
123
                                </td>
125
                                #end
-
 
126
 
124
 
127
                                <td>$authUser.getFormattedCreateTimestamp()</td>
125
                                <td>$authUser.getFormattedCreateTimestamp()</td>
128
                                <td>
126
                                <td>
129
                                    <button class="btn btn-primary reset-password" data-id="$authUser.getEmailId()">
127
                                    <button class="btn btn-primary reset-password" data-id="$authUser.getEmailId()">
130
                                        Reset
128
                                        Reset
Line 150... Line 148...
150
</section>
148
</section>
151
<div id="auth-user-details-container" style="background:white;background-color:white;">
149
<div id="auth-user-details-container" style="background:white;background-color:white;">
152
</div>
150
</div>
153
<script type="text/javascript">
151
<script type="text/javascript">
154
    $(document).ready(function () {
152
    $(document).ready(function () {
-
 
153
        var dtable = $('#authTable').DataTable({
155
 
154
 
156
        $('#authTable thead tr').clone(true).appendTo('#authTable thead');
-
 
157
        $('#authTable thead tr:eq(1) th').each(function (i) {
155
            pageLength: 10,
158
            var title = $(this).text();
156
            paging: true,
159
            $(this).html('<input type="text" style = "width:60%;" placeholder="Search ' + title + '" />');
-
 
160
 
-
 
161
            $('input', this).on('keyup change', function () {
157
            scrollCollapse: true,
162
                if (table.column(i).search() !== this.value) {
158
            fixedHeader: true,
163
                    table
159
            columnDefs: [
164
                            .column(i)
160
                {
165
                            .search(this.value)
161
                    targets: [7],
166
                            .draw();
162
                    searchable: false
167
                }
163
                }
168
            });
164
            ]
169
        });
-
 
170
        $(document).ready(function () {
-
 
171
 
-
 
172
 
-
 
173
            var dtable = $('#authTable').DataTable({
-
 
174
 
-
 
175
                pageLength: 10,
-
 
176
                paging: true,
-
 
177
                scrollCollapse: true,
-
 
178
                fixedHeader: true,
-
 
179
 
-
 
180
 
-
 
181
            });
-
 
182
 
-
 
183
        });
165
        });
184
    });
166
    });
185
 
-
 
186
</script>
167
</script>
187
 
168
 
188
 
169
 
189
 
170
 
190
 
171