Skip to content

rgioia/activeadmin_addons

 
 

Repository files navigation

ActiveAdmin Addons Build Status

Set of addons to improve the activeadmin ui and make it as awesome as we can.

Table of Contents

Instalation

Add this line to your application's Gemfile:

gem 'activeadmin_addons'

And then execute:

$ bundle

Setup

The first line in app/assets/stylesheets/active_admin.css.scss should be:

//= require activeadmin_addons/all

In app/assets/javascripts/active_admin.js.coffee add this line after #= require active_admin/base

#= require activeadmin_addons/all

Default behaviour Changes

Installing this gem...

  • The default date input will be :datepicker instead of :date_select
  • Add better integration with enumerize on filters and selects

Addons

Filters

Range Filter

To filter based on a range of values you can use range_select like this:

filter :barks_count, as: :range_select

Boolean values

Bool Row

Modifies how boolean values are displayed in attributes_table control (the one used in show view)

key value
paid
subscribed

Read more!

Bool Column

Modifies how boolean values are displayed in index view

id name paid subscribed
123 Felipe

Read more!

Select2

Default

With select2 the select control looks nicer, it works great with large collections and multiple selection.

Read more!

Tagging

Using tags input, you can add tags using select2.

Read more!

Ajax Search

Using search_select input, you can easly add ajax search to activeadmin

Read more!

Paperclip Integration

For Images

Displays a paperclip image into index and show views.

Read more!

For Any Attachment

Displays a paperclip link with attachment related icon into index and show views.

Read more!

AASM Integration

You can show aasm values as active admin tags.

Read more!

Enum Integration

You can show Rails' built in enums or enumerize values as active admin tags.

Read more!

Number Formatting

You can show numbers with format supported by Rails NumberHelper

Read more!

List

You can show Array or Hash values as html lists.

Read more!

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Credits

Thank you contributors!

Platanus

activeadmin_addons is maintained by platanus.

License

ActiveAdminAddons is © 2015 Platanus, spa. It is free software and may be redistributed under the terms specified in the LICENSE file.

About

Set of addons to help with the activeadmin ui

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 90.5%
  • HTML 5.2%
  • JavaScript 2.6%
  • CSS 1.6%
  • CoffeeScript 0.1%