{% extends "htmx/form_base.html" %} {% block form %} {% load static %} {% simmate_setting "website.show_finances" as SHOW_FINANCES %}
{% if not component.is_structure_confirmed %}
Load Structure
{% if SHOW_FINANCES %}
Price Check
{% endif %}
Review & Submit
{% elif not component.is_pricing_confirmed %}
Load Structure
Price Check
Review & Submit
{% elif not component.is_submission_confirmed %}
Load Structure
{% if SHOW_FINANCES %}
Price Check
{% endif %}
Review & Submit
{% else %}
Load Structure
{% if SHOW_FINANCES %}
Price Check
{% endif %}
Review & Submit
{% endif %}
refresh the page to restart
{% if not component.form_data.structure %}
{% alert theme="info" message="Please provide a structure using one of the options below." %}
{% comment %}
Option 1: Load example structure
{% htmx_button method_name="load_example_input" icon="download" theme="secondary" small=True label="Load LiCoO2" %}
** you will not be able to submit the workflow (because the result is already in our database), but this will allow you to move forward with the workflow submission to see what it is like.
{% endcomment %}
Option 1: Load from Database
{% htmx_selectbox name="database_table" placeholder="Choose table..." show_label=False %}
{% htmx_text_input name="database_id" placeholder="Enter ID... (ex: mp-123)" show_label=False %}
{% htmx_button method_name="load_database_input" icon="download" theme="secondary" small=True show_label=False %}
or
{% htmx_text_input name="database_url" placeholder="Paste link to structure (ex: https://simmate.org/data/MatprojStructure/1234/)" show_label=False %}
{% htmx_button method_name="load_url_input" icon="download" theme="secondary" small=True show_label=False %}
Option 2: Load from File (CIF or POSCAR)
{% htmx_file_upload name="structure_file" show_label=False defer=False %}
{% comment %}
Option 4: Build from Prototype
{% endcomment %} {% elif not component.is_submission_confirmed %}
{% draw_structure component.form_data.structure div_id="submission_form_structure" dynamic=True %}
{% if not component.is_structure_confirmed %} {% alert theme="success" message="Successfully loaded structure" %} Confirm that this is your intended structure before continuing to the next step. {% htmx_button method_name="confirm_structure" theme="success" icon="check-circle" %} {% elif 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 * 60 seconds
Est. CPU Time 3 min
{# 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 %}
{% else %} {# foreign_key_link component.status open_in_new=True #} {# foreign_key_link component.status.results_db_entry open_in_new=True #}

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." %}
{% endif %}
{% endblock %}