Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16834 | Rev 16841 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16834 Rev 16840
Línea 261... Línea 261...
261
        });
261
        });
Línea 262... Línea 262...
262
        
262
        
263
        $('body').on('click', 'button.btn-add', function(e) {
263
        $('body').on('click', 'button.btn-add', function(e) {
Línea 264... Línea -...
264
            e.preventDefault();
-
 
-
 
264
            e.preventDefault();
265
 
265
 
266
            $('span[id="form-title"]').html('LABEL_ADD');
266
            
267
            $('#form').attr('action', '$routeAdd');
267
            $('#form').attr('action', '$routeAdd');
268
            $('#form #name').val('');
268
            $('#form #name').val('');
Línea 285... Línea 285...
285
                'method'    : 'get',
285
                'method'    : 'get',
286
                'url'       :  action,
286
                'url'       :  action,
287
            }).done(function(response) {
287
            }).done(function(response) {
288
                if(response['success']) {
288
                if(response['success']) {
Línea 289... Línea -...
289
 
-
 
-
 
289
 
290
                    $('span[id="form-title"]').html('LABEL_EDIT');
290
                    
291
                    $('#form').attr('action', action);
291
                    $('#form').attr('action', action);
292
                    $('#form #name').val(response['data']['name']);
292
                    $('#form #name').val(response['data']['name']);
293
                    $('#form #status').bootstrapToggle(response['data']['status'] == '$status_active' ? 'on' : 'off')
293
                    $('#form #status').bootstrapToggle(response['data']['status'] == '$status_active' ? 'on' : 'off')
Línea 403... Línea 403...
403
	<div class="modal-dialog  modal-xl">
403
	<div class="modal-dialog  modal-xl">
404
    	<div class="modal-content">
404
    	<div class="modal-content">
Línea 405... Línea 405...
405
 
405
 
406
            <!-- Modal Header -->
406
            <!-- Modal Header -->
407
      		<div class="modal-header">
407
      		<div class="modal-header">
408
        		<h4 class="modal-title">LABEL_JOB_CATEGORIES - <span id="form-title"></span></h4>
408
        		<h4 class="modal-title">LABEL_JOB_CATEGORIES</h4>
409
        		<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
409
        		<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
Línea 410... Línea 410...
410
      		</div>
410
      		</div>
411
 
411