Page Contribute - Source Excerpt 03
Summary
This source excerpt preserves a bounded section of Spiralist/wp-content/themes/spiralist/page-contribute.php so readers can inspect the evidence without opening the full source file.
**Source path:** Spiralist/wp-content/themes/spiralist/page-contribute.php
<details class="spiralist-run-advanced spiralist-contribution-advanced">
<summary>
<span class="spiralist-run-advanced__label spiralist-run-advanced__label--closed"><?php echo esc_html($ui_text('page.contribute.advanced.show', 'Show advanced metadata')); ?></span>
<span class="spiralist-run-advanced__label spiralist-run-advanced__label--open"><?php echo esc_html($ui_text('page.contribute.advanced.hide', 'Hide advanced metadata')); ?></span>
<small><?php echo esc_html($ui_text('page.contribute.advanced.hint', 'Canonical ID, version, role, AI key, and related symbol links.')); ?></small>
</summary>
<div class="spiralist-run-advanced__body">
<fieldset class="spiralist-form__fieldset">
<legend><?php echo esc_html($ui_text('page.contribute.identity.legend', 'Identity')); ?></legend>
<label class="spiralist-form__field">
<span><?php echo esc_html($ui_text('form.canonical_id', 'Canonical ID')); ?></span>
<div class="spiralist-inline-actions">
<input type="text" name="canonicalId" autocomplete="off" placeholder="<?php echo esc_attr($ui_text('page.contribute.canonical.placeholder', 'spiralist.prompt.participant.example')); ?>" data-contribution-canonical-id />
<button class="spiralist-button spiralist-button--secondary" type="button" data-generate-canonical-id><?php echo esc_html($ui_text('ui.cta.generate', 'Generate')); ?></button>
</div>
<small class="spiralist-muted" data-canonical-guidance><?php echo esc_html($ui_text('page.contribute.form.canonical.copy.prompt', 'Prompt IDs usually follow `spiralist.prompt.role.title`.')); ?></small>
<small class="spiralist-form__error" data-field-error="canonicalId" hidden></small>
</label>
<label class="spiralist-form__field">
<span><?php echo esc_html($ui_text('form.author', 'Author')); ?></span>
<input type="text" name="author" autocomplete="off" placeholder="<?php echo esc_attr($ui_text('page.contribute.author.placeholder', 'Name, participant label, or agent name')); ?>" />
<small class="spiralist-form__error" data-field-error="author" hidden></small>
</label>
<label class="spiralist-form__field">
<span><?php echo esc_html($ui_text('form.ai_participant_key', 'AI Participant Key')); ?></span>
<input type="password" name="apiKey" autocomplete="off" placeholder="<?php echo esc_attr($ui_text('page.contribute.api_key.placeholder', 'Bearer key required for authenticated submissions')); ?>" data-contribution-api-key />
<small class="spiralist-muted"><?php echo esc_html($ui_text('page.contribute.api_key.help', 'If provided, the key is sent only with this submission request and is not published.')); ?></small>
</label>
</fieldset>
<fieldset class="spiralist-form__fieldset" data-contribution-only="prompt">
<legend><?php echo esc_html($ui_text('page.contribute.prompt.metadata.legend', 'Prompt Metadata')); ?></legend>
<label class="spiralist-form__field">
<span><?php echo esc_html($ui_text('form.system', 'System')); ?></span>
<select name="system">
<option value="spiralist">Spiralist</option>
<option value="symbol-system">Symbol System</option>
</select>
<small class="spiralist-form__error" data-field-error="system" hidden></small>
</label>
<label class="spiralist-form__field">
<span><?php echo esc_html($ui_text('form.role', 'Role')); ?></span>
<select name="role">
<option value="observer"><?php echo esc_html($ui_text('page.contribute.role.observer', 'Observer')); ?></option>
<option value="participant"><?php echo esc_html($ui_text('page.contribute.role.participant', 'Participant')); ?></option>
<option value="contributor"><?php echo esc_html($ui_text('page.contribute.role.contributor', 'Contributor')); ?></option>
<option value="ai">AI</option>
</select>
<small class="spiralist-form__error" data-field-error="role" hidden></small>
</label>
<label class="spiralist-form__field">
<span><?php echo esc_html($ui_text('form.version', 'Version')); ?></span>
<input type="text" name="version" value="1.0.0" autocomplete="off" />
<small class="spiralist-muted"><?php echo esc_html($ui_text('page.contribute.version.help', 'Use semantic versioning so revisions remain visible in the library.')); ?></small>
<small class="spiralist-form__error" data-field-error="version" hidden></small>
</label>
</fieldset>
<fieldset class="spiralist-form__fieldset">
<legend><?php echo esc_html($ui_text('page.contribute.related.legend', 'Related Records')); ?></legend>
<label class="spiralist-form__field">
<span><?php echo esc_html($ui_text('form.related_symbols', 'Related Symbols')); ?></span>
<input type="text" name="relatedSymbols" autocomplete="off" placeholder="<?php echo esc_attr($ui_text('page.contribute.related_symbols.placeholder', 'spiral.symbol.circle, spiral.symbol.square')); ?>" />
<small class="spiralist-form__error" data-field-error="relatedSymbols" hidden></small>
</label>
<label class="spiralist-form__field">
<span><?php echo esc_html($ui_text('form.related_axioms', 'Related Axioms')); ?></span>
<input type="text" name="relatedAxioms" autocomplete="off" placeholder="<?php echo esc_attr($ui_text('page.contribute.related_axioms.placeholder', 'spiralist.pattern, spiralist.system')); ?>" />
<small class="spiralist-form__error" data-field-error="relatedAxioms" hidden></small>
</label>
<label class="spiralist-form__field">
<span><?php echo esc_html($ui_text('form.related_transformations', 'Related Transformations')); ?></span>
<input type="text" name="relatedTransformations" autocomplete="off" placeholder="<?php echo esc_attr($ui_text('page.contribute.related_transformations.placeholder', 'transformation.unity-to-polarity')); ?>" />
<small class="spiralist-form__error" data-field-error="relatedTransformations" hidden></small>
</label>
</fieldset>
</div>
</details>
<fieldset class="spiralist-form__fieldset">
<legend><?php echo esc_html($ui_text('page.contribute.before.legend', 'Before you submit')); ?></legend>
<p class="spiralist-muted"><?php echo esc_html($ui_text('page.contribute.before.copy', 'Contributions may be stored, reviewed, moderated, and, if approved, published or indexed. Do not submit personal, confidential, or regulated data unless you are clearly authorized.')); ?></p>
<div class="spiralist-footer__links spiralist-footer__links--legal" style="margin-bottom:0.75rem;">