V1.3.3
This commit is contained in:
parent
6b68ae0708
commit
5b9c8701ca
@ -599,15 +599,41 @@ $current_session_user = $_SESSION['user'] ?? '';
|
|||||||
.search-item {
|
.search-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 0.9rem;
|
gap: 0.9rem;
|
||||||
align-items: center;
|
align-items: flex-start;
|
||||||
justify-content: space-between;
|
}
|
||||||
|
|
||||||
|
.search-item-main {
|
||||||
|
display: flex;
|
||||||
|
gap: 0.9rem;
|
||||||
|
align-items: flex-start;
|
||||||
|
min-width: 0;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-meta {
|
.item-meta {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: flex-start;
|
||||||
gap: 0.9rem;
|
gap: 0.9rem;
|
||||||
min-width: 0;
|
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 {
|
.item-preview {
|
||||||
@ -773,11 +799,20 @@ $current_session_user = $_SESSION['user'] ?? '';
|
|||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-item {
|
.search-item-main,
|
||||||
flex-direction: column;
|
.item-meta {
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.search-item-actions {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-item-actions .btn-modern {
|
||||||
|
width: 100%;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
.actions-row {
|
.actions-row {
|
||||||
justify-content: stretch;
|
justify-content: stretch;
|
||||||
}
|
}
|
||||||
@ -828,23 +863,25 @@ $current_session_user = $_SESSION['user'] ?? '';
|
|||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php foreach ($search_results as $result): ?>
|
<?php foreach ($search_results as $result): ?>
|
||||||
<div class="search-item">
|
<div class="search-item">
|
||||||
<div class="item-meta">
|
<div class="search-item-main">
|
||||||
<img src="https://cstone.space/uifimages/<?php echo htmlspecialchars($result['cl_scobjs_uuid'], ENT_QUOTES, 'UTF-8'); ?>.png" class="item-preview" alt="">
|
<div class="item-meta">
|
||||||
<div>
|
<img src="https://cstone.space/uifimages/<?php echo htmlspecialchars($result['cl_scobjs_uuid'], ENT_QUOTES, 'UTF-8'); ?>.png" class="item-preview" alt="">
|
||||||
<strong class="item-name"><?php echo htmlspecialchars($result['cl_scobjs_name'], ENT_QUOTES, 'UTF-8'); ?></strong>
|
<div class="search-item-content">
|
||||||
<div class="item-submeta">
|
<strong class="item-name"><?php echo htmlspecialchars($result['cl_scobjs_name'], ENT_QUOTES, 'UTF-8'); ?></strong>
|
||||||
<?php echo htmlspecialchars($result['cl_scobjs_type'], ENT_QUOTES, 'UTF-8'); ?>
|
<div class="item-submeta">
|
||||||
<?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_type'], ENT_QUOTES, 'UTF-8'); ?>
|
||||||
<?php echo htmlspecialchars($result['cl_scobjs_uuid'], 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>
|
</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>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user