PHP_SMART_HOME_V3/app/views/templates/part/pluginButton.phtml

30 lines
1.1 KiB
PHTML
Raw Normal View History

2020-10-26 15:16:42 +00:00
<div class="col-12 col-md-6 col-xl-4 square-wrap">
2020-10-26 15:45:45 +00:00
<div class="rectangle-2">
<div class="square-content double <?php echo ($PLUGINSTATUS == false ? 'is-inactive' : ''); ?>">
<div class="row">
<div class="col-1">
<h5 class="fa">
<?php echo $PLUGINNAME ?>
</h5>
</div>
</div>
<div class="row">
<div class="col">
<form method="post" action="">
<input type="hidden" name="name" value="<?php echo $PLUGINNAME; ?>"/>
<input type="hidden" name="status" value="<?php echo ($PLUGINSTATUS == false ? "true" : "false"); ?>"/>
<a class="button is-primary m-1" onclick="$(this).closest('form').submit();"><?php echo ($PLUGINSTATUS == false ? $LANGMNG->get('b_approve') : $LANGMNG->get('b_disable')); ?></a>
2020-10-26 15:45:45 +00:00
</form>
</div>
<div class="col">
<form method="post" action="">
<input type="hidden" name="name" value="<?php echo $PLUGINNAME; ?>"/>
<input type="hidden" name="remove" value="1"/>
<a class="button is-primary m-1" onclick="$(this).closest('form').submit();"><?php $LANGMNG->echo('b_remove'); ?></a>
2020-10-26 15:45:45 +00:00
</form>
</div>
</div>
</div>
</div>
2020-10-26 15:16:42 +00:00
</div>