Add occurrence checklist submodule
This commit is contained in:
1 parent
5dbbac35c3
commit
f9b5383ae9
12 files changed
+254
-2
No files matched your search
@@ -63,6 +63,13 @@ if ($requestMethod === 'POST') {
|
||||
$day = market_management_delete_day($pdo, $id);
|
||||
echo json_encode(['ok' => true, 'day' => $day]);
|
||||
exit;
|
||||
} elseif (($payload['action'] ?? '') === 'update_checklist') {
|
||||
$checklist = market_management_update_occurrence_checklist($pdo, $id, [
|
||||
'items' => $payload['items'] ?? null,
|
||||
'comment' => $payload['comment'] ?? null,
|
||||
]);
|
||||
echo json_encode(['ok' => true, 'checklist' => $checklist], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
|
||||
exit;
|
||||
} elseif ($scope === 'day') {
|
||||
market_management_update_day($pdo, $id, $fields);
|
||||
} elseif (in_array($scope, ['occurrence', 'status', 'overview', 'participation', 'infrastructure', 'travel', 'notes'], true)) {
|
||||
|
||||
@@ -431,6 +431,36 @@ body.sg-lager-mobile-detail-open > :not([data-lager-mobile-detail-host]) {
|
||||
color: var(--color-white);
|
||||
}
|
||||
|
||||
.market-checklist-list,
|
||||
.market-checklist-edit-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-small);
|
||||
}
|
||||
|
||||
.market-checklist-item,
|
||||
.market-checklist-edit-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-small);
|
||||
}
|
||||
|
||||
.market-checklist-edit-item [data-checklist-label] {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.market-checklist-delete {
|
||||
min-width: var(--small-interaction-element-size);
|
||||
width: var(--small-interaction-element-size);
|
||||
padding-inline: 0;
|
||||
}
|
||||
|
||||
.market-checklist-comment,
|
||||
.market-checklist-comment-field {
|
||||
margin-top: var(--spacing-large);
|
||||
}
|
||||
|
||||
.market-required-field-indicator {
|
||||
position: relative;
|
||||
top: -0.25em;
|
||||
|
||||
Reference in new issue
Block a user