v1.2.15
- [MAP] Container 교체 요청 이미 있으면 강조 (2). - [INSTALL WAIT LIST] 카테고리 타이틀 하드코딩.
This commit is contained in:
parent
151fd6b66d
commit
9a6b039060
|
|
@ -241,6 +241,16 @@ function getWaitCategoryColor($cat) {
|
||||||
default: return 'transparent';
|
default: return 'transparent';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 하드코딩
|
||||||
|
$categoryLabels = [
|
||||||
|
0 => 'No Category',
|
||||||
|
1 => 'To do list',
|
||||||
|
2 => 'Power Wash',
|
||||||
|
3 => 'Category 3',
|
||||||
|
4 => 'Category 4',
|
||||||
|
5 => 'Category 5'
|
||||||
|
];
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- drag and drop -->
|
<!-- drag and drop -->
|
||||||
|
|
@ -595,7 +605,7 @@ function getWaitCategoryColor($cat) {
|
||||||
foreach ($allCats as $i):
|
foreach ($allCats as $i):
|
||||||
$checked = in_array($i, $kw_categories ?? []) ? 'checked' : '';
|
$checked = in_array($i, $kw_categories ?? []) ? 'checked' : '';
|
||||||
?>
|
?>
|
||||||
<label class="cat-filter-dot-wrap">
|
<label class="cat-filter-dot-wrap" title="<?=htmlspecialchars($categoryLabels[$i] ?? '')?>">
|
||||||
<input type="checkbox" name="kw_category[]" value="<?=$i?>" <?=$checked?>>
|
<input type="checkbox" name="kw_category[]" value="<?=$i?>" <?=$checked?>>
|
||||||
<span class="cat-filter-dot" style="--cat-color:<?=getWaitCategoryColor($i)?>"></span>
|
<span class="cat-filter-dot" style="--cat-color:<?=getWaitCategoryColor($i)?>"></span>
|
||||||
</label>
|
</label>
|
||||||
|
|
@ -757,7 +767,7 @@ function getWaitCategoryColor($cat) {
|
||||||
border-radius:50%;
|
border-radius:50%;
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
background:<?=getWaitCategoryColor($row['iw_category'])?>;
|
background:<?=getWaitCategoryColor($row['iw_category'])?>;
|
||||||
" title="Category <?=$row['iw_category']?>"></span>
|
" title="<?=htmlspecialchars($categoryLabels[$row['iw_category']] ?? '')?>"></span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<small class="text-muted me-2">
|
<small class="text-muted me-2">
|
||||||
|
|
|
||||||
|
|
@ -741,7 +741,11 @@ function popup(){
|
||||||
|
|
||||||
<!-- BODY -->
|
<!-- BODY -->
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div id="simpleInstallMeta" class="alert alert-warning py-2 px-3 mb-3" style="display:none;">
|
<div id="simpleInstallMeta" class="alert alert-warning py-2 px-3 mb-3" style="display:none; font-size:13px;">
|
||||||
|
<div class="fw-bold mb-2 d-flex align-items-center gap-2">
|
||||||
|
<i class="bi bi-exclamation-triangle-fill"></i>
|
||||||
|
Existing Container Request Found
|
||||||
|
</div>
|
||||||
<div id="simpleInstallPhotoWrap" class="mb-3" style="display:none;">
|
<div id="simpleInstallPhotoWrap" class="mb-3" style="display:none;">
|
||||||
<div id="simpleInstallPhotoList" class="d-flex flex-wrap gap-2 mt-2"></div>
|
<div id="simpleInstallPhotoList" class="d-flex flex-wrap gap-2 mt-2"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,15 @@ const IW_CATEGORY_COLORS = {
|
||||||
4: '#fa9614',
|
4: '#fa9614',
|
||||||
5: '#9254de'
|
5: '#9254de'
|
||||||
};
|
};
|
||||||
|
// 하드코딩
|
||||||
|
const IW_CATEGORY_LABELS = {
|
||||||
|
0: 'No Category',
|
||||||
|
1: 'To do list',
|
||||||
|
2: 'Power Wash',
|
||||||
|
3: 'Category 3',
|
||||||
|
4: 'Category 4',
|
||||||
|
5: 'Category 5'
|
||||||
|
};
|
||||||
|
|
||||||
/* 슬라이드 이동 (100vw 기준) */
|
/* 슬라이드 이동 (100vw 기준) */
|
||||||
function goInstallWaitStep(step) {
|
function goInstallWaitStep(step) {
|
||||||
|
|
@ -452,7 +461,7 @@ function renderCategorySelector() {
|
||||||
wrap.innerHTML = `
|
wrap.innerHTML = `
|
||||||
<div class="iw-cat-box">
|
<div class="iw-cat-box">
|
||||||
${[0,1,2,3,4,5].map(i => `
|
${[0,1,2,3,4,5].map(i => `
|
||||||
<button type="button"
|
<button type="button" title="${IW_CATEGORY_LABELS[i] || ''}"
|
||||||
class="iw-cat-btn ${InstallWait.category == i ? 'active' : ''}"
|
class="iw-cat-btn ${InstallWait.category == i ? 'active' : ''}"
|
||||||
data-value="${i}"
|
data-value="${i}"
|
||||||
style="
|
style="
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue