V1.3.3
This commit is contained in:
parent
6b68ae0708
commit
5b9c8701ca
@ -599,15 +599,41 @@ $current_session_user = $_SESSION['user'] ?? '';
|
||||
.search-item {
|
||||
display: flex;
|
||||
gap: 0.9rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.search-item-main {
|
||||
display: flex;
|
||||
gap: 0.9rem;
|
||||
align-items: flex-start;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.item-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: flex-start;
|
||||
gap: 0.9rem;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.search-item-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.45rem;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.search-item-actions {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.search-item-actions .btn-modern {
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.item-preview {
|
||||
@ -773,11 +799,20 @@ $current_session_user = $_SESSION['user'] ?? '';
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.search-item {
|
||||
flex-direction: column;
|
||||
.search-item-main,
|
||||
.item-meta {
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.search-item-actions {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.search-item-actions .btn-modern {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.actions-row {
|
||||
justify-content: stretch;
|
||||
}
|
||||
@ -828,23 +863,25 @@ $current_session_user = $_SESSION['user'] ?? '';
|
||||
<?php else: ?>
|
||||
<?php foreach ($search_results as $result): ?>
|
||||
<div class="search-item">
|
||||
<div class="item-meta">
|
||||
<img src="https://cstone.space/uifimages/<?php echo htmlspecialchars($result['cl_scobjs_uuid'], ENT_QUOTES, 'UTF-8'); ?>.png" class="item-preview" alt="">
|
||||
<div>
|
||||
<strong class="item-name"><?php echo htmlspecialchars($result['cl_scobjs_name'], ENT_QUOTES, 'UTF-8'); ?></strong>
|
||||
<div class="item-submeta">
|
||||
<?php echo htmlspecialchars($result['cl_scobjs_type'], ENT_QUOTES, 'UTF-8'); ?>
|
||||
<?php if (!empty($result['cl_scobjs_subtype'])): ?> / <?php echo htmlspecialchars($result['cl_scobjs_subtype'], ENT_QUOTES, 'UTF-8'); ?><?php endif; ?><br>
|
||||
<?php echo htmlspecialchars($result['cl_scobjs_uuid'], ENT_QUOTES, 'UTF-8'); ?>
|
||||
<div class="search-item-main">
|
||||
<div class="item-meta">
|
||||
<img src="https://cstone.space/uifimages/<?php echo htmlspecialchars($result['cl_scobjs_uuid'], ENT_QUOTES, 'UTF-8'); ?>.png" class="item-preview" alt="">
|
||||
<div class="search-item-content">
|
||||
<strong class="item-name"><?php echo htmlspecialchars($result['cl_scobjs_name'], ENT_QUOTES, 'UTF-8'); ?></strong>
|
||||
<div class="item-submeta">
|
||||
<?php echo htmlspecialchars($result['cl_scobjs_type'], ENT_QUOTES, 'UTF-8'); ?>
|
||||
<?php if (!empty($result['cl_scobjs_subtype'])): ?> / <?php echo htmlspecialchars($result['cl_scobjs_subtype'], ENT_QUOTES, 'UTF-8'); ?><?php endif; ?><br>
|
||||
<?php echo htmlspecialchars($result['cl_scobjs_uuid'], ENT_QUOTES, 'UTF-8'); ?>
|
||||
</div>
|
||||
<form method="post" class="search-item-actions">
|
||||
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($csrf_token, ENT_QUOTES, 'UTF-8'); ?>">
|
||||
<input type="hidden" name="action" value="add_custom_item">
|
||||
<input type="hidden" name="obj_id" value="<?php echo (int) $result['cl_scobjs_id']; ?>">
|
||||
<button type="submit" class="btn-modern">Ajouter</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<form method="post">
|
||||
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($csrf_token, ENT_QUOTES, 'UTF-8'); ?>">
|
||||
<input type="hidden" name="action" value="add_custom_item">
|
||||
<input type="hidden" name="obj_id" value="<?php echo (int) $result['cl_scobjs_id']; ?>">
|
||||
<button type="submit" class="btn-modern">Ajouter</button>
|
||||
</form>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user