| Línea 75... |
Línea 75... |
| 75 |
var sections = [];
|
75 |
var sections = [];
|
| 76 |
/**
|
76 |
/**
|
| 77 |
* Get rows and set data table
|
77 |
* Get rows and set data table
|
| 78 |
*/
|
78 |
*/
|
| Línea 79... |
Línea -... |
| 79 |
|
- |
|
| 80 |
$('#form-group #form-date').datetimepicker({
|
- |
|
| 81 |
locale: 'es',
|
- |
|
| 82 |
format: 'DD/MM/YYYY'
|
79 |
|
| 83 |
});
|
80 |
});
|
| 84 |
var tableForm = $('#gridTable').dataTable({
|
81 |
var tableForm = $('#gridTable').dataTable({
|
| 85 |
'processing': true,
|
82 |
'processing': true,
|
| 86 |
'serverSide': true,
|
83 |
'serverSide': true,
|
| Línea 245... |
Línea 242... |
| 245 |
$('#form-main #form-name').val(response['data']['name']);
|
242 |
$('#form-main #form-name').val(response['data']['name']);
|
| 246 |
$('#form-main #job_description_id').val(response['data']['job_description_id']).trigger('change');
|
243 |
$('#form-main #job_description_id').val(response['data']['job_description_id']).trigger('change');
|
| 247 |
$('#form-main #location_search').val(response['data']['location_search']);
|
244 |
$('#form-main #location_search').val(response['data']['location_search']);
|
| 248 |
$('#form-main #job_category_id').val(response['data']['job_category_id']).trigger('change');
|
245 |
$('#form-main #job_category_id').val(response['data']['job_category_id']).trigger('change');
|
| 249 |
$('#form-main #industry_id').val(response['data']['industry_id']).trigger('change');
|
246 |
$('#form-main #industry_id').val(response['data']['industry_id']).trigger('change');
|
| - |
|
247 |
$('#form-main #last_date').val(response['data']['last_date']).trigger('change');
|
| 250 |
$('#form-main #form-status').val(response['data']['status']);
|
248 |
$('#form-main #form-status').val(response['data']['status']);
|
| 251 |
CKEDITOR.instances['description'].setData(response['data']['description']);
|
249 |
CKEDITOR.instances['description'].setData(response['data']['description']);
|
| Línea 252... |
Línea 250... |
| 252 |
|
250 |
|
| Línea 257... |
Línea 255... |
| 257 |
}).fail(function(jqXHR, textStatus, errorThrown) {
|
255 |
}).fail(function(jqXHR, textStatus, errorThrown) {
|
| 258 |
$.fn.showError(textStatus);
|
256 |
$.fn.showError(textStatus);
|
| 259 |
});
|
257 |
});
|
| 260 |
});
|
258 |
});
|
| Línea 261... |
Línea -... |
| 261 |
|
- |
|
| - |
|
259 |
|
| - |
|
260 |
$('#form-main #last_date').datetimepicker({
|
| - |
|
261 |
locale: 'es',
|
| 262 |
|
262 |
format: 'DD/MM/YYYY'
|
| 263 |
/**
|
263 |
/**
|
| 264 |
* Clicked new Form
|
264 |
* Clicked new Form
|
| 265 |
*/
|
265 |
*/
|
| 266 |
$('button.btn-add-form').click(function(e) {
|
266 |
$('button.btn-add-form').click(function(e) {
|
| Línea 270... |
Línea 270... |
| 270 |
$('#form-main #form-name').val('');
|
270 |
$('#form-main #form-name').val('');
|
| 271 |
$('#form-main #job_description_id').val('').trigger('change');
|
271 |
$('#form-main #job_description_id').val('').trigger('change');
|
| 272 |
$('#form-main #location_search').val('');
|
272 |
$('#form-main #location_search').val('');
|
| 273 |
$('#form-main #job_category_id').val('').trigger('change');
|
273 |
$('#form-main #job_category_id').val('').trigger('change');
|
| 274 |
$('#form-main #industry_id').val('').trigger('change');
|
274 |
$('#form-main #industry_id').val('').trigger('change');
|
| 275 |
$('#form-main #form-date').val('');
|
275 |
$('#form-main #last_date').val('');
|
| 276 |
$('#form-main #form-status').val('$status_active');
|
276 |
$('#form-main #form-status').val('$status_active');
|
| 277 |
CKEDITOR.instances['description'].setData('');
|
277 |
CKEDITOR.instances['description'].setData('');
|
| 278 |
$('#row-lists').hide();
|
278 |
$('#row-lists').hide();
|
| 279 |
$('#row-form').show();
|
279 |
$('#row-form').show();
|
| 280 |
$('#form-main #form-name').focus();
|
280 |
$('#form-main #form-name').focus();
|
| Línea 655... |
Línea 655... |
| 655 |
<option value="<?php echo $rs->uuid;?>"><?php echo $rs->name;?></option>
|
655 |
<option value="<?php echo $rs->uuid;?>"><?php echo $rs->name;?></option>
|
| 656 |
<?php endforeach; ?>
|
656 |
<?php endforeach; ?>
|
| 657 |
</select>
|
657 |
</select>
|
| 658 |
</div>
|
658 |
</div>
|
| 659 |
<div class="form-group">
|
659 |
<div class="form-group">
|
| 660 |
<label for="form-date">LABEL_LAST_DATE_OF_APPLICATION</label>
|
660 |
<label for="last_date">LABEL_LAST_DATE_OF_APPLICATION</label>
|
| 661 |
<input type="text" name="form-date" id="form-date" class="form-control" maxlength="50" />
|
661 |
<input type="text" name="last_date" id="last_date" class="form-control" maxlength="50" />
|
| 662 |
</div>
|
662 |
</div>
|
| 663 |
<label for="description">LABEL_DESCRIPTION</label>
|
663 |
<label for="description">LABEL_DESCRIPTION</label>
|
| 664 |
<!-- ckeditor -->
|
664 |
<!-- ckeditor -->
|
| 665 |
<textarea name="description" id="description" rows="5" class="ckeditor form-control"></textarea>
|
665 |
<textarea name="description" id="description" rows="5" class="ckeditor form-control"></textarea>
|
| 666 |
</div>
|
666 |
</div>
|