|
|
@@ -75,15 +75,19 @@ sort-bandwidth="<?=$data[$key]['U_BANDWIDTH']?>" sort-disk="<?=$data[$key]['U_DI
|
|
|
<div class="actions-panel clearfix">
|
|
|
<div class="actions-panel__col actions-panel__edit shortcut-enter" key-action="href"><a href="/edit/package/?package=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('Editing Package')?>"><i class="fas fa-pencil-alt status-icon orange status-icon dim"></i></a></div>
|
|
|
<div class="actions-panel__col actions-panel__edit" key-action="href"><a href="/copy/package/?package=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('Copy')?>"><i class="fas fa-clone status-icon teal status-icon dim"></i></a></div>
|
|
|
- <div class="actions-panel__col actions-panel__delete shortcut-delete" key-action="js">
|
|
|
- <a id="delete_link_<?=$i?>" class="data-controls do_delete" title="<?=_('Delete')?>">
|
|
|
- <i class="fas fa-trash status-icon red status-icon dim do_delete"></i>
|
|
|
- <input type="hidden" name="delete_url" value="/delete/package/?package=<?=$key?>&token=<?=$_SESSION['token']?>" />
|
|
|
- <div id="delete_dialog_<?=$i?>" class="confirmation-text-delete hidden" title="<?=_('Confirmation')?>">
|
|
|
- <p class="confirmation"><?=sprintf(_('DELETE_PACKAGE_CONFIRMATION'),$key)?></p>
|
|
|
- </div>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
+ <? if ($key == 'default') {?>
|
|
|
+ <!-- Hide option to delete the default package -->
|
|
|
+ <? } else {?>
|
|
|
+ <div class="actions-panel__col actions-panel__delete shortcut-delete" key-action="js">
|
|
|
+ <a id="delete_link_<?=$i?>" class="data-controls do_delete" title="<?=_('Delete')?>">
|
|
|
+ <i class="fas fa-trash status-icon red status-icon dim do_delete"></i>
|
|
|
+ <input type="hidden" name="delete_url" value="/delete/package/?package=<?=$key?>&token=<?=$_SESSION['token']?>" />
|
|
|
+ <div id="delete_dialog_<?=$i?>" class="confirmation-text-delete hidden" title="<?=_('Confirmation')?>">
|
|
|
+ <p class="confirmation"><?=sprintf(_('DELETE_PACKAGE_CONFIRMATION'),$key)?></p>
|
|
|
+ </div>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ <? } ?>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|