Files
2025-03-12 17:06:23 +01:00

5 lines
394 B
PHP

<?php $is_blocked = ($order_status->getType() != OrderStatusPeer::ST_PENDING || $order_status->getIsDefault()) ?>
<?php echo st_admin_checkbox_tag('order_status[is_default]', true, $order_status->getIsDefault(), array('disabled' => $is_blocked)) ?>
<?php if ($is_blocked && $order_status->getIsDefault()): ?>
<?php echo input_hidden_tag('order_status[is_default]', true) ?>
<?php endif; ?>