Commit 3b23ca2d authored by Jacob Rockowitz's avatar Jacob Rockowitz Committed by Jacob Rockowitz
Browse files

Issue #2823918 by jrockowitz, alweb: Add custom classes, styles, and...

Issue #2823918 by jrockowitz, alweb: Add custom classes, styles, and properties to form settings and class names to submit buttons
parent 357d6fbb
Loading
Loading
Loading
Loading
+2 −1
Changes for config/install/yamlform.settings.yml: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -8,12 +8,13 @@ settings:
  default_form_unsaved: false
  default_form_novalidate: false
  default_form_details_toggle: true
  classes: |
  form_classes: |
    container-inline clearfix
    form--inline clearfix
    messages messages--error
    messages messages--warning
    messages messages--status
  button_classes: ''
  default_wizard_prev_button_label: '< Previous Page'
  default_wizard_next_button_label: 'Next Page >'
  default_wizard_start_label: Start
+6 −0
Changes for config/install/yamlform.yamlform.contact.yml: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ settings:
  page_submit_path: ''
  page_confirm_path: ''
  form_submit_label: 'Send message'
  form_submit_attributes: {  }
  form_exception_message: ''
  form_closed_message: ''
  form_confidential: false
@@ -52,17 +53,22 @@ settings:
  wizard_progress_pages: false
  wizard_progress_percentage: false
  wizard_next_button_label: ''
  wizard_next_button_attributes: {  }
  wizard_prev_button_label: ''
  wizard_prev_button_attributes: {  }
  wizard_start_label: ''
  wizard_complete: true
  wizard_complete_label: ''
  preview: 0
  preview_next_button_label: ''
  preview_next_button_attributes: {  }
  preview_prev_button_label: ''
  preview_prev_button_attributes: {  }
  preview_message: ''
  draft: false
  draft_auto_save: false
  draft_button_label: ''
  draft_button_attributes: {  }
  draft_saved_message: ''
  draft_loaded_message: ''
  confirmation_type: url_message
+27 −3
Changes for config/schema/yamlform.schema.yml: 27 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -74,9 +74,12 @@ yamlform.settings:
        default_limit_user_message:
          type: text
          label: 'Default limit user message'
        classes:
        form_classes:
          type: string
          label: 'Form CSS classes'
        button_classes:
          type: string
          label: 'Button CSS classes'
    elements:
      type: mapping
      label: 'Elements default settings'
@@ -291,6 +294,9 @@ yamlform.yamlform.*:
        form_submit_label:
          type: label
          label: 'Form submit text'
        form_submit_attributes:
          type: ignore
          label: 'Form submit attributes'
        form_closed_message:
          type: text
          label: 'Form closed message'
@@ -336,6 +342,9 @@ yamlform.yamlform.*:
        wizard_start_label:
          type: label
          label: 'Wizard start label'
        wizard_start_attributes:
          type: ignore
          label: 'Wizard start attributes'
        wizard_complete:
          type: boolean
          label: 'Include confirmation page in progress'
@@ -344,19 +353,31 @@ yamlform.yamlform.*:
          label: 'Wizard complete label'
        wizard_prev_button_label:
          type: label
          label: 'Default wizard previous page button label'
          label: 'Wizard previous page button label'
        wizard_prev_button_attributes:
          type: ignore
          label: 'Wizard previous page button attributes'
        wizard_next_button_label:
          type: label
          label: 'Default wizard next page button label'
          label: 'Wizard next page button label'
        wizard_next_button_attributes:
          type: ignore
          label: 'Wizard next page button attributes'
        preview:
          type: integer
          label: 'Enable preview page'
        preview_next_button_label:
          type: label
          label: 'Preview button label'
        preview_next_button_attributes:
          type: ignore
          label: 'Preview button attributes'
        preview_prev_button_label:
          type: label
          label: 'Previous page button label'
        preview_prev_button_attributes:
          type: ignore
          label: 'Previous page button attributes'
        preview_message:
          type: text
          label: 'Preview message'
@@ -369,6 +390,9 @@ yamlform.yamlform.*:
        draft_button_label:
          type: label
          label: 'Draft button label'
        draft_button_attributes:
          type: ignore
          label: 'Draft button attributes'
        draft_saved_message:
          type: text
          label: 'Draft saved message'
+3 −0
Changes for docs/developers/development.md: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -150,6 +150,7 @@ drush features-export -y yamlform
drush features-export -y yamlform_test
drush features-export -y yamlform_examples
drush features-export -y yamlform_templates
drush features-export -y yamlform_translation_test
drush features-export -y yamlform_node

# Tidy form configuration from your site.          
@@ -157,6 +158,7 @@ drush yamlform-tidy -y --dependencies yamlform
drush yamlform-tidy -y --dependencies yamlform_test
drush yamlform-tidy -y --dependencies yamlform_examples
drush yamlform-tidy -y --dependencies yamlform_templates
drush features-tidy -y --dependencies yamlform_translation_test
drush yamlform-tidy -y --dependencies yamlform_node

# Re-import all form configuration into your site.      
@@ -164,6 +166,7 @@ drush features-import -y yamlform
drush features-import -y yamlform_test
drush features-import -y yamlform_examples
drush features-import -y yamlform_templates
drush features-import -y yamlform_translation_test
drush features-import -y yamlform_node
```

+3 −0
Changes for docs/support/issues.md: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -41,6 +41,9 @@ because Drupal's YAML utility is not a service.](https://www.drupal.org/node/192

### \#states API (Conditionals)

#### Button (button & submit)

**[Issue #1671190 by Lucasljj, idebr, Cameron Tod: Use <button /> form element type instead of <input type="submit" />](https://www.drupal.org/node/1671190)**

#### Date/time (datetime)

Loading