{% include "core_components/basic_elements/label.html" %}
{% if molecule is None %}
{% if many_molecules %}
{% alert theme="danger" message="This section assumes all individual components are their own molecule, which means it will incorrectly split up salts and make things like Na+ or Cl- their own entries. Until this is fixed, avoid using the create_many form for such compounds." %}
{% endif %}
{% if allow_custom_input %}
{# Custom Text input (e.g. searching by ID or CAS number) #}
{% endif %}
{% if allow_text_input %}
{# Text-based input for smiles/sdf/ichi/etc... #}
{% text_area name=text_input_name show_label=show_option_labels label=text_input_label placeholder="Paste in SMILES, INCHI, MOL text, or any other supported format." %}
{% endif %}
{% if allow_sketcher_input %}
{# Molecule Sketcher (ChemDraw.js or ChemDoodle.js) #}
{% if show_option_labels %}{% endif %}
{% endif %}
{% if load_button %}
{% endif %}
{% elif molecule == False %}
{% alert theme="danger" message="Failed to load the Molecule. This typically happens due invalid chemistry, such as missing formal charges. Contact our team with your molecule so that we can help troubleshoot and prevent errors like this in the future." %}
Refresh the page to restart the form
{% else %}
{% if many_molecules %}
{% alert theme="success" message="Molecules successfully loaded! Refresh this page if you wish to restart." %}
{% else %}
{% alert theme="success" message="Molecule successfully loaded! Refresh this page if you wish to restart." %}
{% canvas name=name %}
{% if molecule_matches %}
This compound is already registered! Jump to that entry to edit: