fix(helpdesk): align software products aside to core detail page standard
Use badge-list wrapper, <p><small> pattern, <hr> separators, and dt() for date formatting — matching the departments edit page convention. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -61,30 +61,29 @@ $active = (int) ($values['active'] ?? 1);
|
|||||||
<h2><?php e($values['code'] ?? ''); ?></h2>
|
<h2><?php e($values['code'] ?? ''); ?></h2>
|
||||||
<p><?php e(t('Software product')); ?></p>
|
<p><?php e(t('Software product')); ?></p>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
|
<div class="badge-list">
|
||||||
<dl class="app-details-aside-meta">
|
<?php if ($active): ?>
|
||||||
<dt><?php e(t('Status')); ?></dt>
|
<span class="badge" data-variant="success"><?php e(t('Active')); ?></span>
|
||||||
<dd>
|
<?php else: ?>
|
||||||
<span class="badge" data-variant="<?php e($active ? 'success' : 'neutral'); ?>">
|
<span class="badge" data-variant="neutral"><?php e(t('Inactive')); ?></span>
|
||||||
<?php e($active ? t('Active') : t('Inactive')); ?>
|
|
||||||
</span>
|
|
||||||
</dd>
|
|
||||||
|
|
||||||
<?php if (!empty($values['synced_at'])): ?>
|
|
||||||
<dt><?php e(t('Last synced')); ?></dt>
|
|
||||||
<dd><?php e($values['synced_at']); ?></dd>
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
<?php if (!empty($values['created_at'])): ?>
|
<?php if (!empty($values['bc_description'])): ?>
|
||||||
<dt><?php e(t('Created')); ?></dt>
|
<hr>
|
||||||
<dd><?php e($values['created_at']); ?></dd>
|
<p><small><?php e(t('BC description')); ?></small><br><?php e($values['bc_description']); ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
<?php if (!empty($values['synced_at'])): ?>
|
||||||
<?php if (!empty($values['updated_at'])): ?>
|
<hr>
|
||||||
<dt><?php e(t('Modified')); ?></dt>
|
<p><small><?php e(t('Last synced')); ?></small><br><?php e(dt($values['synced_at'])); ?></p>
|
||||||
<dd><?php e($values['updated_at']); ?></dd>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<hr>
|
||||||
</dl>
|
<?php if (!empty($values['created_at'])): ?>
|
||||||
|
<p><small><?php e(t('Created')); ?></small><br><?php e(dt($values['created_at'])); ?></p>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if (!empty($values['updated_at'])): ?>
|
||||||
|
<p><small><?php e(t('Modified')); ?></small><br><?php e(dt($values['updated_at'])); ?></p>
|
||||||
|
<?php endif; ?>
|
||||||
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user