{% extends "htmx/form_base.html" %} {% block form %}
{% htmx_text_input name="name" %} {% htmx_text_input name="job_title" required=True %} {% htmx_text_area name="job_description" %} {% htmx_number_input name="years_worked" %} {% htmx_checkbox name="still_working" %} {% htmx_radio name="status0" options=component.status_options %} {% htmx_selectbox name="status1" options=component.status_options %} {% htmx_selectbox name="status2" options=component.status_options multiselect=True %} {% htmx_button method_name="submit" %} {% htmx_button method_name="add_molecule_image" label="Draw Molecule" %} {% canvas name="jacks-molecule" %} {% htmx_button method_name="run_some_js" label="Run Javascript Only, No Swap" javascript_only=True %}
Result area
{% htmx_selectbox name="status3" method_name="update_selection_test" options=component.status_options %} {% if component.new_selection %} {% htmx_selectbox name="status4" options=component.status_options %} {% endif %}
POST: {{ post_values }}
COMPONENT: {{ component }}
ID: {{ component.component_id }}
Data: {{ component.post_data }}
Actions: {{ component.js_actions }}
{% endblock %}