/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
templates
/
Dashboard
/
UserAddresses
/
/var/www/vhosts/ihelp.ro/httpdocs/templates/Dashboard/UserAddresses
mkdir
upload
Name
Size
Mode
Actions
add.php
6816
0644
edit
dl
rm
edit.php
7405
0644
edit
dl
rm
index.php
8936
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/templates/Dashboard/UserAddresses/index.php
(8936B)
<?php $this->assign('title', __('Adrese')); ?> <?php $this->Breadcrumbs->reset()->add(__('Adrese'), null); $this->Breadcrumbs->prepend([ ['title' => __('Contul meu'), 'url' => ['controller' => 'Profiles', 'action' => 'view']], ]); $this->Breadcrumbs->prepend([ ['title' => __('Acasă'), 'url' => ['controller' => 'Pages', 'action' => 'home']], ]); ?> <div class="block__profile"> <div class="container"> <div class="block__breadcrumbs my-4"> <?php echo $this->Breadcrumbs->render() ?> </div> <div class="row"> <div class="col-12"> <h1> <?php echo __('Contul meu'); ?> </h1> </div> <aside class="col-lg-3"> <div class="side-nav profile-side-nav"> <?php echo $this->element('sidebar'); ?> </div> </aside> <div class="col-lg-9 pl-lg-0"> <div class="useraddresses index content profile-content"> <div class="d-flex mb-3"> <h3 class="my-auto"><?php echo __('Adrese'); ?></h3> <?php echo $this->Html->link(__('Adaugă adresă'), ['prefix' => 'Dashboard', 'controller' => 'UserAddresses', 'action' => 'add'], ['class' => 'btn full primary size-xs ml-auto']); ?> </div> <div class="profile-content-wrapper py-0"> <?php if (!empty($userAddresses)) : ?> <div class="rows-striped"> <?php foreach ($userAddresses as $userAddress) : ?> <div class="row"> <div class="col-12 col-md-8 px-md-0"> <h3> <?php echo h($userAddress->full_name); ?> <?php if (isset($userAddress->phone) && !empty($userAddress->phone)) { ?> - <?php echo h($userAddress->phone); ?> <?php } ?> </h3> <h4> <?php echo h($userAddress->address); ?> </h4> </div> <div class="col-12 col-md-4 pr-md-0 actions text-right my-auto"> <?php echo $this->Html->link(__('Modifică'), ['prefix' => 'Dashboard', 'controller' => 'UserAddresses', 'action' => 'edit', $userAddress->uuid], ['escape' => false, 'class' => 'btn outline secondary size-xs']); ?> <?php echo $this->Form->postLink(__('Șterge'), ['action' => 'changeStatus', $userAddress->uuid], ['confirm' => __('Ești sigur că vrei să modifici starea # {0}?', $userAddress->uuid), 'escape' => false, 'class' => 'btn outline primary size-xs has-svg']); ?> </div> </div> <?php endforeach; ?> </div> <?php /* ?> <div class="table-responsive"> <table class="table table-striped table-bordered"> <thead> <tr> <th><?php echo $this->Paginator->sort('full_name', __('Nume')); ?></th> <th><?php echo $this->Paginator->sort('phone', __('Telefon')); ?></th> <th><?php echo $this->Paginator->sort('address', __('Adresă')); ?></th> <th class="text-center"><?php echo $this->Paginator->sort('postal_code', __('Cod poștal')); ?></th> <th class="text-center"><?php echo $this->Paginator->sort('is_active', __('Activ')); ?></th> <th class="text-center"><?php echo $this->Paginator->sort('is_default', __('Implicit')); ?></th> <th class=" text-center"><?php echo __('Acțiuni'); ?></th> </tr> </thead> <tbody> <?php foreach ($userAddresses as $userAddress) : ?> <tr> <td><?php echo h($userAddress->full_name); ?></td> <td><?php echo h($userAddress->phone); ?></td> <td><?php echo h($userAddress->compact_address); ?></td> <td class="text-center"><?php echo h($userAddress->postal_code); ?></td> <td> <?php if ($userAddress->is_active) { ?> <div class="indicator text-center text-success"> <svg> <use xlink:href="#svg-circle-checked"></use> </svg> </div> <?php } else { ?> <div class="indicator text-center text-danger"> <svg> <use xlink:href="#svg-circle-unchecked"></use> </svg> </div> <?php } ?> </td> <td> <?php if ($userAddress->is_default) { ?> <div class="indicator text-center text-success"> <svg> <use xlink:href="#svg-circle-checked"></use> </svg> </div> <?php } else { ?> <div class="indicator text-center text-danger"> <svg> <use xlink:href="#svg-circle-unchecked"></use> </svg> </div> <?php } ?> </td> <td class="actions text-center"> <?php echo $this->Html->link('<svg><use xlink:href="#svg-edit"></use></svg>', ['prefix' => 'Dashboard', 'controller' => 'UserAddresses', 'action' => 'edit', $userAddress->uuid], ['escape' => false, 'class' => 'btn outline secondary size-xs has-svg']); ?> <?php echo $this->Form->postLink('<svg><use xlink:href="#svg-trash"></use></svg>', ['action' => 'changeStatus', $userAddress->uuid], ['confirm' => __('Ești sigur că vrei să modifici starea # {0}?', $userAddress->uuid), 'escape' => false, 'class' => 'btn outline primary size-xs has-svg']); ?> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> <?php */ ?> <?php echo $this->element('paginator'); ?> <?php else : ?> <?php echo __('Nu aveți adrese'); ?> <?php endif; ?> </div> </div> </div> </div> </div> </div>
Save
cmd:
run