diff --git a/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/dashboard.html b/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/dashboard.html index d63a7b7a..1825ec25 100644 --- a/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/dashboard.html +++ b/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/dashboard.html @@ -6,41 +6,80 @@ {% endblock navbar-menu-right-content %} -{% block form_entry_table_row %} -{% for form_entry in form_entries %} - - {{ form_entry.name }} - {{ form_entry.is_public }} - {{ form_entry.is_active }} - {#{{ form_entry.is_cloneable }}#} - -
- - {% trans "Edit" %} - - - {% trans "Delete" %} - - - {% trans "Export" %} - +{% block content-wrapper %} + + +
+
+ +
+

{% trans "Your forms" %}

- - -{% endfor %} -{% endblock form_entry_table_row %} +
+
+ + + + + + + {##} + + + + + {% block form_entry_table_row %} + {% for form_entry in form_entries %} + + + + + {##} + + + {% endfor %} + {% endblock form_entry_table_row %} + +
{% trans "Form" %}{% trans "Is public" %}{% trans "Is active" %}{% trans "Is cloneable" %}{% trans "Actions" %}
{{ form_entry.name }}{{ form_entry.is_public }}{{ form_entry.is_active }}{{ form_entry.is_cloneable }} + +
+
+
+
-{% block form_entry_actions %} - - {% trans "Create form" %} - - - {% trans "Import form" %} - -{% for form_importer_uid,form_importer_name,form_importer_url in form_importers %} - - {{ form_importer_name }} - -{% endfor %} -{% endblock form_entry_actions %} \ No newline at end of file +
+
+

{% trans "Actions" %}

+
+ +
+ {% block form_entry_actions %} + + {% trans "Create form" %} + + + {% trans "Import form" %} + + {% for form_importer_uid,form_importer_name,form_importer_url in form_importers %} + + {{ form_importer_name }} + + {% endfor %} + {% endblock form_entry_actions %} +
+
+
+{% endblock content-wrapper %} \ No newline at end of file diff --git a/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/edit_form_entry_ajax.html b/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/edit_form_entry_ajax.html index 27a3998b..d76c1d8c 100644 --- a/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/edit_form_entry_ajax.html +++ b/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/edit_form_entry_ajax.html @@ -4,198 +4,157 @@
-
- - - - -
- - -
- -
-

{% trans "Add elements to your form" %}

-
- -
-
- - -
- {% csrf_token %} - {% with assembled_form as form %} - {% include fobi_theme.form_edit_snippet_template_name %} - {% endwith %} - - {{ form_element_entry_formset.management_form }} - - {% comment %} -{% with form_element_entry_formset as form %} -{% include fobi_theme.form_edit_snippet_template_name %} -{% endwith %} -{% endcomment %} - -
-
- -
-
-
-
-
- +
+
+
+ +
- -
+ +
-
-

{% trans "Add handlers to your form" %}

-
- -
-
- +
+ +

{% trans "Add elements to your form" %}

-
+
+ {% csrf_token %} + {% with assembled_form as form %} + {% include fobi_theme.form_edit_snippet_template_name %} + {% endwith %} - -
- -
-

{% trans "Form properties" %}

-
- -
-
- - {% csrf_token %} - {% include fobi_theme.form_properties_snippet_template_name %} - -
-
- -
+ {{ form_element_entry_formset.management_form }} +
+
+
- -
+
+
-
+ +
+ +

{% trans "Add handlers to your form" %}

+
- -
+ {% if form_handlers %} + + + + + {##} + + + + + {% for form_handler in form_handlers %} + {% with form_handler.get_plugin as plugin %} + {% if plugin %} + + + + + {% endif %} + {% endwith %} + {% endfor %} + +
{% trans "Handler" %}{% trans "Settings" %}{% trans "Actions" %}
{{ form_handler.plugin_name }} + {% if form_handler.plugin_data or plugin.plugin_data_repr %} + + ? + + {% endif %} + +
    + {% if form_handler.plugin_data %} +
  • {% trans "Edit" %}
  • + {% endif %} +
  • {% trans "Delete" %}
  • + {% get_fobi_form_handler_plugin_custom_actions plugin form_entry as form_handler_plugin_custom_actions %} + {#% for action in plugin.get_custom_actions %#} + {% for action in form_handler_plugin_custom_actions %} +
  • {{ action.1 }}
  • + {% endfor %} +
+
+ {% endif %} +
-
+ +
+

{% trans "Form properties" %}

+
+ {% csrf_token %} + {% include fobi_theme.form_properties_snippet_template_name %} + +
+
+ +
+
+
+
+ + +

{% trans "Service" %}

-
+
+

{% trans "Export your form as JSON" %}

+

{% trans "Export your form into JSON format and import it again any time!" %}

+

+ + {% trans "Export form" %} + +

+
-
-
-
-

{% trans "Export your form as JSON" %}

-

{% trans "Export your form into JSON format and import it again any time!" %}

-

- - {% trans "Export form" %} - -

-
- -
-

{% trans "Delete your form" %}

-

{% trans "Once deleted, can't be undone!" %}

-

- - {% trans "Delete form" %} - -

-
+
+

{% trans "Delete your form" %}

+

{% trans "Once deleted, can't be undone!" %}

+

+ + {% trans "Delete form" %} + +

-
-
\ No newline at end of file diff --git a/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/edit_form_wizard_entry_ajax.html b/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/edit_form_wizard_entry_ajax.html index f77b31e1..a3a4b049 100644 --- a/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/edit_form_wizard_entry_ajax.html +++ b/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/edit_form_wizard_entry_ajax.html @@ -5,214 +5,179 @@
- - +
+
+ + +
- -
+ +
-
-
-

{% trans "Add forms to your form wizard" %}

+
+ +

{% trans "Add forms to your form wizard" %}

+ +
+ {% csrf_token %} +
+ {% blocktrans %}Fields marked with * are required{% endblocktrans %}
+ {% for form_wizard_form_entry in form_wizard_entry_forms %} +
+ -
-
- - - - {% csrf_token %} -
- {% blocktrans %}Fields marked with * are required{% endblocktrans %} -
- {% for form_wizard_form_entry in form_wizard_entry_forms %} -
- - -
- {{ form_wizard_form_entry.form_entry.name }} - - - - - - -
+
+ {{ form_wizard_form_entry.form_entry.name }} + + + + - {#% include fobi_theme.form_edit_snippet_template_name %#} - {% endfor %} - {#{ form_wizard_form_entry_formset.as_p }#} + - {{ form_wizard_form_entry_formset.management_form }} - -
-
- -
- +
+ {#% include fobi_theme.form_edit_snippet_template_name %#} + {% endfor %} + {#{ form_wizard_form_entry_formset.as_p }#} + {{ form_wizard_form_entry_formset.management_form }} + +
+
+
+
-
+
+ +

{% trans "Add handlers to your form wizard" %}

+
-
-

{% trans "Add handlers to your form wizard" %}

-
- -
-
- - -
- - {% if form_wizard_handlers %} - - - - - {##} - - - - - {% for form_wizard_handler in form_wizard_handlers %} - {% with form_wizard_handler.get_plugin as plugin %} - {% if plugin %} - - - - - {% endif %} - {% endwith %} - {% endfor %} - -
{% trans "Handler" %}{% trans "Settings" %}{% trans "Actions" %}
{{ form_wizard_handler.plugin_name }} - {% if form_wizard_handler.plugin_data or plugin.plugin_data_repr %} - - ? - - {% endif %} - -
    - {% if form_wizard_handler.plugin_data %} -
  • {% trans "Edit" %}
  • - {% endif %} -
  • {% trans "Delete" %}
  • - {% get_fobi_form_wizard_handler_plugin_custom_actions plugin form_wizard_entry as form_wizard_handler_plugin_custom_actions %} - {#% for action in plugin.get_custom_actions %#} - {% for action in form_wizard_handler_plugin_custom_actions %} -
  • {{ action.1 }}
  • - {% endfor %} -
-
+ {% if form_wizard_handlers %} + + + + + {##} + + + + + {% for form_wizard_handler in form_wizard_handlers %} + {% with form_wizard_handler.get_plugin as plugin %} + {% if plugin %} + + + + {% endif %} - - - + {% endwith %} + {% endfor %} + +
{% trans "Handler" %}{% trans "Settings" %}{% trans "Actions" %}
{{ form_wizard_handler.plugin_name }} + {% if form_wizard_handler.plugin_data or plugin.plugin_data_repr %} + + ? + + {% endif %} + +
    + {% if form_wizard_handler.plugin_data %} +
  • {% trans "Edit" %}
  • + {% endif %} +
  • {% trans "Delete" %}
  • + {% get_fobi_form_wizard_handler_plugin_custom_actions plugin form_wizard_entry as form_wizard_handler_plugin_custom_actions %} + {#% for action in plugin.get_custom_actions %#} + {% for action in form_wizard_handler_plugin_custom_actions %} +
  • {{ action.1 }}
  • + {% endfor %} +
+
+ {% endif %}
-
+
+

{% trans "Form wizard properties" %}

-
-

{% trans "Form wizard properties" %}

-
-
-
- -
- {% csrf_token %} - {% include fobi_theme.form_wizard_properties_snippet_template_name %} - -
-
- -
-
-
+
+ {% csrf_token %} + {% include fobi_theme.form_wizard_properties_snippet_template_name %} +
+
+
- +
-
- -
-

{% trans "Service" %}

-
-
-
-
-

{% trans "Export your form wizard as JSON" %}

-

{% trans "Export your form into JSON format and import it again any time!" %}

-

- - {% trans "Export form wizard" %} - -

-
-
-

{% trans "Delete your form wizard" %}

-

{% trans "Once deleted, can't be undone!" %}

-

- - {% trans "Delete form wizard" %} - -

-
- -
-
- +
+

{% trans "Service" %}

+
+

{% trans "Export your form wizard as JSON" %}

+

{% trans "Export your form into JSON format and import it again any time!" %}

+

+ + {% trans "Export form wizard" %} + +

+
+
+

{% trans "Delete your form wizard" %}

+

{% trans "Once deleted, can't be undone!" %}

+

+ + {% trans "Delete form wizard" %} + +

+
- - +
-
diff --git a/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/snippets/form_properties_snippet.html b/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/snippets/form_properties_snippet.html index dfebdc45..e1849795 100644 --- a/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/snippets/form_properties_snippet.html +++ b/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/snippets/form_properties_snippet.html @@ -1,12 +1,12 @@ {% extends "fobi/generic/snippets/form_properties_snippet.html" %} -{% block form_required_fields_message_wrapper_class %}well well-sm{% endblock %} +{% block form_required_fields_message_wrapper_class %}bg-light border rounded p-1 ps-3 pe-3 mb-3{% endblock %} {% block non_field_errors_form_element_wrapper_html_class %}form-group{% endblock %} {% block form_element_wrapper_hidden_html_class %}hidden{% endblock %} -{% block form_element_wrapper_html_class %}form-group{% endblock %} +{% block form_element_wrapper_html_class %}form-group row mb-1{% endblock %} {% block form_element_wrapper_error_html_class %}has-error{% endblock %} @@ -20,4 +20,4 @@ {% block form_element_error_html_class %}help-block has-error{% endblock %} -{% block form_element_help_text_html_class %}help-block{% endblock %} +{% block form_element_help_text_html_class %}help-block form-text{% endblock %} diff --git a/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/snippets/form_snippet.html b/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/snippets/form_snippet.html index d856782f..36edf02d 100644 --- a/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/snippets/form_snippet.html +++ b/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/snippets/form_snippet.html @@ -18,7 +18,7 @@ {% block form_element_error_html_class %}help-block invalid-feedback{% endblock %} -{% block form_element_help_text_html_class %}form-text{% endblock %} +{% block form_element_help_text_html_class %}help-block form-text{% endblock %} {% block form_element_field %} {% get_form_field_type field as form_field_type %} @@ -26,6 +26,10 @@ {{ field|add_class:"form-control" }} {% elif form_field_type.is_textarea %} {{ field|add_class:"form-control" }} +{% elif form_field_type.is_checkbox %} + {{ field|add_class:"form-check-input" }} +{% elif form_field_type.is_radio %} + {{ field|add_class:"form-check-input" }} {% else %} {{ field }} {% endif %} diff --git a/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/snippets/form_wizard_properties_snippet.html b/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/snippets/form_wizard_properties_snippet.html index 91dcdeea..3d790ae2 100644 --- a/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/snippets/form_wizard_properties_snippet.html +++ b/src/fobi/contrib/themes/bootstrap5/templates/bootstrap5/snippets/form_wizard_properties_snippet.html @@ -1,12 +1,12 @@ {% extends "fobi/generic/snippets/form_wizard_properties_snippet.html" %} -{% block form_required_fields_message_wrapper_class %}well well-sm{% endblock %} +{% block form_required_fields_message_wrapper_class %}bg-light border rounded p-1 ps-3 pe-3 mb-3{% endblock %} {% block non_field_errors_form_element_wrapper_html_class %}form-group{% endblock %} {% block form_element_wrapper_hidden_html_class %}hidden{% endblock %} -{% block form_element_wrapper_html_class %}form-group{% endblock %} +{% block form_element_wrapper_html_class %}form-group row mb-1{% endblock %} {% block form_checkbox_element_field_wrapper_html_class %}col-sm-offset-2 col-sm-9{% endblock %} @@ -18,4 +18,4 @@ {% block form_element_error_html_class %}help-block has-error{% endblock %} -{% block form_element_help_text_html_class %}help-block{% endblock %} +{% block form_element_help_text_html_class %}help-block form-text{% endblock %}