This will allow packages to be deleted that have no members.
<th>Start</th>
<th>End</th>
<th>Expire</th>
+ <th> </th>
+ <th> </th>
</tr>
</thead>
<tbody>
</td>
<td>
{if $p.status.value == 10}
- <a href="{$siteBaseUrl}{$settings.canonical_package_page}/{$p.package_slug}/" target="_blank">View Package</a>
+ <a href="{$siteBaseUrl}{$settings.canonical_package_page}/{$p.package_slug}/" target="_blank">View Package</a>
+ {/if}
+ </td>
+ <td>
+ {if !$lockedToMember}
+ <a
+ class="button button-secondary glm-button-small"
+ href="{$thisUrl}?page={$thisPage}&glm_action=index&option=delete&packageID={$p.id}"
+ >Delete</a>
{/if}
</td>
</tr>