Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 8bb6c828

Přidáno uživatelem Filip Miškařík před téměř 5 roky(ů)

refs #1144: Cancel termination of membership is available. Added delete icon into view show of member.

Zobrazit rozdíly:

application/controllers/members.php
if (!$member->id)
Controller::error(RECORD);
// acess
if ($member->type != Member_Model::TYPE_FORMER ||
// access
if ($member->leaving_date == '0000-00-00' ||
!$this->acl_check_edit(get_class($this), 'members', $member_id))
{
Controller::error(ACCESS);
}
try
{
application/views/members/show.php
<?php if ($this->acl_check_view('Members_Controller', 'leaving_date', $member->id) && $member->leaving_date != '0000-00-00') { ?>
<tr>
<th><?php echo __('Leaving date') ?></th>
<td><?php echo $member->leaving_date ?></td>
<td>
<?php
echo $member->leaving_date;
if ($member->type != Member_Model::TYPE_FORMER)
{
echo html::anchor(url_lang::base().'members/restore_membership/'.$member->id, html::image(array
(
'src' => url::base().'media/images/icons/grid_action/delete.png',
'style' => 'vertical-align:middle'
)), array('title' => __('Restore membership'), 'class' => 'action-icon popup_link'));
}
?>
</td>
</tr>
<?php } ?>
<?php if ($this->acl_check_view('Membership_transfers_Controller', 'membership_transfer', $member->id) && $membership_transfer_from_member): ?>

Také k dispozici: Unified diff