Subversion Repositories SmartDukaan

Rev

Rev 36892 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22354 ashik.ali 1
<style>
34511 aman.kumar 2
    .table-striped > tbody > tr:nth-child(odd) > td {
3
        background: white;
4
        background-color: white;
5
        font-size: 14px;
6
    }
22354 ashik.ali 7
 
34511 aman.kumar 8
    .table-striped > tbody > tr:nth-child(even) > td {
9
        background: white;
10
        background-color: white;
11
    }
28035 tejbeer 12
 
34511 aman.kumar 13
    .btn:hover,
14
    .btn:focus {
15
        color: grey;
16
        text-decoration: none;
17
    }
24263 tejbeer 18
 
36892 aman 19
    #contactUsModal.in {
20
        display: flex !important;
21
        align-items: center;
22
        justify-content: center;
23
    }
24
 
36891 aman 25
    #contactUsModal .modal-dialog.modal-lg {
26
        width: 80%;
36892 aman 27
        margin: 0;
36891 aman 28
        left: auto;
34511 aman.kumar 29
        right: auto;
30
    }
22354 ashik.ali 31
 
34511 aman.kumar 32
    .modal-content {
33
        background: white;
34
    }
28035 tejbeer 35
 
34511 aman.kumar 36
    .modelHeaderCustom {
37
        font-size: 14px;
38
        font-weight: bold;
39
    }
28035 tejbeer 40
 
34511 aman.kumar 41
    hr {
42
        background-color: #007aff;
43
        border: none;
44
        height: 1px;
45
        background: #007aff;
46
    }
28035 tejbeer 47
 
34511 aman.kumar 48
    .border-highlight {
49
        border: 3px solid red;
50
    }
36890 aman 51
 
52
    #contact-us-table .contact-action-btn {
53
        margin: 0 2px;
54
        padding: 2px 8px;
55
    }
22354 ashik.ali 56
</style>
28035 tejbeer 57
<section class="wrapper">
34511 aman.kumar 58
    <!--overview start-->
59
    <div class="row">
60
        <div class="col-lg-12">
61
            <h3 class="page-header">
62
                <i class="icon_document_alt"></i>#springMessage("support.contactdetails")
63
            </h3>
64
            <ol class="breadcrumb">
65
                <li>
66
                    <i class="fa fa-home"></i>
67
                    <a href="${rc.contextPath}/dashboard">#springMessage("support.home")</a>
68
                </li>
69
                <li>
70
                    <i class="icon_document_alt"></i>#springMessage("support.contactdetails")
71
                </li>
72
            </ol>
73
        </div>
32669 shampa 74
    </div>
34511 aman.kumar 75
    <div id="contact-us-table">
76
        <div class="row">
33984 aman.kumar 77
 
34511 aman.kumar 78
            <div class="col-lg-9">
36890 aman 79
                #if($contactUsEditor)
80
                    <div style="margin-bottom: 10px;">
81
                        <button type="button" class="btn btn-primary contact-add-btn" data-section="MAIN">
82
                            <i class="fa fa-plus"></i> Add Contact
83
                        </button>
84
                    </div>
85
                #end
34511 aman.kumar 86
                <table class="table table-bordered">
87
                    <tbody>
88
                    <tr>
89
                        <th>#springMessage("support.area")</th>
90
                        <th>#springMessage("support.basearea")</th>
91
                        <th>#springMessage("support.name")</th>
92
                        <th>#springMessage("support.designation")</th>
93
                        <th>#springMessage("support.mobile")</th>
94
                        <th>#springMessage("support.email")</th>
36890 aman 95
                        #if($contactUsEditor)<th>Action</th>#end
34511 aman.kumar 96
                    </tr>
34806 aman 97
 
36890 aman 98
                    #foreach($contact in $mainContacts)
37019 aman 99
                        <tr data-cu-id="$!{contact.id}" data-cu-name="$!{contact.name}" data-cu-section="$!{contact.section}">
36890 aman 100
                            <td>$!{contact.area}</td>
101
                            <td>$!{contact.baseArea}</td>
102
                            <td>$!{contact.name}</td>
103
                            <td>$!{contact.designation}</td>
104
                            <td>$!{contact.mobile}</td>
105
                            <td>
106
                                <a href="mailto:$!{contact.email}">$!{contact.email}</a>
107
                            </td>
108
                            #if($contactUsEditor)
109
                                <td style="white-space: nowrap;">
37019 aman 110
                                    <button type="button" class="btn btn-xs btn-default contact-action-btn contact-up-btn"
111
                                            data-id="$!{contact.id}" title="Move up"><i class="fa fa-arrow-up"></i></button>
112
                                    <button type="button" class="btn btn-xs btn-default contact-action-btn contact-down-btn"
113
                                            data-id="$!{contact.id}" title="Move down"><i class="fa fa-arrow-down"></i></button>
36890 aman 114
                                    <button type="button" class="btn btn-xs btn-info contact-action-btn contact-edit-btn"
115
                                            data-id="$!{contact.id}" data-section="$!{contact.section}"
116
                                            data-area="$!{contact.area}" data-basearea="$!{contact.baseArea}"
117
                                            data-name="$!{contact.name}" data-designation="$!{contact.designation}"
118
                                            data-mobile="$!{contact.mobile}" data-email="$!{contact.email}">
119
                                        <i class="fa fa-pencil"></i> Edit
120
                                    </button>
121
                                    <button type="button" class="btn btn-xs btn-danger contact-action-btn contact-delete-btn"
122
                                            data-id="$!{contact.id}" data-name="$!{contact.name}">
123
                                        <i class="fa fa-trash"></i> Delete
124
                                    </button>
125
                                </td>
126
                            #end
127
                        </tr>
128
                    #end
36233 aman 129
 
35975 aman 130
                    <tr>
36890 aman 131
                        <td colspan="#if($contactUsEditor)7#{else}6#end" align="center">
34511 aman.kumar 132
                            <b>Escalations</b>
36890 aman 133
                            #if($contactUsEditor)
134
                                <button type="button" class="btn btn-primary btn-xs contact-add-btn"
135
                                        data-section="ESCALATION" style="margin-left: 10px;">
136
                                    <i class="fa fa-plus"></i> Add Escalation
137
                                </button>
138
                            #end
34511 aman.kumar 139
                        </td>
140
                    </tr>
141
                    <tr>
142
                        <td>Area</td>
143
                        <td>Region</td>
144
                        <th>Name</th>
145
                        <th>Designation</th>
146
                        <th>Mobile</th>
147
                        <th>Email</th>
36890 aman 148
                        #if($contactUsEditor)<th>Action</th>#end
34511 aman.kumar 149
                    </tr>
36890 aman 150
                    #foreach($contact in $escalationContacts)
37019 aman 151
                        <tr data-cu-id="$!{contact.id}" data-cu-name="$!{contact.name}" data-cu-section="$!{contact.section}">
36890 aman 152
                            <td>$!{contact.area}</td>
153
                            <td>$!{contact.baseArea}</td>
154
                            <td>$!{contact.name}</td>
155
                            <td>$!{contact.designation}</td>
156
                            <td>$!{contact.mobile}</td>
157
                            <td>
158
                                <a href="mailto:$!{contact.email}">$!{contact.email}</a>
159
                            </td>
160
                            #if($contactUsEditor)
161
                                <td style="white-space: nowrap;">
37019 aman 162
                                    <button type="button" class="btn btn-xs btn-default contact-action-btn contact-up-btn"
163
                                            data-id="$!{contact.id}" title="Move up"><i class="fa fa-arrow-up"></i></button>
164
                                    <button type="button" class="btn btn-xs btn-default contact-action-btn contact-down-btn"
165
                                            data-id="$!{contact.id}" title="Move down"><i class="fa fa-arrow-down"></i></button>
36890 aman 166
                                    <button type="button" class="btn btn-xs btn-info contact-action-btn contact-edit-btn"
167
                                            data-id="$!{contact.id}" data-section="$!{contact.section}"
168
                                            data-area="$!{contact.area}" data-basearea="$!{contact.baseArea}"
169
                                            data-name="$!{contact.name}" data-designation="$!{contact.designation}"
170
                                            data-mobile="$!{contact.mobile}" data-email="$!{contact.email}">
171
                                        <i class="fa fa-pencil"></i> Edit
172
                                    </button>
173
                                    <button type="button" class="btn btn-xs btn-danger contact-action-btn contact-delete-btn"
174
                                            data-id="$!{contact.id}" data-name="$!{contact.name}">
175
                                        <i class="fa fa-trash"></i> Delete
176
                                    </button>
177
                                </td>
178
                            #end
179
                        </tr>
180
                    #end
34806 aman 181
 
34511 aman.kumar 182
                    </tbody>
183
                </table>
184
            </div>
185
        </div>
32669 shampa 186
    </div>
36890 aman 187
 
188
    #if($contactUsEditor)
189
        <!-- Add / Edit contact modal -->
190
        <div class="modal fade" id="contactUsModal" tabindex="-1" role="dialog" aria-hidden="true">
191
            <div class="modal-dialog modal-lg">
192
                <div class="modal-content">
193
                    <div class="modal-header">
194
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
195
                        <h4 class="modal-title modelHeaderCustom" id="contactUsModalTitle">Add Contact</h4>
196
                    </div>
197
                    <div class="modal-body">
198
                        <form id="contactUsForm" onsubmit="return false;">
199
                            <input type="hidden" id="cuId" name="id" value="0"/>
200
                            <input type="hidden" id="cuSection" name="section" value="MAIN"/>
201
                            <div class="form-group">
202
                                <label>Area</label>
203
                                <input type="text" class="form-control" id="cuArea" name="area"/>
204
                            </div>
205
                            <div class="form-group">
206
                                <label id="cuBaseAreaLabel">Base Area</label>
207
                                <input type="text" class="form-control" id="cuBaseArea" name="baseArea"/>
208
                            </div>
209
                            <div class="form-group">
210
                                <label>Name <span style="color:red;">*</span></label>
211
                                <input type="text" class="form-control" id="cuName" name="name"/>
212
                            </div>
213
                            <div class="form-group">
214
                                <label>Designation</label>
215
                                <input type="text" class="form-control" id="cuDesignation" name="designation"/>
216
                            </div>
217
                            <div class="form-group">
218
                                <label>Mobile No</label>
219
                                <input type="text" class="form-control" id="cuMobile" name="mobile"/>
220
                            </div>
221
                            <div class="form-group">
222
                                <label>Email Id</label>
223
                                <input type="text" class="form-control" id="cuEmail" name="email"/>
224
                            </div>
37019 aman 225
                            <div class="form-group" id="cuPositionGroup">
226
                                <label>Position in list</label>
227
                                <select class="form-control" id="cuPosition"></select>
228
                            </div>
36890 aman 229
                        </form>
230
                    </div>
231
                    <div class="modal-footer">
232
                        <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
233
                        <button type="button" class="btn btn-primary" id="contactUsSaveBtn">Save</button>
234
                    </div>
235
                </div>
236
            </div>
237
        </div>
238
    #end
24263 tejbeer 239
</section>