🐙 💯
Put the following code anywhere in your HTML:
<script src="https://d2miw5gu5zak37.cloudfront.net/" type="text/javascript"></script>
This will automatically pull the latest release.
To lock your injection to a specific version, specify the version:
<script src="https://d2miw5gu5zak37.cloudfront.net/squids-pro-quo-v0.0.0.js" type="text/javascript"></script>
- Puts the correct headings above the each dropdown in a datetime, and puts the fields next to each other instead of on top of each other
- Adjusts the widths of the labels and boxes to fit 100% of the container, no matter the number of y/m/d/h/i/s fields
- You cannot use textboxes for any fields, they must all be select dropdowns
Allows sections of a form to be hidden unless a certain radio button is selected.
- Add
#
followed by a number at the start of a section name, the section will be hidden by default - Add
?
followed by a section number to the start of the text in the radio button to make selecting the button display this section
- These
#
s and?
s won't be displayed on the page - Only use this for 1-page forms
- Don't have a default value on your radio buttons
- Don't have any 'required' fields inside conditional sections
- Date/time fields are 'required' by default, you must select 'allow blank' on all fields for this component
Fix the 'Filed Note' (form helper text) weird spacing, and give it a slightly prettier styling.
Create the applicable src/js/[feature_name].js
/ src/css/[feature_name].css
files
Have the dependencies installed
npm install
- Bump the version number in
package.json
- Run
grunt
and verify the output - Push to
master
, which will automatically propogate the version and changes.
Because of the nature of the javascript injection, all CSS must use double quotes ("
) only. Any use of single quotes ('
) will break the injection!