|
1 | 1 |
|
2 |
| -<div class="mb-6 text-right"> |
3 |
| - <a href="https://circleci.com/gh/glhd/aire" target="_blank" class="no-underline"> |
| 2 | +<div class="mb-6 float-right inline-flex"> |
| 3 | + <a href="https://circleci.com/gh/glhd/aire" target="_blank" class="mx-1"> |
4 | 4 | <img
|
5 | 5 | src="https://circleci.com/gh/glhd/aire.svg?style=svg"
|
6 | 6 | alt="Build Status"
|
7 | 7 | />
|
8 | 8 | </a>
|
9 |
| - <a href="https://coveralls.io/github/glhd/aire?branch=master" target="_blank" class="no-underline"> |
| 9 | + <a href="https://coveralls.io/github/glhd/aire?branch=master" target="_blank" class="mx-1"> |
10 | 10 | <img
|
11 | 11 | src="https://coveralls.io/repos/github/glhd/aire/badge.svg?branch=master"
|
12 | 12 | alt="Coverage Status"
|
13 | 13 | />
|
14 | 14 | </a>
|
15 |
| - <a href="https://packagist.org/packages/glhd/aire" target="_blank" class="no-underline"> |
| 15 | + <a href="https://packagist.org/packages/glhd/aire" target="_blank" class="mx-1"> |
16 | 16 | <img
|
17 | 17 | src="https://poser.pugx.org/glhd/aire/v/stable"
|
18 | 18 | alt="Latest Stable Release"
|
19 | 19 | />
|
20 | 20 | </a>
|
21 |
| - <a href="./LICENSE" target="_blank" class="no-underline"> |
| 21 | + <a href="./LICENSE" target="_blank" class="mx-1"> |
22 | 22 | <img
|
23 | 23 | src="https://poser.pugx.org/glhd/aire/license"
|
24 | 24 | alt="MIT Licensed"
|
@@ -162,75 +162,20 @@ an error at the top of the page if validation failed.
|
162 | 162 |
|
163 | 163 | ## Client-Side Validation
|
164 | 164 |
|
165 |
| -Javascript validation in Aire is currently **work in progress**. Eventually, Aire will |
166 |
| -support automatic client-side validation (just call `rules()` on a field). This will let |
167 |
| -you set the rules on a field-by-field basis, or for the whole form, and will let you |
168 |
| -pass in a `FormRequest` object to automatically inject rules. |
169 |
| - |
170 |
| -## Misc. Notes |
171 |
| - |
172 |
| -These notes are here mostly to inform development. |
173 |
| - |
174 |
| -### Considerations/Inspiration |
175 |
| - |
176 |
| - - Form controls should take sizing config |
177 |
| - - 'Read-only plain text' http://getbootstrap.com/docs/4.1/components/forms/#readonly-plain-text |
178 |
| - - 'Form groups' - Label/input/help text/validation text (config how many errors show) |
179 |
| - - Multi-column forms (Name: {first} {last}) |
180 |
| - - Configurable support for custom checkboxes and radios? |
181 |
| - - Custom select support? |
182 |
| - - File inputs? |
183 |
| - - Should client-side validation be included? |
184 |
| - - https://github.com/netojose/laravel-bootstrap-4-forms |
185 |
| - - https://tailwindcss.com/docs/examples/forms/ |
186 |
| - - https://github.com/glhd/forms |
187 |
| - - https://github.com/glhd/bootforms |
188 |
| - - Append/Prepend (input groups) |
189 |
| - |
190 |
| -### Components |
191 |
| - |
192 |
| - - Button |
193 |
| - - Checkbox |
194 |
| - - Date |
195 |
| - - DateTimeLocal |
196 |
| - - Email |
197 |
| - - File |
198 |
| - - FormControl |
199 |
| - - FormOpen |
200 |
| - - FormClose |
201 |
| - - Hidden |
202 |
| - - Input |
203 |
| - - Label |
204 |
| - - Password |
205 |
| - - RadioButton |
206 |
| - - Select |
207 |
| - - Text |
208 |
| - - TextArea |
209 |
| - |
210 |
| -### Input Types |
211 |
| - |
212 |
| - - button |
213 |
| - - checkbox |
214 |
| - - color |
215 |
| - - date |
216 |
| - - datetime |
217 |
| - - datetime-local |
218 |
| - - email |
219 |
| - - file |
220 |
| - - hidden |
221 |
| - - image |
222 |
| - - month |
223 |
| - - number |
224 |
| - - password |
225 |
| - - radio |
226 |
| - - range |
227 |
| - - reset |
228 |
| - - search |
229 |
| - - submit |
230 |
| - - tel |
231 |
| - - text |
232 |
| - - time |
233 |
| - - url |
234 |
| - - wee |
| 165 | +Javascript validation in Aire is in its early stages. Browser testing is limited, and the |
| 166 | +Javascript code hasn't had an performance optimizations applied. That said, Aire |
| 167 | +supports automatic client-side validation—simply pass an array of rules or a `FormRequest` |
| 168 | +object and Aire will automatically apply most rules on the client side (thanks |
| 169 | +to [validatorjs](https://github.com/skaterdav85/validatorjs)!). |
| 170 | + |
| 171 | +## Under Consideration / Feature Ideas |
235 | 172 |
|
| 173 | +There are a few things that are still either in-the-works or being considered for a |
| 174 | +later release. These include: |
236 | 175 |
|
| 176 | + - Sizing option for form controls |
| 177 | + - [Read-only plain text](http://getbootstrap.com/docs/4.1/components/forms/#readonly-plain-text) |
| 178 | + - Cross-browser support for custom checkboxes and radio buttons via a config option |
| 179 | + - Support for Choices.js or similar `<select>` UI libraries |
| 180 | + - Better handling of file inputs |
| 181 | + - Better support for [prepending or appending content to inputs](https://getbootstrap.com/docs/4.0/components/input-group/#basic-example) |
0 commit comments