Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16843 Rev 16867
Línea 9... Línea 9...
9
$currentUser = $currentUserHelper->getUser();
9
$currentUser = $currentUserHelper->getUser();
10
$currentCompany = $currentUserHelper->getCompany();
10
$currentCompany = $currentUserHelper->getCompany();
Línea 11... Línea 11...
11
 
11
 
Línea 12... Línea 12...
12
$roleName = $currentUserHelper->getUserTypeId();
12
$roleName = $currentUserHelper->getUserTypeId();
13
 
13
 
14
$routeWebsite = $this->url('profile/website', [ 'id' => $currentCompany->uuid]);
14
$routeWebsite = $this->url('profile/website', ['id' => $currentCompany->uuid]);
15
$routeCompanySize = $this->url('profile/company-size', [ 'id' => $currentCompany->uuid]);
15
$routeCompanySize = $this->url('profile/company-size', ['id' => $currentCompany->uuid]);
16
$routeIndustry = $this->url('profile/industry', [ 'id' => $currentCompany->uuid]);
16
$routeIndustry = $this->url('profile/industry', ['id' => $currentCompany->uuid]);
17
$routeExtended = $this->url('profile/extended', [ 'id' => $currentCompany->uuid]);
17
$routeExtended = $this->url('profile/extended', ['id' => $currentCompany->uuid]);
18
$routeSocialNetworks = $this->url('profile/social-network', [ 'id' => $currentCompany->uuid]);
18
$routeSocialNetworks = $this->url('profile/social-network', ['id' => $currentCompany->uuid]);
19
$routeLocationAdd = $this->url('profile/location', [ 'id' => $currentCompany->uuid, 'operation' => 'add']);
19
$routeLocationAdd = $this->url('profile/location', ['id' => $currentCompany->uuid, 'operation' => 'add']);
20
$routeFoundationYear = $this->url('profile/foundation_year', [ 'id' => $currentCompany->uuid, 'operation' => 'add']);
20
$routeFoundationYear = $this->url('profile/foundation_year', ['id' => $currentCompany->uuid, 'operation' => 'add']);
Línea 21... Línea 21...
21
$routeImageUpload = $this->url('profile/image', [ 'id' => $currentCompany->uuid, 'operation' => 'upload']);
21
$routeImageUpload = $this->url('profile/image', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
Línea 22... Línea 22...
22
$routeCoverUpload = $this->url('profile/cover', [ 'id' => $currentCompany->uuid, 'operation' => 'upload']);
22
$routeCoverUpload = $this->url('profile/cover', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
Línea 1129... Línea 1129...
1129
 
1129
 
Línea 1130... Línea 1130...
1130
?>
1130
?>
1131
 
1131
 
1132
<!-- Content Header (Page header) -->
-
 
1133
<section class="content-header">
1132
<!-- Content Header (Page header) -->
1134
	<div class="container-fluid">
-
 
1135
    	<div class="row mb-2">
1133
<section class="content-header">
1136
        	<div class="col-sm-12">
-
 
1137
            	<h1>LABEL_PROFILE</h1>
-
 
1138
			</div>
-
 
1139
		</div>
-
 
1140
	</div><!-- /.container-fluid -->
-
 
1141
</section>
-
 
1142
 
-
 
1143
<input type="text" name="test" id="test" style="display: none">
-
 
1144
 
-
 
Línea 1145... Línea 1134...
1145
<div class="row">
1134
    <div class="container">
1146
	<div class="col-12">
-
 
1147
 
-
 
1148
        <section class="cover-sec">
1135
        <h6 class="card-title">LABEL_PROFILE</h6>
1149
        	<img
-
 
-
 
1136
 
1150
        		id="user-cover-img"
1137
        <section class="cover-sec">
1151
        		src="<?php echo $this->url('storage', ['type' => 'company-cover', 'code' => $currentCompany->uuid, 'filename' => $cover]) ?>"
-
 
1152
        		alt="">
-
 
1153
        	<div class="add-pic-box change-cover-image">
-
 
1154
        		<div class="container">
1138
            <img id="user-cover-img" src="<?php echo $this->url('storage', ['type' => 'company-cover', 'code' => $currentCompany->uuid, 'filename' => $cover]) ?>" alt="">
1155
        			<div class="row no-gutters">
1139
 
1156
        				<div class="col-lg-12 col-sm-12">
1140
            <div class="add-pic-box change-cover-image">
1157
        					<a href="#" class="btn-cover-open">
1141
                <a href="#" class="btn-cover-open">
1158
                                <i	class="fa fa-camera"></i>
-
 
1159
                            </a>
-
 
1160
        				</div>
-
 
1161
        			</div>
1142
                    <i class="fa fa-camera"></i>
1162
        		</div>
-
 
1163
        	</div>
-
 
Línea -... Línea 1143...
-
 
1143
                </a>
-
 
1144
            </div>
-
 
1145
        </section>
-
 
1146
 
-
 
1147
        <div class="row">
-
 
1148
            <div class="col-lg-3">
-
 
1149
                <div class="main-left-sidebar">
-
 
1150
                    <div class="user_profile">
-
 
1151
                        <div class="user-pro-img">
-
 
1152
                            <img id="company-img" src="<?php echo $this->url('storage', ['type' => 'company', 'code' => $currentCompany->uuid, 'filename' => $image]) ?>" alt="">
-
 
1153
                            <div class="add-dp" id="OpenImgUpload">
-
 
1154
                                <a href="#" class="btn-image-open">
-
 
1155
                                    <i class="fa fa-camera"></i></a>
-
 
1156
                            </div>
-
 
1157
                        </div>
-
 
1158
                        <!--user-pro-img end-->
-
 
1159
                        <div class="user_pro_status">
-
 
1160
                            <ul class="flw-status list-unstyled">
-
 
1161
                                <li><span>LABEL_FOLLOWERS</span> <b><?php echo $follower ?></b>
-
 
1162
                                </li>
-
 
1163
                            </ul>
-
 
1164
                        </div>
-
 
1165
                        <!--user_pro_status end-->
-
 
1166
                        <div class="user-social-network-ov">
-
 
1167
                            <h3>
-
 
1168
                                LABEL_SOCIAL_NETWORKS <a href="#" title="" class="btn-social-network-edit"><i class="fa fa-pencil"></i></a>
-
 
1169
                            </h3>
-
 
1170
                        </div>
-
 
1171
 
-
 
1172
                        <ul id="social-networks" class="social_links list-unstyled">
-
 
1173
                            <?php
-
 
1174
                            $l = strlen($facebook);
-
 
1175
                            if ($l > 32) {
-
 
1176
                                $s = substr($facebook, 0, 32) . '...';
-
 
1177
                            } else {
-
 
1178
                                $s = $facebook;
-
 
1179
                            }
-
 
1180
                            ?>
-
 
1181
                            <li><a href="<?php echo $facebook ?>" target="_blank" title=""><i class="fa fa-facebook-square btn-social-network-edit"></i> <?php echo $s ?></a></li>
-
 
1182
 
-
 
1183
                            <?php
-
 
1184
                            $l = strlen($twitter);
-
 
1185
                            if ($l > 32) {
-
 
1186
                                $s = substr($twitter, 0, 32) . '...';
-
 
1187
                            } else {
-
 
1188
                                $s = $twitter;
-
 
1189
                            }
-
 
1190
                            ?>
-
 
1191
                            <li><a href="<?php echo $twitter ?>" title="" target="_blank">
-
 
1192
                                    <i class="fa fa-twitter btn-social-network-edit"></i>
-
 
1193
                                    <?php echo $s ?></a></li>
-
 
1194
                            <?php
-
 
1195
 
-
 
1196
                            $l = strlen($instagram);
-
 
1197
                            if ($l > 32) {
-
 
1198
                                $s = substr($instagram, 0, 32) . '...';
-
 
1199
                            } else {
Línea 1313... Línea 1291...
1313
						</div>
1291
            <!--right-sidebar end-->
1314
						<!--right-sidebar end-->
1292
        </div>
1315
					</div>
1293
 
1316
						<!--right-sidebar end-->
1294
    </div>
1317
					</div>
1295
</section>
1318
 
1296
 
1319
<div class="modal" tabindex="-1" role="dialog" id="extended-box">
1297
<div class="modal" tabindex="-1" role="dialog" id="extended-box">
1320
	<div class="modal-dialog" role="document">
1298
    <div class="modal-dialog" role="document">
1321
		<?php
1299
        <?php
1322
        $form = $this->formExtended;
1300
        $form = $this->formExtended;
1323
        $form->setAttributes([
1301
        $form->setAttributes([
1324
            'method' => 'post',
1302
            'method' => 'post',
1325
            'action' => $routeExtended,
1303
            'action' => $routeExtended,
1326
            'name' => 'form-extended',
1304
            'name' => 'form-extended',
1327
            'id' => 'form-extended'
1305
            'id' => 'form-extended'
1328
        ]);
1306
        ]);
1329
        $form->prepare();
1307
        $form->prepare();
1330
        echo $this->form()->openTag($form);
1308
        echo $this->form()->openTag($form);
1331
        ?> 
1309
        ?>
1332
    	<div class="modal-content">
1310
        <div class="modal-content">
1333
      		<div class="modal-header">
1311
            <div class="modal-header">
1334
        		<h3 class="modal-title">LABEL_CHANGE</h3>
1312
                <h3 class="modal-title">LABEL_CHANGE</h3>
1335
      		</div>
1313
            </div>
1336
          	<div class="modal-body">
1314
            <div class="modal-body">
1337
                <div class="form-group">
1315
                <div class="form-group">
1338
    			<?php 
1316
                    <?php
1339
                $element = $form->get('description');
1317
                    $element = $form->get('description');
1340
                $element->setAttributes(['class' => 'form-control']); 
1318
                    $element->setAttributes(['class' => 'form-control']);
1341
                $element->setOptions(['label' => 'LABEL_OVERVIEW']);
1319
                    $element->setOptions(['label' => 'LABEL_OVERVIEW']);
1342
                echo $this->formLabel($element);
1320
                    echo $this->formLabel($element);
1343
                echo $this->formTextArea($element);
1321
                    echo $this->formTextArea($element);
1344
                ?>
1322
                    ?>
1345
                </div>
1323
                </div>
1346
          	</div>
1324
            </div>
1347
         	<div class="modal-footer">
1325
            <div class="modal-footer">
1348
    			<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1326
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
Línea 1349... Línea 1327...
1349
    			<button type="button" class="btn btn-default btn-extended-close">LABEL_CANCEL</button>
1327
                <button type="button" class="btn btn-default btn-extended-close">LABEL_CANCEL</button>
1350
          	</div>
1328
            </div>
1351
      	<?php echo $this->form()->closeTag($form); ?>	
1329
            <?php echo $this->form()->closeTag($form); ?>
1352
    	</div>
1330
        </div>
1353
	</div>
1331
    </div>
1354
</div>
1332
</div>
1355
 
1333
 
1356
<div class="modal" tabindex="-1" role="dialog" id="foundation-year-box">
1334
<div class="modal" tabindex="-1" role="dialog" id="foundation-year-box">
1357
	<div class="modal-dialog" role="document">
1335
    <div class="modal-dialog" role="document">
1358
		<?php
1336
        <?php
1359
        $form = $this->formFoundationYear;
1337
        $form = $this->formFoundationYear;
1360
        $form->setAttributes([
1338
        $form->setAttributes([
1361
            'method' => 'post',
1339
            'method' => 'post',
1362
            'action' => $routeFoundationYear,
1340
            'action' => $routeFoundationYear,
1363
            'name' => 'form-foundation-year',
1341
            'name' => 'form-foundation-year',
1364
            'id' => 'form-foundation-year'
1342
            'id' => 'form-foundation-year'
1365
        ]);
1343
        ]);
1366
        $form->prepare();
1344
        $form->prepare();
1367
        echo $this->form()->openTag($form);
1345
        echo $this->form()->openTag($form);
1368
        ?> 
1346
        ?>
1369
    	<div class="modal-content">
1347
        <div class="modal-content">
1370
      		<div class="modal-header">
1348
            <div class="modal-header">
1371
        		<h3 class="modal-title">LABEL_CHANGE</h3>
1349
                <h3 class="modal-title">LABEL_CHANGE</h3>
1372
      		</div>
1350
            </div>
1373
          	<div class="modal-body">
1351
            <div class="modal-body">
1374
                <div class="form-group">
1352
                <div class="form-group">
1375
    			<?php 
1353
                    <?php
1376
                $element = $form->get('foundation_year');
1354
                    $element = $form->get('foundation_year');
1377
                $element->setAttributes(['class' => 'form-control']); 
1355
                    $element->setAttributes(['class' => 'form-control']);
1378
                $element->setOptions(['label' => 'LABEL_FOUNDATION_YEAR']);
1356
                    $element->setOptions(['label' => 'LABEL_FOUNDATION_YEAR']);
1379
                echo $this->formLabel($element);
1357
                    echo $this->formLabel($element);
1380
                echo $this->formText($element);
1358
                    echo $this->formText($element);
1381
                ?>
1359
                    ?>
1382
                </div>
1360
                </div>
1383
          	</div>
1361
            </div>
1384
         	<div class="modal-footer">
1362
            <div class="modal-footer">
Línea 1385... Línea 1363...
1385
    			<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1363
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1386
    			<button type="button" class="btn btn-default btn-fondation-year-close">LABEL_CANCEL</button>
1364
                <button type="button" class="btn btn-default btn-fondation-year-close">LABEL_CANCEL</button>
1387
          	</div>
1365
            </div>
1388
      	<?php echo $this->form()->closeTag($form); ?>	
1366
            <?php echo $this->form()->closeTag($form); ?>
1389
    	</div>
1367
        </div>
1390
	</div>
1368
    </div>
1391
</div>
1369
</div>
1392
 
1370
 
1393
<div class="modal" tabindex="-1" role="dialog" id="website-box">
1371
<div class="modal" tabindex="-1" role="dialog" id="website-box">
1394
	<div class="modal-dialog" role="document">
1372
    <div class="modal-dialog" role="document">
1395
		<?php
1373
        <?php
1396
        $form = $this->formWebsite;
1374
        $form = $this->formWebsite;
1397
        $form->setAttributes([
1375
        $form->setAttributes([
1398
            'method' => 'post',
1376
            'method' => 'post',
1399
            'action' => $routeWebsite,
1377
            'action' => $routeWebsite,
1400
            'name' => 'form-website',
1378
            'name' => 'form-website',
1401
            'id' => 'form-website'
1379
            'id' => 'form-website'
1402
        ]);
1380
        ]);
1403
        $form->prepare();
1381
        $form->prepare();
1404
        echo $this->form()->openTag($form);
1382
        echo $this->form()->openTag($form);
1405
        ?> 
1383
        ?>
1406
    	<div class="modal-content">
1384
        <div class="modal-content">
1407
      		<div class="modal-header">
1385
            <div class="modal-header">
1408
        		<h3 class="modal-title">LABEL_CHANGE</h3>
1386
                <h3 class="modal-title">LABEL_CHANGE</h3>
1409
      		</div>
1387
            </div>
1410
          	<div class="modal-body">
1388
            <div class="modal-body">
1411
                <div class="form-group">
1389
                <div class="form-group">
1412
    			<?php 
1390
                    <?php
1413
                $element = $form->get('website');
1391
                    $element = $form->get('website');
1414
                $element->setAttributes(['class' => 'form-control']); 
1392
                    $element->setAttributes(['class' => 'form-control']);
1415
                $element->setOptions(['label' => 'LABEL_WEBSITE']);
1393
                    $element->setOptions(['label' => 'LABEL_WEBSITE']);
1416
                echo $this->formLabel($element);
1394
                    echo $this->formLabel($element);
1417
                echo $this->formText($element);
1395
                    echo $this->formText($element);
1418
                ?>
1396
                    ?>
1419
                </div>
1397
                </div>
1420
          	</div>
1398
            </div>
Línea 1421... Línea 1399...
1421
         	<div class="modal-footer">
1399
            <div class="modal-footer">
1422
    			<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1400
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1423
    			<button type="button" class="btn btn-default btn-website-close">LABEL_CANCEL</button>
1401
                <button type="button" class="btn btn-default btn-website-close">LABEL_CANCEL</button>
1424
          	</div>
1402
            </div>
1425
      	<?php echo $this->form()->closeTag($form); ?>	
1403
            <?php echo $this->form()->closeTag($form); ?>
1426
    	</div>
1404
        </div>
1427
	</div>
1405
    </div>
1428
</div>
1406
</div>
1429
 
1407
 
1430
<div class="modal" tabindex="-1" role="dialog" id="industry-box">
1408
<div class="modal" tabindex="-1" role="dialog" id="industry-box">
1431
	<div class="modal-dialog" role="document">
1409
    <div class="modal-dialog" role="document">
1432
		<?php
1410
        <?php
1433
        $form = $this->formIndustry;
1411
        $form = $this->formIndustry;
1434
        $form->setAttributes([
1412
        $form->setAttributes([
1435
            'method' => 'post',
1413
            'method' => 'post',
1436
            'action' => $routeIndustry,
1414
            'action' => $routeIndustry,
1437
            'name' => 'form-industry',
1415
            'name' => 'form-industry',
1438
            'id' => 'form-industry'
1416
            'id' => 'form-industry'
1439
        ]);
1417
        ]);
1440
        $form->prepare();
1418
        $form->prepare();
1441
        echo $this->form()->openTag($form);
1419
        echo $this->form()->openTag($form);
1442
        ?> 
1420
        ?>
1443
    	<div class="modal-content">
1421
        <div class="modal-content">
1444
      		<div class="modal-header">
1422
            <div class="modal-header">
1445
        		<h3 class="modal-title">LABEL_CHANGE</h3>
1423
                <h3 class="modal-title">LABEL_CHANGE</h3>
1446
      		</div>
1424
            </div>
1447
          	<div class="modal-body">
1425
            <div class="modal-body">
1448
                <div class="form-group">
1426
                <div class="form-group">
1449
    			<?php 
1427
                    <?php
1450
                $element = $form->get('industry_id');
1428
                    $element = $form->get('industry_id');
1451
                $element->setAttributes(['class' => 'form-control']); 
1429
                    $element->setAttributes(['class' => 'form-control']);
1452
                $element->setOptions(['label' => 'LABEL_INDUSTRY']);
1430
                    $element->setOptions(['label' => 'LABEL_INDUSTRY']);
1453
                echo $this->formLabel($element);
1431
                    echo $this->formLabel($element);
1454
                echo $this->formSelect($element);
1432
                    echo $this->formSelect($element);
1455
                ?>
1433
                    ?>
1456
                </div>
1434
                </div>
Línea 1457... Línea 1435...
1457
          	</div>
1435
            </div>
1458
         	<div class="modal-footer">
1436
            <div class="modal-footer">
1459
    			<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1437
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1460
    			<button type="button" class="btn btn-default btn-industry-close">LABEL_CANCEL</button>
1438
                <button type="button" class="btn btn-default btn-industry-close">LABEL_CANCEL</button>
1461
          	</div>
1439
            </div>
1462
      	<?php echo $this->form()->closeTag($form); ?>	
1440
            <?php echo $this->form()->closeTag($form); ?>
1463
    	</div>
1441
        </div>
1464
	</div>
1442
    </div>
1465
</div>
1443
</div>
1466
 
1444
 
1467
<div class="modal" tabindex="-1" role="dialog" id="company-size-box">
1445
<div class="modal" tabindex="-1" role="dialog" id="company-size-box">
1468
	<div class="modal-dialog" role="document">
1446
    <div class="modal-dialog" role="document">
1469
		<?php
1447
        <?php
1470
        $form = $this->formCompanySize;
1448
        $form = $this->formCompanySize;
1471
        $form->setAttributes([
1449
        $form->setAttributes([
1472
            'method' => 'post',
1450
            'method' => 'post',
1473
            'action' => $routeCompanySize,
1451
            'action' => $routeCompanySize,
1474
            'name' => 'form-company-size',
1452
            'name' => 'form-company-size',
1475
            'id' => 'form-company-size'
1453
            'id' => 'form-company-size'
1476
        ]);
1454
        ]);
1477
        $form->prepare();
1455
        $form->prepare();
1478
        echo $this->form()->openTag($form);
1456
        echo $this->form()->openTag($form);
1479
        ?> 
1457
        ?>
1480
    	<div class="modal-content">
1458
        <div class="modal-content">
1481
      		<div class="modal-header">
1459
            <div class="modal-header">
1482
        		<h3 class="modal-title">LABEL_CHANGE</h3>
1460
                <h3 class="modal-title">LABEL_CHANGE</h3>
1483
      		</div>
1461
            </div>
1484
          	<div class="modal-body">
1462
            <div class="modal-body">
1485
                <div class="form-group">
1463
                <div class="form-group">
1486
    			<?php 
1464
                    <?php
1487
                $element = $form->get('company_size_id');
1465
                    $element = $form->get('company_size_id');
1488
                $element->setAttributes(['class' => 'form-control']); 
1466
                    $element->setAttributes(['class' => 'form-control']);
1489
                $element->setOptions(['label' => 'LABEL_COMPANY_SIZE']);
1467
                    $element->setOptions(['label' => 'LABEL_COMPANY_SIZE']);
1490
                echo $this->formLabel($element);
1468
                    echo $this->formLabel($element);
1491
                echo $this->formSelect($element);
1469
                    echo $this->formSelect($element);
1492
                ?>
1470
                    ?>
Línea 1493... Línea 1471...
1493
                </div>
1471
                </div>
1494
          	</div>
1472
            </div>
1495
         	<div class="modal-footer">
1473
            <div class="modal-footer">
1496
    			<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1474
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1497
    			<button type="button" class="btn btn-default btn-company-size-close">LABEL_CANCEL</button>
1475
                <button type="button" class="btn btn-default btn-company-size-close">LABEL_CANCEL</button>
1498
          	</div>
1476
            </div>
1499
      	<?php echo $this->form()->closeTag($form); ?>	
1477
            <?php echo $this->form()->closeTag($form); ?>
1500
    	</div>
1478
        </div>
1501
	</div>
1479
    </div>
1502
</div>
1480
</div>
1503
 
1481
 
1504
 
1482
 
1505
 
1483
 
1506
<div class="modal" tabindex="-1" role="dialog" id="location-box">
1484
<div class="modal" tabindex="-1" role="dialog" id="location-box">
1507
	<div class="modal-dialog" role="document">
1485
    <div class="modal-dialog" role="document">
1508
		<?php
1486
        <?php
1509
        $form = $this->formLocation;
1487
        $form = $this->formLocation;
1510
        $form->setAttributes([
1488
        $form->setAttributes([
Línea 1526... Línea 1504...
1526
            'city2',
1504
            'city2',
1527
            'postal_code',
1505
            'postal_code',
1528
            'latitude',
1506
            'latitude',
1529
            'longitude',
1507
            'longitude',
1530
        ];
1508
        ];
1531
        
1509
 
1532
        foreach($fieldnames as $fieldname) {
1510
        foreach ($fieldnames as $fieldname) {
1533
        
1511
 
1534
            $element = $form->get($fieldname);
1512
            $element = $form->get($fieldname);
1535
            echo $this->formHidden($element);
1513
            echo $this->formHidden($element);
1536
        }
1514
        }
1537
        ?>
1515
        ?>
1538
    	<div class="modal-content">
1516
        <div class="modal-content">
1539
      		<div class="modal-header">
1517
            <div class="modal-header">
1540
        		<h3 class="modal-title">LABEL_CHANGE</h3>
1518
                <h3 class="modal-title">LABEL_CHANGE</h3>
1541
      		</div>
1519
            </div>
1542
          	<div class="modal-body">
1520
            <div class="modal-body">
1543
    			<div class="form-group datefm">
1521
                <div class="form-group datefm">
1544
    				<?php 
1522
                    <?php
1545
                        $element = $form->get('location_search');
1523
                    $element = $form->get('location_search');
1546
                        $element->setAttributes(['class' => 'form-control']); 
1524
                    $element->setAttributes(['class' => 'form-control']);
1547
                        $element->setOptions(['label' => 'LABEL_LOCATION']);
1525
                    $element->setOptions(['label' => 'LABEL_LOCATION']);
1548
                        echo $this->formLabel($element);
1526
                    echo $this->formLabel($element);
1549
                        echo $this->formText($element);
1527
                    echo $this->formText($element);
1550
                    ?>
1528
                    ?>
1551
    				<i class="fa fa-map-marker"></i>
1529
                    <i class="fa fa-map-marker"></i>
1552
    			</div>
1530
                </div>
1553
    			<div class="form-group">
1531
                <div class="form-group">
1554
    				<?php 
1532
                    <?php
1555
                        $element = $form->get('is_main');
1533
                    $element = $form->get('is_main');
1556
                        echo $this->formCheckbox($element);
1534
                    echo $this->formCheckbox($element);
1557
                    ?>
1535
                    ?>
1558
    			</div>
1536
                </div>
1559
          	</div>
1537
            </div>
1560
         	<div class="modal-footer">
1538
            <div class="modal-footer">
1561
    			<button type="submit" class="btn btn-primary ">LABEL_SAVE</button>
1539
                <button type="submit" class="btn btn-primary ">LABEL_SAVE</button>
1562
    			<button type="button" class="btn btn-default btn-location-close">LABEL_CANCEL</button>
1540
                <button type="button" class="btn btn-default btn-location-close">LABEL_CANCEL</button>
1563
          	</div>
1541
            </div>
1564
      	<?php echo $this->form()->closeTag($form); ?>	
1542
            <?php echo $this->form()->closeTag($form); ?>
1565
    	</div>
1543
        </div>
1566
	</div>
1544
    </div>
1567
</div>
1545
</div>
Línea 1568... Línea 1546...
1568
 
1546
 
1569
<div class="modal" tabindex="-1" role="dialog" id="social-networks-box">
1547
<div class="modal" tabindex="-1" role="dialog" id="social-networks-box">
1570
	<div class="modal-dialog" role="document">
1548
    <div class="modal-dialog" role="document">
1571
		<?php
1549
        <?php
1572
        $form = $this->formSocialNetwork;
1550
        $form = $this->formSocialNetwork;
1573
        $form->setAttributes([
1551
        $form->setAttributes([
1574
            'method' => 'post',
1552
            'method' => 'post',
1575
            'action' => $routeSocialNetworks,
1553
            'action' => $routeSocialNetworks,
1576
            'name' => 'form-social-network',
1554
            'name' => 'form-social-network',
1577
            'id' => 'form-social-network'
1555
            'id' => 'form-social-network'
1578
        ]);
1556
        ]);
1579
        $form->prepare();
1557
        $form->prepare();
1580
        echo $this->form()->openTag($form);
1558
        echo $this->form()->openTag($form);
1581
        ?> 
1559
        ?>
1582
    	<div class="modal-content">
1560
        <div class="modal-content">
1583
      		<div class="modal-header">
1561
            <div class="modal-header">
1584
        		<h3 class="modal-title">LABEL_CHANGE</h3>
1562
                <h3 class="modal-title">LABEL_CHANGE</h3>
1585
      		</div>
1563
            </div>
Línea 1586... Línea 1564...
1586
          	<div class="modal-body">
1564
            <div class="modal-body">
1587
 
1565
 
1588
                <div class="form-group">
1566
                <div class="form-group">
1589
        			<?php 
1567
                    <?php
1590
                    $element = $form->get('facebook');
1568
                    $element = $form->get('facebook');
1591
                    $element->setAttributes(['class' => 'form-control']); 
1569
                    $element->setAttributes(['class' => 'form-control']);
1592
                    $element->setOptions(['label' => 'LABEL_FACEBOOK']);
1570
                    $element->setOptions(['label' => 'LABEL_FACEBOOK']);
1593
                    echo $this->formLabel($element);
1571
                    echo $this->formLabel($element);
1594
                    echo $this->formText($element);
1572
                    echo $this->formText($element);
1595
                ?>
1573
                    ?>
1596
                </div>
1574
                </div>
1597
                <div class="form-group">
1575
                <div class="form-group">
1598
        			<?php 
1576
                    <?php
1599
                    $element = $form->get('twitter');
1577
                    $element = $form->get('twitter');
1600
                    $element->setAttributes(['class' => 'form-control']); 
1578
                    $element->setAttributes(['class' => 'form-control']);
1601
                    $element->setOptions(['label' => 'LABEL_TWITTER']);
1579
                    $element->setOptions(['label' => 'LABEL_TWITTER']);
1602
                    echo $this->formLabel($element);
1580
                    echo $this->formLabel($element);
1603
                    echo $this->formText($element);
1581
                    echo $this->formText($element);
1604
                ?>
1582
                    ?>
1605
                </div>
1583
                </div>
1606
                <div class="form-group">
1584
                <div class="form-group">
1607
        			<?php 
1585
                    <?php
1608
                    $element = $form->get('instagram');
1586
                    $element = $form->get('instagram');
1609
                    $element->setAttributes(['class' => 'form-control']); 
1587
                    $element->setAttributes(['class' => 'form-control']);
1610
                    $element->setOptions(['label' => 'LABEL_INSTAGRAM']);
1588
                    $element->setOptions(['label' => 'LABEL_INSTAGRAM']);
1611
                    echo $this->formLabel($element);
1589
                    echo $this->formLabel($element);
-
 
1590
                    echo $this->formText($element);
-
 
1591
                    ?>
-
 
1592
                </div>
-
 
1593
                <div class="form-group">
-
 
1594
                </div>
-
 
1595
                <div class="modal-footer">
1612
                    echo $this->formText($element);
1596
                    <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1613
                ?>
-
 
1614
                </div>
1597
                    <button type="button" class="btn btn-default btn-social-network-close">LABEL_CANCEL</button>
1615
        		<div class="form-group">
-
 
1616
          	</div>
-
 
1617
         	<div class="modal-footer">
-
 
1618
    			<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
1619
    			<button type="button" class="btn btn-default btn-social-network-close">LABEL_CANCEL</button>
-
 
1620
          	</div>
1598
                </div>
1621
        	</div>  	
1599
            </div>
1622
      	<?php echo $this->form()->closeTag($form); ?>	
1600
            <?php echo $this->form()->closeTag($form); ?>
1623
    	</div>
1601
        </div>
Línea 1624... Línea 1602...
1624
	</div>
1602
    </div>
1625
</div>
1603
</div>
1626
 
1604
 
1627
 
1605
 
1628
 
1606
 
1629
 
1607
 
1630
<div class="modal" tabindex="-1" role="dialog" id="image-box">
1608
<div class="modal" tabindex="-1" role="dialog" id="image-box">
1631
	<div class="modal-dialog" role="document">
1609
    <div class="modal-dialog" role="document">
1632
	      		<?php 
1610
        <?php
1633
			$form = $this->formImage;
1611
        $form = $this->formImage;
1634
            $form->setAttributes([
1612
        $form->setAttributes([
1635
                'method' => 'post',
1613
            'method' => 'post',
1636
                'action' => $routeImageUpload,
1614
            'action' => $routeImageUpload,
1637
                'name' => 'form-image',
1615
            'name' => 'form-image',
1638
                'id' => 'form-image',
1616
            'id' => 'form-image',
1639
                'enctype' => 'multipart/form-data' 
1617
            'enctype' => 'multipart/form-data'
1640
            ]);
1618
        ]);
1641
            $form->prepare();
1619
        $form->prepare();
1642
            echo $this->form()->openTag($form);
1620
        echo $this->form()->openTag($form);
1643
            ?> 
1621
        ?>
1644
    	<div class="modal-content">
1622
        <div class="modal-content">
1645
      		<div class="modal-header">
1623
            <div class="modal-header">
1646
        		<h3 class="modal-title">LABEL_CHANGE</h3>
1624
                <h3 class="modal-title">LABEL_CHANGE</h3>
1647
      		</div>
1625
            </div>
1648
      		<div class="modal-body">
1626
            <div class="modal-body">
1649
	            <div class="form-group">
1627
                <div class="form-group">
1650
                   <div class="file-loading">
1628
                    <div class="file-loading">
1651
                 		<?php 
1629
                        <?php
1652
 
1630
 
1653
                            $element = $form->get('image');
1631
                        $element = $form->get('image');
1654
                            $element->setAttributes(['class' => 'form-control', 'accept' => 'image/jpeg,image/png']);
1632
                        $element->setAttributes(['class' => 'form-control', 'accept' => 'image/jpeg,image/png']);
1655
                            $element->setOptions(['label' => 'LABEL_IMAGE']);
1633
                        $element->setOptions(['label' => 'LABEL_IMAGE']);
1656
                            echo $this->formLabel($element);
1634
                        echo $this->formLabel($element);
1657
                            echo $this->formFile($element);
1635
                        echo $this->formFile($element);
1658
                        ?>
1636
                        ?>
1659
                    </div>
1637
                    </div>
1660
                </div>
1638
                </div>
1661
          	</div>
1639
            </div>
1662
          	
1640
 
1663
         	<div class="modal-footer">
1641
            <div class="modal-footer">
1664
    			<button type="submit" class="btn btn-primary">LABEL_UPLOAD</button>
1642
                <button type="submit" class="btn btn-primary">LABEL_UPLOAD</button>
Línea 1665... Línea 1643...
1665
    			<button type="button" class="btn btn-default btn-image-close">LABEL_CANCEL</button>
1643
                <button type="button" class="btn btn-default btn-image-close">LABEL_CANCEL</button>
1666
          	</div>
1644
            </div>
1667
      	<?php echo $this->form()->closeTag($form); ?>	
1645
            <?php echo $this->form()->closeTag($form); ?>
1668
    	</div>
1646
        </div>
1669
	</div>
1647
    </div>
1670
</div>
1648
</div>
1671
 
1649
 
1672
 
1650
 
1673
 
1651
 
1674
<div class="modal" tabindex="-1" role="dialog" id="cover-box">
1652
<div class="modal" tabindex="-1" role="dialog" id="cover-box">
1675
	<div class="modal-dialog" role="document">
1653
    <div class="modal-dialog" role="document">
1676
	      		<?php 
1654
        <?php
1677
			$form = $this->formCover;
1655
        $form = $this->formCover;
1678
            $form->setAttributes([
1656
        $form->setAttributes([
1679
                'method' => 'post',
1657
            'method' => 'post',
1680
                'action' => $routeCoverUpload,
1658
            'action' => $routeCoverUpload,
1681
                'name' => 'form-cover',
1659
            'name' => 'form-cover',
1682
                'id' => 'form-cover',
1660
            'id' => 'form-cover',
1683
                'enctype' => 'multipart/form-data' 
1661
            'enctype' => 'multipart/form-data'
1684
            ]);
1662
        ]);
1685
            $form->prepare();
1663
        $form->prepare();
1686
            echo $this->form()->openTag($form);
1664
        echo $this->form()->openTag($form);
1687
            ?> 
1665
        ?>
1688
    	<div class="modal-content">
1666
        <div class="modal-content">
1689
      		<div class="modal-header">
1667
            <div class="modal-header">
1690
        		<h3 class="modal-title">LABEL_CHANGE</h3>
1668
                <h3 class="modal-title">LABEL_CHANGE</h3>
1691
      		</div>
1669
            </div>
1692
      		<div class="modal-body">
1670
            <div class="modal-body">
-
 
1671
                <div class="form-group">
1693
	            <div class="form-group">
1672
                    <div class="file-loading">
1694
                    <div class="file-loading">
-
 
1695
                 		<?php 
-
 
1696
                            $element = $form->get('cover');
-
 
1697
                            $element->setAttributes(['class' => 'form-control', 'accept' => 'image/jpeg,image/png']);
-
 
1698
                            $element->setOptions(['label' => 'LABEL_COVER']);
-
 
1699
                            echo $this->formLabel($element);
-
 
1700
                            echo $this->formFile($element);
-
 
1701
                        ?>
-
 
1702
                </div>
-
 
1703
          	</div>
-
 
1704
          	
-
 
Línea -... Línea 1673...
-
 
1673
                        <?php
-
 
1674
                        $element = $form->get('cover');
-
 
1675
                        $element->setAttributes(['class' => 'form-control', 'accept' => 'image/jpeg,image/png']);
-
 
1676
                        $element->setOptions(['label' => 'LABEL_COVER']);
-
 
1677
                        echo $this->formLabel($element);
-
 
1678
                        echo $this->formFile($element);
-
 
1679
                        ?>
-
 
1680
                    </div>
1705
         	<div class="modal-footer">
1681
                </div>