Skip to content

A free, self-hostable news aggregator…

fix: move disable button before remove button in user management (#8944)

Thomas Vermeer3161fd1333a9
diff --git a/app/views/user/details.phtml b/app/views/user/details.phtml
index 9dd55d737..ef0c5809c 100644
--- a/app/views/user/details.phtml
+++ b/app/views/user/details.phtml
@@ -75,7 +75,6 @@
<div class="group-controls">
<button type="submit" class="btn btn-important" name="action" value="update"><?= _t('gen.action.update') ?></button>
<button type="submit" class="btn btn-attention confirm" name="action" value="purge"<?= $disabledIfAjax ?>><?= _t('gen.action.purge') ?></button>
- <button type="submit" class="btn btn-attention confirm" name="action" value="delete"<?= $disabledIfAjax ?>><?= _t('gen.action.remove') ?></button>
<?php if ($isAdmin && !$isDefault): ?>
<button type="submit" class="btn btn-attention confirm" name="action" value="demote"<?= $disabledIfAjax ?>><?= _t('gen.action.demote') ?></button>
<?php elseif (!$isAdmin): ?>
@@ -86,6 +85,7 @@
<?php elseif (!$enabled): ?>
<button type="submit" class="btn btn-attention" name="action" value="enable"><?= _t('gen.action.enable') ?></button>
<?php endif; ?>
+ <button type="submit" class="btn btn-attention confirm" name="action" value="delete"<?= $disabledIfAjax ?>><?= _t('gen.action.remove') ?></button>
<div>
</div>
</form>