Updated
This commit is contained in:
@@ -79,7 +79,12 @@ function scn01_render_landing($association_slug, $access) {
|
||||
$out .= '<textarea id="scn01_narrative" class="form-control" rows="6" placeholder="In your own words, describe what happened." disabled></textarea>';
|
||||
$out .= '</div>';
|
||||
|
||||
$out .= '<div class="scn01-carousel mt-3">';
|
||||
$out .= '<div class="scn01-filter mt-3">';
|
||||
$out .= '<label for="scn01-category"><strong>Category</strong></label>';
|
||||
$out .= '<select id="scn01-category" class="form-select"><option value="">All</option></select>';
|
||||
$out .= '</div>';
|
||||
|
||||
$out .= '<div class="scn01-carousel mt-2">';
|
||||
$out .= '<button type="button" id="scn01-prev" class="btn btn-sm btn-outline-secondary" aria-label="Previous scenario">←</button>';
|
||||
$out .= '<div id="scn01-card" class="scn01-card"></div>';
|
||||
$out .= '<button type="button" id="scn01-next" class="btn btn-sm btn-outline-secondary" aria-label="Next scenario">→</button>';
|
||||
@@ -107,8 +112,14 @@ function scn01_render_landing($association_slug, $access) {
|
||||
$out .= '<textarea id="scn01_narrative" name="narrative" class="form-control" rows="6" placeholder="In your own words, describe what happened."></textarea>';
|
||||
$out .= '</div>';
|
||||
|
||||
// Category filter
|
||||
$out .= '<div class="scn01-filter mt-3">';
|
||||
$out .= '<label for="scn01-category"><strong>Category</strong></label>';
|
||||
$out .= '<select id="scn01-category" class="form-select"><option value="">All</option></select>';
|
||||
$out .= '</div>';
|
||||
|
||||
// Carousel
|
||||
$out .= '<div class="scn01-carousel mt-3">';
|
||||
$out .= '<div class="scn01-carousel mt-2">';
|
||||
$out .= '<button type="button" id="scn01-prev" class="btn btn-sm btn-outline-secondary" aria-label="Previous scenario">←</button>';
|
||||
$out .= '<div id="scn01-card" class="scn01-card"></div>';
|
||||
$out .= '<button type="button" id="scn01-next" class="btn btn-sm btn-outline-secondary" aria-label="Next scenario">→</button>';
|
||||
|
||||
@@ -26,7 +26,7 @@ function scn01_handle_post($association_slug, $access) {
|
||||
$pinned[] = $id;
|
||||
}
|
||||
}
|
||||
$pinned = array_slice($pinned, 0, 5);
|
||||
$pinned = array_slice($pinned, 0, 3);
|
||||
}
|
||||
|
||||
if ($narrative === '') {
|
||||
|
||||
Reference in New Issue
Block a user