cds-snc / node-starter-app

Quick start application setup.... because you have to start somewhere.
MIT License
5 stars 3 forks source link

Add Default helpers for input macros #48

Closed timarney closed 5 years ago

timarney commented 5 years ago

@sastels mentioned that it would be nice to setup some defaults for things like input text

Current

 {{ textInput('form.expiry', null, 'form.expiry.desc', { class: "w-3-4", name: "expiry", id: "expiry", autofocus: '', value: data.expiry }) }}

Potentially we should be able to default but allow overrides for the inputs so things could be based mostly on a field name.

New

 {{ textInput('expiry'}) }}
timarney commented 5 years ago

@sastels @smcmurtry 🎉

Will look into adding for checkboxes, radios etc... later.