Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15831 Rev 16822
Línea 5... Línea 5...
5
$roleName = $currentUser->getUserTypeId();
5
$roleName = $currentUser->getUserTypeId();
Línea 6... Línea 6...
6
 
6
 
Línea 7... Línea 7...
7
 
7
 
8
$routeSave       = $this->url('settings/my-private-network/favicon');
8
$routeSave       = $this->url('settings/my-private-network/favicon');
Línea 9... Línea 9...
9
 
9
 
10
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
10
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
11
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
11
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
Línea 12... Línea 12...
12
 
12
 
13
 
13
 
Línea 14... Línea 14...
14
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
14
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
15
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
15
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
Línea 36... Línea 36...
36
            errorElement: 'span',
36
            errorElement: 'span',
37
            errorClass: 'error invalid-feedback',
37
            errorClass: 'error invalid-feedback',
38
            errorPlacement: function(error, element) {
38
            errorPlacement: function(error, element) {
39
                if(element.parent('.btn-file').length) {
39
                if(element.parent('.btn-file').length) {
40
                    error.insertAfter(element.parent().parent());
40
                    error.insertAfter(element.parent().parent());
41
                } else if(element.parent('.toggle').length) {
-
 
42
                    error.insertAfter(element.parent().parent());
-
 
43
                } else {
41
                }  else {
44
                    error.insertAfter(element.parent());
42
                    error.insertAfter(element.parent());
45
                }
43
                }
46
            }
44
            }
47
        });
45
        });
Línea 58... Línea 56...
58
                
56
                
59
                
57
                
60
                var error = $('<span id="' + elementname +'-error" class="error invalid-feedback">' + errors + '</div>');
58
                var error = $('<span id="' + elementname +'-error" class="error invalid-feedback">' + errors + '</div>');
61
                if(element.parent('.btn-file').length) {
-
 
62
                    error.insertAfter(element.parent().parent());
-
 
63
                } else if(element.parent('.toggle').length) {
59
                if(element.parent('.btn-file').length) {
64
                    error.insertAfter(element.parent().parent());
60
                    error.insertAfter(element.parent().parent());
65
                } else {
61
                }  else {
66
                    error.insertAfter(element.parent());
62
                    error.insertAfter(element.parent());
67
                }
63
                }
Línea 139... Línea 135...
139
});
135
});
140
JS;
136
JS;
141
$this->inlineScript()->captureEnd();
137
$this->inlineScript()->captureEnd();
142
?>
138
?>
Línea 143... Línea -...
143
 
-
 
144
<!-- Content Header (Page header) -->
-
 
145
<section class="content-header">
139
 
146
	<div class="container-fluid">
140
<div class="container">
147
    	<div class="row mb-2">
-
 
148
        	<div class="col-sm-12">
-
 
149
            	<h1>LABEL_MY_PRIVATE_NETWORK_FAVICO</h1>
-
 
150
			</div>
-
 
151
		</div>
-
 
152
		<div class="row mb-2">
-
 
153
        	<div class="col-sm-12">
141
  	<div class="card">
154
    		<?php 
142
      	<?php
155
           	    $form = $this->form;
143
        $form = $this->form;
156
                $form->setAttributes([
144
        $form->setAttributes([
157
                    'method'  => 'post',
145
            'method'  => 'post',
158
                	'action'  => $routeSave,
146
            'action'  => $routeSave,
159
                    'name'    => 'form',
147
            'name'    => 'form',
160
                    'id'      => 'form',
148
            'id'      => 'form',
Línea 161... Línea 149...
161
                ]);
149
        ]);
162
        
150
        
163
                $form->prepare();
151
        $form->prepare();
164
                echo $this->form()->openTag($form);
152
        echo $this->form()->openTag($form);
-
 
153
        ?>
-
 
154
  		<div class="card-body">
-
 
155
       		<h6 class="card-title">LABEL_MY_PRIVATE_NETWORK_FAVICO</h6>
165
            ?>					
156
			<div class="row mr-3 mb-3">
166
    		<div class="form-group">
157
				<div class="col-12">
167
               		<?php 
158
					<?php
168
                    $element = $form->get('file');
159
                    $element = $form->get('file');
169
                        
160
        
170
                    $element->setAttributes(['class' => 'form-control',  'accept' => 'image/jpg,image/jpeg,image/png']);
161
                    $element->setAttributes(['class' => 'form-control',  'accept' => 'image/jpg,image/jpeg,image/png']);
171
                    $element->setOptions(['label' => 'LABEL_IMAGE']);
162
                    $element->setOptions(['label' => 'LABEL_IMAGE']);
172
                    echo $this->formLabel($element);
163
                    echo $this->formLabel($element);
173
                    ?>
164
                    ?>
174
                    <div class="file-loading">
165
               		<div class="file-loading">
-
 
166
                   		<?php echo $this->formFile($element); ?>
-
 
167
                	</div>
-
 
168
 				</div>
-
 
169
           	</div>
-
 
170
        </div>
-
 
171
		<div class="card-footer text-right">
-
 
172
     		<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
173
    	</div>
-
 
174
		<?php echo $this->form()->closeTag($form); ?>
Línea 175... Línea -...
175
                    	<?php echo $this->formFile($element); ?>
-
 
176
                	</div>
-
 
177
 
-
 
178
          		</div>
-
 
179
    		<div class="form-group">
-
 
180
            	<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
181
      		</div>
-
 
182
       		<?php echo $this->form()->closeTag($form); ?>
-
 
183
			</div>
-