{% extends "htmx/form_base.html" %} {% block form %} {% load static %} {% simmate_setting "website.show_finances" as SHOW_FINANCES %}
{% if not component.form_data.composition %}
Set Composition
{% if SHOW_FINANCES %}
Price Check
{% endif %}
Review & Submit
{% elif not component.is_pricing_confirmed %}
Set Composition
Price Check
Review & Submit
{% elif not component.is_submission_confirmed %}
Set Composition
{% if SHOW_FINANCES %}
Price Check
{% endif %}
Review & Submit
{% else %}
Set Composition
{% if SHOW_FINANCES %}
Price Check
{% endif %}
Review & Submit
{% endif %}
refresh the page to restart
{% if not component.form_data.composition %}
Set Composition
{% htmx_text_input name="composition" placeholder="e.g. Ca2N" show_label=False %}
{% htmx_button method_name="load_composition" label="Load" icon="download" theme="secondary" small=True show_label=False input_name="composition" %}
{% endif %} {% if component.is_submission_confirmed %}

Workflow Successfully Submitted

Thank you for contributing to our open-collective research!

{% alert theme="info" message="Refreshing this page will clear this form for a new submission. You will be able to find all of your past submissions on your Profile page, and you can find all results in the Data tab." %}
{% elif component.form_data.composition %}
Composition: {{ component.form_data.composition }}
{% if not component.is_pricing_confirmed %} {% if SHOW_FINANCES %}
0.00 (free)
{% endif %}
{% htmx_button method_name="confirm_pricing" theme="success" icon="check-circle" %}
{% elif not component.is_submission_confirmed %}
{% if SHOW_FINANCES %} {% endif %}
Price (free)
Est. Real Time * Varies
Est. CPU Time Varies
{# TO-DO: move this to when user sets up their USDC wallet in their profile #} {% htmx_checkbox name="accept_conditions" switch_mode=False show_label=False side_text="I accept the Simmate Terms of Service " %} {% htmx_checkbox name="acknowledge_openness" switch_mode=False show_label=False side_text="I acknowledge that my submission and all results will be publicly available to other users" %}
{% htmx_button method_name="confirm_submission" label="Submit" theme="warning" icon="rocket-takeoff" %}
{% endif %}
{% endif %}
{% endblock %}