README.md in activeadmin_blaze_theme-0.1.6 vs README.md in activeadmin_blaze_theme-0.2.0

- old
+ new

@@ -3,12 +3,14 @@ A theme for Active Admin using [Blaze CSS](http://blazecss.com/) Features: - clean UI +- customizable - compact edit form -- Blaze CSS widgets +- some custom fields: toggle +- Blaze CSS widgets available ## Install - Add to your Gemfile: @@ -47,9 +49,23 @@ $form-padding: 10px; $inputs-spacing: 10px; $height-inputs: 28px; $text-shadow: #000; ``` + +## Custom fields + +### Toggle + +In *form* \ *inputs* block: + +`f.input :boolean, as: :blaze_toggle` + +To change toggle color: + +`f.input :boolean, as: :blaze_toggle, input_html: { toggle_class: 'c-toggle--brand' }` + +Available: `c-toggle--brand, c-toggle--info, c-toggle--warning, c-toggle--success, c-toggle--error` ## Screenshots Index: