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/logo');
8
$routeSave       = $this->url('settings/my-private-network/logo');
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">
-
 
146
    <div class="container-fluid">
-
 
147
        <div class="row mb-2">
-
 
148
            <div class="col-sm-12">
-
 
149
                <h1>LABEL_MY_PRIVATE_NETWORK_LOGO</h1>
-
 
150
            </div>
-
 
151
        </div>
-
 
152
        <div class="row mb-2">
-
 
153
            <div class="col-sm-12">
-
 
154
                <?php
-
 
155
                $form = $this->form;
-
 
156
                $form->setAttributes([
-
 
157
                    'method'  => 'post',
-
 
158
                    'action'  => $routeSave,
-
 
159
                    'name'    => 'form',
-
 
160
                    'id'      => 'form',
-
 
161
                ]);
-
 
162
 
-
 
163
                $form->prepare();
-
 
164
                echo $this->form()->openTag($form);
-
 
165
                ?>
-
 
166
                <div class="form-group">
-
 
167
                    <?php
-
 
Línea -... Línea 139...
-
 
139
 
-
 
140
 
-
 
141
<div class="container">
-
 
142
  	<div class="card">
-
 
143
      	<?php
-
 
144
        $form = $this->form;
-
 
145
        $form->setAttributes([
-
 
146
            'method'  => 'post',
-
 
147
            'action'  => $routeSave,
-
 
148
            'name'    => 'form',
-
 
149
            'id'      => 'form',
-
 
150
        ]);
-
 
151
        
-
 
152
        $form->prepare();
-
 
153
        echo $this->form()->openTag($form);
-
 
154
        ?>
-
 
155
  		<div class="card-body">
-
 
156
       		<h6 class="card-title">LABEL_MY_PRIVATE_NETWORK_LOGO</h6>
-
 
157
			<div class="row mr-3 mb-3">
-
 
158
				<div class="col-12">
-
 
159
					<?php
168
                    $element = $form->get('file');
160
                    $element = $form->get('file');
169
 
161
        
170
                    $element->setAttributes(['class' => 'form-control',  'accept' => 'image/jpg,image/jpeg,image/png']);
162
                    $element->setAttributes(['class' => 'form-control',  'accept' => 'image/jpg,image/jpeg,image/png']);
171
                    $element->setOptions(['label' => 'LABEL_IMAGE']);
163
                    $element->setOptions(['label' => 'LABEL_IMAGE']);
172
                    echo $this->formLabel($element);
164
                    echo $this->formLabel($element);
173
                    ?>
165
                    ?>
174
                    <div class="file-loading">
-
 
175
                        <?php echo $this->formFile($element); ?>
-
 
176
                    </div>
166
               		<div class="file-loading">
177
 
-
 
178
                </div>
-
 
179
                <div class="form-group">
167
                   		<?php echo $this->formFile($element); ?>
180
                    <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
181
                </div>
168
                	</div>
182
                <?php echo $this->form()->closeTag($form); ?>
169
 				</div>
183
            </div>
-
 
184
        </div>
-
 
185
    </div><!-- /.container-fluid -->
170
           	</div>
-
 
171
        </div>
-
 
172
		<div class="card-footer text-right">
-
 
173
     		<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
174
    	</div>
-
 
175
		<?php echo $this->form()->closeTag($form); ?>
-
 
176
	</div>
-
 
177
</div>