mirror of
https://github.com/hashicorp/vault.git
synced 2026-03-29 01:11:59 +01:00
* removes doctoc, jsdoc-to-markdown and jsonlint packages and removes underscore version override * removes generate-docs script which uses removed docfy-md scipt Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
735 B
735 B
Forms
Guidelines
- Render
FlashMessageon success - Handling errors/validation messages:
- Render API errors using a
<MessageError>orHds::Alertat the top of forms - Display validation error messages
onsubmit(notonchangefor inputs) - Render an
<AlertInline>beside form buttons, especially if the error banner is hidden from view (long forms). Message options:- The
invalidFormMessagefrom a model'svalidate()method that includes an error count - Generic message for API errors or forms without model validations: 'There was an error submitting this form.'
- The
- Add
has-error-borderclass to invalid inputs
- Render API errors using a