Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15422 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/navbar');
8
$routeSave       = $this->url('settings/my-private-network/navbar');
-
 
9
 
-
 
10
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
-
 
11
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
-
 
12
 
-
 
13
 
-
 
14
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
-
 
15
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
-
 
16
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
-
 
17
 
Línea 9... Línea -...
9
 
-
 
10
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
-
 
11
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
-
 
Línea 12... Línea 18...
12
 
18
 
13
 
19
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-fileinput/css/fileinput.css'));
14
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
20
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/fileinput.js'));
Línea 30... Línea 36...
30
            errorElement: 'span',
36
            errorElement: 'span',
31
            errorClass: 'error invalid-feedback',
37
            errorClass: 'error invalid-feedback',
32
            errorPlacement: function(error, element) {
38
            errorPlacement: function(error, element) {
33
                if(element.parent('.btn-file').length) {
39
                if(element.parent('.btn-file').length) {
34
                    error.insertAfter(element.parent().parent());
40
                    error.insertAfter(element.parent().parent());
35
                } else if(element.parent('.toggle').length) {
-
 
36
                    error.insertAfter(element.parent().parent());
-
 
37
                } else {
41
                }  else {
38
                    error.insertAfter(element.parent());
42
                    error.insertAfter(element.parent());
39
                }
43
                }
40
            }
44
            }
41
        });
45
        });
Línea 52... Línea 56...
52
                
56
                
53
                
57
                
54
                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>');
55
                if(element.parent('.btn-file').length) {
-
 
56
                    error.insertAfter(element.parent().parent());
-
 
57
                } else if(element.parent('.toggle').length) {
59
                if(element.parent('.btn-file').length) {
58
                    error.insertAfter(element.parent().parent());
60
                    error.insertAfter(element.parent().parent());
59
                } else {
61
                }  else {
60
                    error.insertAfter(element.parent());
62
                    error.insertAfter(element.parent());
61
                }
63
                }
Línea 118... Línea 120...
118
            
120
            
119
        }
121
        }
Línea 120... Línea 122...
120
    });
122
    });
121
 
123
 
122
 
124
 
123
    $('#form-topic-edit #file').fileinput({
125
    $('#form #file').fileinput({
124
        theme: 'fas',
126
        theme: 'fas',
125
        language: 'es',
127
        language: 'es',
Línea 133... Línea 135...
133
});
135
});
134
JS;
136
JS;
135
$this->inlineScript()->captureEnd();
137
$this->inlineScript()->captureEnd();
136
?>
138
?>
Línea 137... Línea -...
137
 
-
 
138
<!-- Content Header (Page header) -->
-
 
139
<section class="content-header">
139
 
140
    <div class="container-fluid">
140
<div class="container">
141
        <div class="row mb-2">
-
 
142
            <div class="col-sm-12">
-
 
143
                <h1>LABEL_MY_PRIVATE_NETWORK_NAVBAR</h1>
-
 
144
            </div>
141
  	<div class="card">
145
        </div>
-
 
146
        <div class="row mb-2">
-
 
147
            <div class="col-sm-12">
-
 
148
                <?php
142
      	<?php
149
                $form = $this->form;
143
        $form = $this->form;
150
                $form->setAttributes([
144
        $form->setAttributes([
151
                    'method'  => 'post',
145
            'method'  => 'post',
152
                    'action'  => $routeSave,
146
            'action'  => $routeSave,
153
                    'name'    => 'form',
147
            'name'    => 'form',
154
                    'id'      => 'form',
148
            'id'      => 'form',
155
                ]);
149
        ]);
156
 
150
        
157
                $form->prepare();
151
        $form->prepare();
158
                echo $this->form()->openTag($form);
152
        echo $this->form()->openTag($form);
159
                ?>
153
        ?>
-
 
154
  		<div class="card-body">
-
 
155
       		<h6 class="card-title">LABEL_MY_PRIVATE_NETWORK_NAVBAR</h6>
160
                <div class="form-group">
156
			<div class="row mr-3 mb-3">
-
 
157
				<div class="col-12">
161
                    <?php
158
					<?php
162
                    $element = $form->get('file');
159
                    $element = $form->get('file');
163
 
160
        
164
                    $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']);
165
                    $element->setOptions(['label' => 'LABEL_IMAGE']);
162
                    $element->setOptions(['label' => 'LABEL_IMAGE']);
166
                    echo $this->formLabel($element);
163
                    echo $this->formLabel($element);
167
                    ?>
164
                    ?>
168
                    <div class="file-loading">
165
               		<div class="file-loading">
169
                        <?php echo $this->formFile($element); ?>
-
 
170
                    </div>
-
 
171
 
-
 
172
                    LABEL_RECOMMENDED_SIZE <?php echo $image_size ?>
166
                   		<?php echo $this->formFile($element); ?>
173
                </div>
-
 
174
                <div class="form-group">
-
 
175
                    <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
167
                	</div>
176
                </div>
-
 
177
                <?php echo $this->form()->closeTag($form); ?>
168
 				</div>
178
            </div>
169
           	</div>
179
        </div>
-
 
180
    </div><!-- /.container-fluid -->
-
 
181
</section>
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); ?>
-
 
175
	</div>
-
 
176
</div>