Línea 236... |
Línea 236... |
236 |
if (response['success']) {
|
236 |
if (response['success']) {
|
237 |
$("#rows").html('');
|
237 |
$("#rows").html('');
|
238 |
sections = [];
|
238 |
sections = [];
|
239 |
$('#form-main').attr('action', action);
|
239 |
$('#form-main').attr('action', action);
|
240 |
$('#form-main #form-name').val(response['data']['name']);
|
240 |
$('#form-main #form-name').val(response['data']['name']);
|
241 |
$('#form-main #form-location').val(response['data']['location']);
|
- |
|
242 |
$('#form-main #job_description_id').val(response['data']['job_description_id']).trigger('change');
|
241 |
$('#form-main #job_description_id').val(response['data']['job_description_id']).trigger('change');
|
- |
|
242 |
$('#form-main #form-location').val(response['data']['location']);
|
243 |
$('#form-main #job_category_id').val(response['data']['job_category_id']).trigger('change');
|
243 |
$('#form-main #job_category_id').val(response['data']['job_category_id']).trigger('change');
|
244 |
$('#form-main #industry_id').val(response['data']['industry_id']).trigger('change');
|
244 |
$('#form-main #industry_id').val(response['data']['industry_id']).trigger('change');
|
245 |
$('#form-main #form-status').val(response['data']['status']);
|
245 |
$('#form-main #form-status').val(response['data']['status']);
|
246 |
CKEDITOR.instances['form-description'].setData(response['data']['description']);
|
246 |
CKEDITOR.instances['form-description'].setData(response['data']['description']);
|
Línea 261... |
Línea 261... |
261 |
$('button.btn-add-form').click(function(e) {
|
261 |
$('button.btn-add-form').click(function(e) {
|
262 |
$("#rows").html('');
|
262 |
$("#rows").html('');
|
263 |
sections = [];
|
263 |
sections = [];
|
264 |
$('#form-main').attr('action', '$routeAdd');
|
264 |
$('#form-main').attr('action', '$routeAdd');
|
265 |
$('#form-main #form-name').val('');
|
265 |
$('#form-main #form-name').val('');
|
266 |
$('#form-main #form-location').val('');
|
- |
|
267 |
$('#form-main #job_description_id').val('').trigger('change');
|
266 |
$('#form-main #job_description_id').val('').trigger('change');
|
- |
|
267 |
$('#form-main #form-location').val('');
|
268 |
$('#form-main #job_category_id').val('').trigger('change');
|
268 |
$('#form-main #job_category_id').val('').trigger('change');
|
269 |
$('#form-main #industry_id').val('').trigger('change');
|
269 |
$('#form-main #industry_id').val('').trigger('change');
|
270 |
$('#form-main #form-status').val('$status_active');
|
270 |
$('#form-main #form-status').val('$status_active');
|
271 |
CKEDITOR.instances['form-description'].setData('');
|
271 |
CKEDITOR.instances['form-description'].setData('');
|
272 |
$('#row-lists').hide();
|
272 |
$('#row-lists').hide();
|
Línea 598... |
Línea 598... |
598 |
<option value="<?php echo $rs->uuid;?>"><?php echo $rs->name;?></option>
|
598 |
<option value="<?php echo $rs->uuid;?>"><?php echo $rs->name;?></option>
|
599 |
<?php endforeach; ?>
|
599 |
<?php endforeach; ?>
|
600 |
</select>
|
600 |
</select>
|
601 |
</div>
|
601 |
</div>
|
602 |
<div class="form-group">
|
602 |
<div class="form-group">
|
603 |
<label for="job_description_id">LABEL_INDUSTRY</label>
|
603 |
<label for="industry_id">LABEL_INDUSTRY</label>
|
604 |
<select name="job_description_id" id="job_description_id" class="form-control">
|
604 |
<select name="industry_id" id="industry_id" class="form-control">
|
605 |
<option value="">LABEL_SELECT</option>
|
605 |
<option value="">LABEL_SELECT</option>
|
606 |
<?php foreach ($industry as $rs): ?>
|
606 |
<?php foreach ($industry as $rs): ?>
|
607 |
<option value="<?php echo $rs->uuid;?>"><?php echo $rs->name;?></option>
|
607 |
<option value="<?php echo $rs->uuid;?>"><?php echo $rs->name;?></option>
|
608 |
<?php endforeach; ?>
|
608 |
<?php endforeach; ?>
|
609 |
</select>
|
609 |
</select>
|