- Vital Signs are public and readable by anyone.
- To submit a Vital Signs record for your association, you must complete the SASE process.
+
+ Scenarios are public and readable by anyone.
+ To submit a record, you must complete the SASE process.
Visit
to begin.
@@ -80,9 +126,9 @@ function scn01_access_wall() {
';
}
-// ----------------------------------------------------------------------------
+// ---------------------------------------------------------------------------
// CONTENT
-// ----------------------------------------------------------------------------
+// ---------------------------------------------------------------------------
function scn01_content() {
if (function_exists('head_add_css')) {
@@ -92,23 +138,25 @@ function scn01_content() {
head_add_js('/addon/scn01/view/js/scn01.js');
}
- $access = scn01_access_state();
+ $association_slug = argv(1) ?? '';
+
+ $access = scn01_access_state($association_slug);
// scn01 is public — access wall only gates submission, not reading
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
- if ($access === 'public' || $access === 'denied') {
- return scn01_access_wall();
+ if ($access === 'public') {
+ return scn01_access_wall($association_slug);
}
// TODO: handle POST submission
- return scn01_access_wall();
+ return scn01_access_wall($association_slug);
}
return scn01_render_main($access);
}
-// ----------------------------------------------------------------------------
+// ---------------------------------------------------------------------------
// RENDER
-// ----------------------------------------------------------------------------
+// ---------------------------------------------------------------------------
function scn01_render_main($access) {
$out = '
';
@@ -117,7 +165,7 @@ function scn01_render_main($access) {
$out .= '
Browse diagnostic scenarios. When you find one close to your situation, submit your account in your own words.
';
$out .= '
';
- // TODO: render the ten Vital Signs
+ // TODO: render scenarios
$out .= '
Content forthcoming.