diff --git a/docs/FORM_TEMPLATE.md b/docs/FORM_TEMPLATE.md new file mode 100644 index 0000000..4e7cdff --- /dev/null +++ b/docs/FORM_TEMPLATE.md @@ -0,0 +1,681 @@ +# Standard Form Template - ROA2WEB + +**Version:** 1.0 +**Date:** 2025-11-18 +**Status:** Active + +--- + +## Overview + +This document provides the standard template and guidelines for creating forms in ROA2WEB. All forms should use the centralized `forms.css` pattern library to ensure consistency, accessibility, and maintainability. + +--- + +## Quick Reference + +### Available Classes + +| Class | Purpose | Example | +|-------|---------|---------| +| `.form` | Form container | `
` | +| `.form-group` | Field wrapper | `
` | +| `.form-label` | Label styling | `
+``` + +--- + +## Filter Forms + +For filter/search forms (like in InvoicesView), use horizontal layout: + +```vue + + + +``` + +--- + +## Validation + +### Client-Side Validation Pattern + +```vue + +``` + +--- + +## Accessibility Guidelines + +### Required Standards + +1. **Labels**: Every input must have an associated `