|
5 | 5 |
|
6 | 6 | <div class="row" data-class="row"><div class="col-md-6"> |
7 | 7 |
|
8 | | - <div class="form-group row"><!-- SUBJECT --> |
| 8 | + <div class="form-group row @if(isset($search_fields['subject'])) bg-info @endif"><!-- SUBJECT --> |
9 | 9 | {!! CollectiveForm::label('subject', trans('panichd::lang.subject') . trans('panichd::lang.colon'), [ |
10 | 10 | 'class' => 'col-lg-3 col-form-label' |
11 | 11 | ]) !!} |
|
14 | 14 | </div> |
15 | 15 | </div> |
16 | 16 |
|
17 | | - <div class="form-group row"><!-- CREATOR --> |
| 17 | + <div class="form-group row @if(isset($search_fields['creator_id'])) bg-info @endif"><!-- CREATOR --> |
18 | 18 | <label for="creator_id" class="col-lg-3 col-form-label tooltip-info" title="{{ trans('panichd::lang.searchform-help-creator') }}">{{ trans('panichd::lang.searchform-creator') . trans('panichd::lang.colon') }} <span class="fa fa-question-circle" style="color: #bbb"></span></label> |
19 | 19 | <div class="col-lg-9"> |
20 | 20 | <select name="creator_id" class="generate_default_select2 form-control" style="display: none; width: 100%"> |
|
35 | 35 | </div> |
36 | 36 |
|
37 | 37 | <div style="margin-bottom: 1.5em"> |
38 | | - <div class="form-group row"><!-- OWNER --> |
| 38 | + <div class="form-group row @if(isset($search_fields['user_id'])) bg-info @endif"><!-- OWNER --> |
39 | 39 | <label for="user_id" class="col-lg-3 col-form-label tooltip-info" title="{{ trans('panichd::lang.searchform-help-owner') }}">{{trans('panichd::lang.owner') . trans('panichd::lang.colon')}} <span class="fa fa-question-circle" style="color: #bbb"></span></label> |
40 | 40 | <div class="col-lg-9"> |
41 | 41 | <select name="user_id" class="generate_default_select2 form-control" style="display: none; width: 100%"> |
|
56 | 56 | </div> |
57 | 57 |
|
58 | 58 | @if($setting->grab('departments_feature')) |
59 | | - <div class="form-group row"><!-- DEPARTMENT --> |
| 59 | + <div class="form-group row @if(isset($search_fields['department_id'])) bg-info @endif"><!-- DEPARTMENT --> |
60 | 60 | <label for="user_id" class="col-lg-3 col-form-label tooltip-info" title="{{ trans('panichd::lang.searchform-help-department') }}">{{trans('panichd::lang.searchform-department') . trans('panichd::lang.colon')}} <span class="fa fa-question-circle" style="color: #bbb"></span></label> |
61 | 61 | <div class="col-lg-9"> |
62 | 62 | <select name="department_id" class="generate_default_select2 form-control" style="display: none; width: 100%"> |
|
74 | 74 | </div> |
75 | 75 |
|
76 | 76 | <div> |
77 | | - <div class="form-group row align-items-center" style="margin-bottom: 1.5em"><!-- TICKET LIST --> |
| 77 | + <div class="form-group row align-items-center @if(isset($search_fields['list'])) bg-info @endif" style="margin-bottom: 1.5em"><!-- TICKET LIST --> |
78 | 78 | {!! CollectiveForm::label('complete', trans('panichd::lang.list') . trans('panichd::lang.colon'), [ |
79 | 79 | 'class' => 'col-lg-3 col-form-label', |
80 | 80 | 'title' => trans('panichd::lang.create-ticket-change-list') |
|
96 | 96 | </div> |
97 | 97 | </div> |
98 | 98 |
|
99 | | - <div class="form-group row"><!-- STATUS --> |
| 99 | + <div class="form-group row @if(isset($search_fields['status_id'])) bg-info @endif"><!-- STATUS --> |
100 | 100 | {!! CollectiveForm::label('status_id', trans('panichd::lang.status') . trans('panichd::lang.colon'), [ |
101 | 101 | 'class' => 'col-lg-3 col-form-label' |
102 | 102 | ]) !!} |
|
109 | 109 | </select> |
110 | 110 | </div> |
111 | 111 | </div> |
112 | | - <div class="form-group row"><!-- PRIORITY --> |
| 112 | + <div class="form-group row @if(isset($search_fields['priority_id'])) bg-info @endif"><!-- PRIORITY --> |
113 | 113 | {!! CollectiveForm::label('priority_id', trans('panichd::lang.priority') . trans('panichd::lang.colon'), ['class' => 'col-lg-3 col-form-label']) !!} |
114 | 114 | <div class="col-lg-9"> |
115 | 115 | <select class="form-control" name="priority_id"> |
|
121 | 121 | </div> |
122 | 122 | </div> |
123 | 123 |
|
124 | | - <div class="form-group row"><!-- START DATE --> |
| 124 | + <div class="form-group row @if(isset($search_fields['start_date'])) bg-info @endif"><!-- START DATE --> |
125 | 125 | {!! CollectiveForm::label('start_date', trans('panichd::lang.start-date') . trans('panichd::lang.colon'), ['class' => 'col-lg-3 col-form-label']) !!} |
126 | 126 | <div class="col-lg-9"> |
127 | 127 | <div class="input-group date" id="start_date"> |
|
140 | 140 | </div> |
141 | 141 | </div> |
142 | 142 |
|
143 | | - <div class="form-group row" style="margin-bottom: 1.5em"><!-- LIMIT DATE --> |
| 143 | + <div class="form-group row @if(isset($search_fields['limit_date'])) bg-info @endif" style="margin-bottom: 1.5em"><!-- LIMIT DATE --> |
144 | 144 | {!! CollectiveForm::label('limit_date', trans('panichd::lang.limit-date') . trans('panichd::lang.colon'), ['class' => 'col-lg-3 col-form-label']) !!} |
145 | 145 | <div class="col-lg-9"> |
146 | 146 | <div class="input-group date" id="limit_date"> |
|
160 | 160 | </div> |
161 | 161 | </div> |
162 | 162 |
|
163 | | - <div class="form-group row"><!-- CATEGORY --> |
| 163 | + <div class="form-group row @if(isset($search_fields['category_id'])) bg-info @endif"><!-- CATEGORY --> |
164 | 164 | {!! CollectiveForm::label('category_id', trans('panichd::lang.category') . trans('panichd::lang.colon'), [ |
165 | 165 | 'class' => 'col-lg-3 col-form-label' |
166 | 166 | ]) !!} |
|
174 | 174 | </div> |
175 | 175 | </div> |
176 | 176 |
|
177 | | - <div class="form-group row"><!-- AGENT --> |
| 177 | + <div class="form-group row @if(isset($search_fields['agent_id'])) bg-info @endif"><!-- AGENT --> |
178 | 178 | {!! CollectiveForm::label('agent_id', trans('panichd::lang.agent') . trans('panichd::lang.colon'), [ |
179 | 179 | 'class' => 'col-lg-3 col-form-label' |
180 | 180 | ]) !!} |
|
189 | 189 | </div> |
190 | 190 | </div> |
191 | 191 |
|
192 | | - <div class="form-group row"><!-- TAGS --> |
193 | | - <label class="col-form-label col-lg-3">{{ trans('panichd::lang.tags') . trans('panichd::lang.colon') }}</label> |
| 192 | + <div class="form-group row @if(isset($search_fields['tags'])) bg-info @endif"><!-- TAGS --> |
| 193 | + <label for="tag_list" class="col-form-label col-lg-3">{{ trans('panichd::lang.tags') . trans('panichd::lang.colon') }}</label> |
194 | 194 | <div id="tag_list_container" class="col-lg-9"> |
195 | 195 | @include('panichd::tickets.partials.tags_menu', ['categories' => $a_categories, 'tag_lists' => $c_cat_tags, 'a_tags_selected' => $search_fields['tags'] ?? []]) |
196 | 196 | </div> |
197 | 197 | </div> |
198 | 198 |
|
199 | 199 | </div><div class="col-md-6"> |
200 | 200 |
|
201 | | - <div class="form-group row"><!-- DESCRIPTION --> |
| 201 | + <div class="form-group row @if(isset($search_fields['content'])) bg-info @endif"><!-- DESCRIPTION --> |
202 | 202 | <label for="content" class="col-lg-3 col-form-label">{{trans('panichd::lang.description')}}{{trans('panichd::lang.colon')}}</label> |
203 | 203 | <div class="col-lg-9"> |
204 | 204 | <textarea class="form-control" rows="2" name="content" cols="50">{{ $search_fields['content'] ?? '' }}</textarea> |
205 | 205 | </div> |
206 | 206 | </div> |
207 | 207 |
|
208 | | - <div class="form-group row"><!-- INTERVENTION --> |
| 208 | + <div class="form-group row @if(isset($search_fields['intervention'])) bg-info @endif"><!-- INTERVENTION --> |
209 | 209 | <label for="intervention" class="col-lg-3 col-form-label">{{ trans('panichd::lang.intervention') . trans('panichd::lang.colon') }}</label> |
210 | 210 | <div class="col-lg-9"> |
211 | 211 | <textarea class="form-control" rows="2" name="intervention" cols="50">{{ $search_fields['intervention'] ?? '' }}</textarea> |
212 | 212 | </div> |
213 | 213 | </div> |
214 | 214 |
|
215 | | - <div class="form-group row"><!-- COMMENTS --> |
| 215 | + <div class="form-group row @if(isset($search_fields['comments'])) bg-info @endif"><!-- COMMENTS --> |
216 | 216 | <label for="comments" class="col-lg-3 col-form-label">{{ trans('panichd::lang.searchform-comments') . trans('panichd::lang.colon') }}</label> |
217 | 217 | <div class="col-lg-9"> |
218 | 218 | <textarea class="form-control" rows="2" name="comments" cols="50">{{ $search_fields['comments'] ?? '' }}</textarea> |
219 | 219 | </div> |
220 | 220 | </div> |
221 | 221 |
|
222 | 222 | @if ($setting->grab('ticket_attachments_feature')) |
223 | | - <div class="form-group row"><!-- ATTACHMENT FILENAME --> |
| 223 | + <div class="form-group row @if(isset($search_fields['attachment_name'])) bg-info @endif"><!-- ATTACHMENT FILENAME --> |
224 | 224 | {!! CollectiveForm::label('attachment_name', trans('panichd::lang.searchform-attachment_filename') . trans('panichd::lang.colon'), [ |
225 | 225 | 'class' => 'col-lg-3 col-form-label' |
226 | 226 | ]) !!} |
|
229 | 229 | </div> |
230 | 230 | </div> |
231 | 231 | @endif |
232 | | - <div class="form-group row"><!-- FIND IN ANY TEXT FIELD --> |
| 232 | + <div class="form-group row @if(isset($search_fields['any_text_field'])) bg-info @endif"><!-- FIND IN ANY TEXT FIELD --> |
233 | 233 | <label for="comments" class="col-lg-3 col-form-label tooltip-info" title="{{ trans('panichd::lang.searchform-help-any_text_field') }}">{{ trans('panichd::lang.searchform-any_text_field') . trans('panichd::lang.colon') }} <span class="fa fa-question-circle" style="color: #bbb"></span></label> |
234 | 234 | <div class="col-lg-9"> |
235 | 235 | <textarea class="form-control" rows="2" name="any_text_field" cols="50">{{ $search_fields['any_text_field'] ?? '' }}</textarea> |
236 | 236 | </div> |
237 | 237 | </div> |
238 | 238 |
|
239 | 239 | @foreach(['created_at', 'completed_at', 'updated_at'] as $date_field) |
240 | | - <div class="form-group row"> |
| 240 | + <div class="form-group row @if(isset($search_fields[$date_field])) bg-info @endif"> |
241 | 241 | {!! CollectiveForm::label($date_field, trans('panichd::lang.searchform-' . $date_field) . trans('panichd::lang.colon'), ['class' => 'col-lg-3 col-form-label']) !!} |
242 | 242 | <div class="col-lg-9"> |
243 | 243 | <div class="input-group date" id="{{ $date_field }}"> |
|
0 commit comments