fix job positions
This commit is contained in:
+14
-3
@@ -226,7 +226,7 @@
|
||||
border: 1px solid var(--line);
|
||||
background: #ffffff;
|
||||
height: 100%;
|
||||
padding: 1.75rem;
|
||||
padding: 1.75rem 1.75rem 3rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -266,6 +266,16 @@
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.opening-clicks {
|
||||
position: absolute;
|
||||
right: 1.25rem;
|
||||
bottom: 1rem;
|
||||
color: var(--ink-soft);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.opening-list {
|
||||
padding-left: 1.1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
@@ -347,7 +357,7 @@
|
||||
<hr class="rule mx-auto">
|
||||
<h2>Current Open Positions</h2>
|
||||
<p class="mb-0">Review the available roles below and apply by creating an account.</p>
|
||||
<p class="mb-0 fw-bold">All positions bellow are taking place at ISGL: 5 Courthouse Lane, Chelmsford, MA 01824</p>
|
||||
<p class="mb-0 fw-bold">All positions are non-paid and take place at ISGL: 5 Courthouse Lane, Chelmsford, MA 01824</p>
|
||||
</div>
|
||||
<div class="row g-4">
|
||||
<?php if (!empty($positions)): ?>
|
||||
@@ -378,7 +388,8 @@
|
||||
?>
|
||||
<p class="mb-4"><?= esc($descriptionPreview) ?></p>
|
||||
<?php endif; ?>
|
||||
<a class="btn-brand-sm" href="<?= site_url('careers/' . $position['position_id']) ?>">View Details <i class="fa fa-arrow-right"></i></a>
|
||||
<a class="btn-brand-sm" href="<?= site_url('careers/' . $position['position_id'] . '/details') ?>">View Details <i class="fa fa-arrow-right"></i></a>
|
||||
<div class="opening-clicks"><?= esc(number_format((int) ($position['details_click_count'] ?? 0))) ?> views</div>
|
||||
</article>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<?php if (session('error')): ?><div class="alert alert-danger"><?= esc(session('error')) ?></div><?php endif; ?>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered no-mgmt-sticky">
|
||||
<thead><tr><th>Title</th><th>Department</th><th>Location</th><th>Type</th><th>Status</th><th>Post Date</th><th>Actions</th></tr></thead>
|
||||
<thead><tr><th>Title</th><th>Department</th><th>Location</th><th>Type</th><th>Status</th><th>Post Date</th><th>Detail Clicks</th><th>Actions</th></tr></thead>
|
||||
<tbody>
|
||||
<?php foreach ($positions as $position): ?>
|
||||
<?php
|
||||
@@ -32,6 +32,7 @@
|
||||
<td><?= esc($position['employment_type'] ?? '') ?></td>
|
||||
<td><span class="badge <?= esc($statusBadgeClass) ?>"><?= esc(ucfirst($status)) ?></span></td>
|
||||
<td><?= !empty($position['posted_at']) ? esc(date('M j, Y', strtotime((string) $position['posted_at']))) : '—' ?></td>
|
||||
<td><?= esc(number_format((int) ($position['details_click_count'] ?? 0))) ?></td>
|
||||
<td>
|
||||
<a class="btn btn-sm btn-outline-primary" href="<?= site_url('administrator/job-postings/positions/' . $position['position_id'] . '/edit') ?>">Edit</a>
|
||||
<?php if ($status === 'open'): ?>
|
||||
|
||||
@@ -94,6 +94,7 @@ $renderPostingText = static function (?string $text): string {
|
||||
<?php if (!empty($position['location'])): ?> · <?= esc($position['location']) ?><?php endif; ?>
|
||||
<?php if (!empty($position['employment_type'])): ?> · <?= esc($position['employment_type']) ?><?php endif; ?>
|
||||
<?php if (!empty($position['posted_at'])): ?><br><?= esc(date('M j, Y', strtotime((string) $position['posted_at']))) ?><?php endif; ?>
|
||||
<br><?= esc(number_format((int) ($position['details_click_count'] ?? 0))) ?> views
|
||||
</p>
|
||||
<h2 class="h4 mt-4">Description</h2>
|
||||
<div><?= $renderPostingText($position['description'] ?? '') ?></div>
|
||||
|
||||
@@ -255,7 +255,7 @@
|
||||
<?php foreach ($openPositions as $position): ?>
|
||||
<?php
|
||||
$positionId = (string) ($position['position_id'] ?? '');
|
||||
$detailsUrl = site_url('careers/' . rawurlencode($positionId));
|
||||
$detailsUrl = site_url('careers/' . rawurlencode($positionId) . '/details');
|
||||
$applyUrl = site_url('careers/' . rawurlencode($positionId) . '/apply');
|
||||
$meta = array_filter([
|
||||
$position['department'] ?? '',
|
||||
@@ -278,6 +278,7 @@
|
||||
<?php if (!empty($position['description'])): ?>
|
||||
<div class="small text-muted"><?= esc($position['description']) ?></div>
|
||||
<?php endif; ?>
|
||||
<div class="small text-muted fw-semibold mt-2"><?= esc(number_format((int) ($position['details_click_count'] ?? 0))) ?> views</div>
|
||||
</div>
|
||||
<div class="d-flex align-items-start gap-2 flex-shrink-0">
|
||||
<a class="btn btn-outline-secondary btn-sm" href="<?= esc($detailsUrl) ?>">Details</a>
|
||||
|
||||
Reference in New Issue
Block a user