Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16845 Rev 16847
Línea 1074... Línea 1074...
1074
                        'method'    : 'post',
1074
                        'method'    : 'post',
1075
                        'url'       :  action,
1075
                        'url'       :  action,
1076
                    }).done(function(response) {
1076
                    }).done(function(response) {
1077
                        if(response['success']) {
1077
                        if(response['success']) {
1078
                            $.fn.showSuccess(response['data']);
1078
                            $.fn.showSuccess(response['data']);
1079
                            gridTable.api().ajax.reload(null, false);
1079
                            tableForm.api().ajax.reload(null, false);
1080
                        } else {
1080
                        } else {
1081
                            $.fn.showError(response['data']);
1081
                            $.fn.showError(response['data']);
1082
                        }
1082
                        }
1083
                    }).fail(function( jqXHR, textStatus, errorThrown) {
1083
                    }).fail(function( jqXHR, textStatus, errorThrown) {
1084
                        $.fn.showError(textStatus);
1084
                        $.fn.showError(textStatus);
Línea 1095... Línea 1095...
1095
});
1095
});
1096
JS;
1096
JS;
1097
$this->inlineScript()->captureEnd();
1097
$this->inlineScript()->captureEnd();
1098
?>
1098
?>
Línea 1099... Línea -...
1099
 
-
 
1100
<!-- Content Header (Page header) -->
1099
 
1101
<section class="content-header">
1100
<div class="container">
-
 
1101
	<div class="card" id="row-forms">
1102
    <div class="container-fluid">
1102
	 	
1103
        <div class="row mb-2">
-
 
1104
            <div class="col-sm-12">
1103
	 	<div class="card-body">
1105
                <h1>LABEL_FORM_BUILDER</h1>
-
 
1106
            </div>
-
 
1107
        </div>
-
 
1108
    </div>
-
 
1109
    <!-- /.container-fluid -->
-
 
1110
</section>
-
 
1111
<section class="content">
-
 
1112
    <div class="container-fluid" id="row-forms">
1104
	 		<h6 class="card-title">LABEL_FORM_BUILDER</h6>
1113
        <div class="row">
1105
	 		<div class="row">
1114
            <div class="col-12">
-
 
1115
                <div class="card">
-
 
1116
                    <div class="card-body">
1106
	 	         <div class="col-12 mt-3">
1117
                        <table id="tableForm" class="table   table-bordered">
1107
	 	         	<table id="tableForm" class="table   table-bordered">
1118
                            <thead>
1108
                            <thead>
1119
                                <tr>
1109
                                <tr>
1120
                                    <th>LABEL_NAME</th>
1110
                                    <th>LABEL_NAME</th>
1121
                                    <th>LABEL_ACTIVE</th>
1111
                                    <th>LABEL_ACTIVE</th>
1122
                                    <th>LABEL_ACTIONS</th>
1112
                                    <th>LABEL_ACTIONS</th>
1123
                                </tr>
1113
                                </tr>
1124
                            </thead>
1114
                            </thead>
1125
                            <tbody></tbody>
1115
                            <tbody></tbody>
1126
                        </table>
1116
                        </table>
1127
                    </div>
1117
	 	         </div>
-
 
1118
	 	     </div>
1128
                    <div class="card-footer clearfix">
1119
	 	</div>
1129
                        <div style="float:right;">
1120
	 	<div class="card-footer text-right">
1130
                            <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
1121
    		<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
1131
                            <?php if ($allowAdd) : ?>
1122
        	<?php if ($allowAdd) : ?>
1132
                                <button type="button" class="btn btn-primary btn-add-form"><i class="fa fa-plus"></i> LABEL_ADD </button>
-
 
1133
                            <?php endif; ?>
-
 
1134
                        </div>
-
 
1135
                    </div>
1123
         	<button type="button" class="btn btn-primary btn-add-form"><i class="fa fa-plus"></i> LABEL_ADD </button>
1136
                </div>
-
 
1137
            </div>
1124
       		<?php endif; ?>
1138
        </div>
1125
	 	</div>
1139
    </div>
-
 
1140
 
-
 
1141
    <!-- Create/Edit Form -->
1126
	</div>
1142
 
1127
	
1143
    <div class="row" id="row-edit" style="display: none">
-
 
1144
        <div class="col-xs-12 col-md-12">
1128
	<div class="card"  id="row-edit" style="display: none">
1145
            <form name="form-main" id="form-main">
1129
		<form name="form-main" id="form-main">
-
 
1130
		<input type="hidden" name="form-continue" id="form-continue" value="0" />
-
 
1131
	 	<div class="card-body">
1146
                <input type="hidden" name="form-continue" id="form-continue" value="0" />
1132
	 		<h6 class="card-title"></h6>
1147
                
1133
	 	     
-
 
1134
                <div class="row">
1148
                <div class="form-group">
1135
                    <div class="col-12 mt-3">
1149
                    <?php
1136
                    <?php
1150
                    $element = $form->get('name');
1137
                    $element = $form->get('name');
1151
                    $element->setOptions(['label' => 'LABEL_NAME']);
1138
                    $element->setOptions(['label' => 'LABEL_NAME']);
1152
                    $element->setAttributes(['class' => 'form-control']);
1139
                    $element->setAttributes(['class' => 'form-control']);
1153
                    echo $this->formLabel($element);
1140
                    echo $this->formLabel($element);
1154
                    echo $this->formText($element);
1141
                    echo $this->formText($element);
-
 
1142
                    ?>
1155
                    ?>
1143
                    </div>
Línea 1156... Línea 1144...
1156
                </div>
1144
                </div>
-
 
1145
 
1157
 
1146
                <div class="row">
1158
                <div class="form-group">
1147
                    <div class="col-12 mt-3">
1159
                    <?php
1148
                    <?php
1160
                    $element = $form->get('text');
1149
                    $element = $form->get('text');
1161
                    $element->setOptions(['label' => 'LABEL_TEXT']);
1150
                    $element->setOptions(['label' => 'LABEL_TEXT']);
1162
                    $element->setAttributes(['class' => 'form-control']);
1151
                    $element->setAttributes(['class' => 'form-control']);
1163
                    echo $this->formLabel($element);
1152
                    echo $this->formLabel($element);
-
 
1153
                    echo $this->formTextArea($element);
1164
                    echo $this->formTextArea($element);
1154
                    ?>
1165
                    ?>
1155
                    </div>
-
 
1156
                </div>
1166
                </div>
1157
                <div class="row">
1167
                <div class="form-group">
1158
                    <div class="col-12 mt-3">
1168
                    <?php
1159
                    <?php
1169
                    $element = $form->get('status');
1160
                    $element = $form->get('status');
1170
                    $element->setAttributes(['class' => 'form-control']);
1161
                    $element->setAttributes(['class' => 'form-control']);
1171
                    $element->setOptions(['label' => 'LABEL_STATUS']);
1162
                    $element->setOptions(['label' => 'LABEL_STATUS']);
1172
                    echo $this->formLabel($element);
1163
                    echo $this->formLabel($element);
1173
                    echo '<br>';    
1164
                    echo '<br>';    
-
 
1165
                    echo $this->formCheckbox($element);
1174
                    echo $this->formCheckbox($element);
1166
                    ?>
1175
                    ?>
-
 
1176
                </div>
1167
                    </div>
1177
                <br />
1168
                </div>
1178
                <div class="row">
1169
                <div class="row">
1179
                    <div class="col-xs-12 col-md-12 text-right">
1170
                    <div class="col-12 mt-3">
1180
                        <button class="btn btn-primary" id="btn-add-section" data-toggle="tooltip" title="LABEL_ADD LABEL_SECTION"><i class="fa fa-plus" aria-hidden="true"></i> LABEL_ADD LABEL_SECTION</button>
1171
                        <button class="btn btn-primary" id="btn-add-section" data-toggle="tooltip" title="LABEL_ADD LABEL_SECTION"><i class="fa fa-plus" aria-hidden="true"></i> LABEL_ADD LABEL_SECTION</button>
1181
                    </div>
-
 
1182
                </div>
1172
                    </div>
1183
                <br />
1173
                </div>
1184
                <div class="row">
1174
                <div class="row">
1185
                    <div class="col-xs-12 col-md-12">
1175
                    <div class="col-12 mt-3">
1186
                        <div class="panel-group" id="containter-sections"></div>
1176
                        <div class="panel-group" id="containter-sections"></div>
-
 
1177
                    </div>
1187
                    </div>
1178
                </div>
1188
                </div>
1179
	 	</div>
1189
                <div class="form-group">
1180
	 	<div class="card-footer text-right">
1190
                    <button type="button" id="btn-form-save-continue" class="btn btn-info ">LABEL_SAVE & LABEL_CONTINUE</button>
1181
	 	    <button type="button" id="btn-form-save-continue" class="btn btn-info ">LABEL_SAVE & LABEL_CONTINUE</button>
1191
                    <button type="button" id="btn-form-save-close" class="btn btn-primary ">LABEL_SAVE & LABEL_CLOSE</button>
1182
   			<button type="button" id="btn-form-save-close" class="btn btn-primary ">LABEL_SAVE & LABEL_CLOSE</button>
1192
                    <button type="button" id="btn-edit-cancel" class="btn btn-light ">LABEL_CANCEL</button>
1183
   			<button type="button" id="btn-edit-cancel" class="btn btn-light ">LABEL_CANCEL</button>
1193
                </div>
1184
	 	</div>
-
 
1185
	 	 </form>
1194
            </form>
1186
	</div>
-
 
1187
	
Línea 1195... Línea -...
1195
        </div>
-
 
Línea 1196... Línea -...
1196
    </div>
-
 
1197
 
1188
</div>
1198
    <!-- Create/Edit Form-->
1189
 
1199
 
1190
 
1200
    <!-- Section Modal -->
1191
 
1201
    <div id="modal-section" class="modal" tabindex="-1" role="dialog">
1192
    <div id="modal-section" class="modal" tabindex="-1" role="dialog">
Línea 1218... Línea 1209...
1218
                            <label for="section-text">LABEL_TEXT</label>
1209
                            <label for="section-text">LABEL_TEXT</label>
1219
                            <!--  ckeditor -->
1210
                            <!--  ckeditor -->
1220
                            <textarea name="section-text" id="section-text" rows="5" class="ckeditor form-control"></textarea>
1211
                            <textarea name="section-text" id="section-text" rows="5" class="ckeditor form-control"></textarea>
1221
                        </div>
1212
                        </div>
1222
                    </div>
1213
                    </div>
1223
                    <div class="modal-footer">
1214
                    <div class="modal-footer text-right">
1224
                        <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1215
                        <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1225
                        <button type="button" class="btn btn-light" data-dismiss="modal">LABEL_CLOSE</button>
1216
                        <button type="button" class="btn btn-light" data-dismiss="modal">LABEL_CLOSE</button>
1226
                    </div>
1217
                    </div>
1227
                </div>
1218
                </div>
1228
            </form>
1219
            </form>
Línea 1258... Línea 1249...
1258
                                <option value="range1to5">LABEL_RANGE_1_5</option>
1249
                                <option value="range1to5">LABEL_RANGE_1_5</option>
Línea 1259... Línea 1250...
1259
 
1250
 
1260
                            </select>
1251
                            </select>
1261
                        </div>
1252
                        </div>
1262
                    </div>
1253
                    </div>
1263
                    <div class="modal-footer">
1254
                    <div class="modal-footer text-right">
1264
                        <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1255
                        <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1265
                        <button type="button" class="btn btn-light" data-dismiss="modal">LABEL_CLOSE</button>
1256
                        <button type="button" class="btn btn-light" data-dismiss="modal">LABEL_CLOSE</button>
1266
                    </div>
1257
                    </div>
1267
                </div>
1258
                </div>
Línea 1291... Línea 1282...
1291
                            <label for="option-text">LABEL_TEXT</label>
1282
                            <label for="option-text">LABEL_TEXT</label>
1292
                            <!--  ckeditor -->
1283
                            <!--  ckeditor -->
1293
                            <textarea name="option-text" id="option-text" rows="5" class="ckeditor form-control"></textarea>
1284
                            <textarea name="option-text" id="option-text" rows="5" class="ckeditor form-control"></textarea>
1294
                        </div>
1285
                        </div>
1295
                    </div>
1286
                    </div>
1296
                    <div class="modal-footer">
1287
                    <div class="modal-footer text-right">
1297
                        <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1288
                        <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1298
                        <button type="button" class="btn btn-light" data-dismiss="modal">LABEL_CLOSE</button>
1289
                        <button type="button" class="btn btn-light" data-dismiss="modal">LABEL_CLOSE</button>
1299
                    </div>
1290
                    </div>
1300
                </div>
1291
                </div>
1301
            </form>
1292
            </form>
1302
        </div>
1293
        </div>
1303
    </div>
1294
    </div>
Línea 1304... Línea -...
1304
 
-
 
1305
 
-
 
Línea 1306... Línea 1295...
1306
</section>
1295
 
1307
 
1296