rubyforgood / pdx_diaper

Inventory system for Portland Diaper Bank, created at Ruby For Good 2016
MIT License
6 stars 3 forks source link

Restructures form elements to match AA's styles #60

Closed cattywampus closed 8 years ago

cattywampus commented 8 years ago

ActiveAdmin uses Formtastic to build and style their forms, which uses a specific set of markup elements and classes to provide a consistent look and feel. This updates the elements of a few custom forms (inventory filter, donation add items) so their labels and control sizes match all of the other forms.

I implemented these changes manually, however there should be an easier way to leverage Formtastic's form builder objects. I tried to use #semantic_form_for along with #inputs and #input helper methods but the elements weren't rendering like they were supposed to. If anyone wants to build on top of this to leverage Formtastic's shorthand, that would be great.

armahillo commented 8 years ago

:heart_decoration: +1