ActiveAdmin Addons will extend your ActiveAdmin and enable a set of addons you can optionally use to improve the ActiveAdmin UI and make it awesome.
Add this line to your application's Gemfile:
gem 'activeadmin_addons'
And then execute:
$ bundle
After that, run the generator:
$ rails g activeadmin_addons:install
Check here to see more information about this generator.
Installing this gem will enable the following changes by default:
:datepicker
instead of :date_select
enums
Display images in the index and show views. This implementation supports Shrine.
You can show aasm values as active admin tags.
You can show Rails' built in enums
as active admin tags.
Modifies how boolean values are displayed.
Have switches to toggle values directly at the index
You can show numbers with format supported by Rails NumberHelper
You can show Array
or Hash
values as html lists.
You can render text as markdown.
With Slim Select the select control looks nicer, it works great with large collections.
Using tags input, you can add tags using slim select.
This form control allows you to handle your many to many associations.
Using search_select
input, you can easily add ajax search to activeadmin.
Using nested_select
input, you can build related select inputs.
You can pick colors using JQuery Palette Color Picker
f.input :color, as: :color_picker
You can pick dates with time using the xdan's jQuery Plugin Date and Time Picker
f.input :updated_at, as: :date_time_picker
To filter based on a range of values you can use numeric_range_filter
like this:
filter :number, as: :numeric_range_filter
To filter based on a range of datetimes you can use date_time_picker_filter
like this:
filter :created_at, as: :date_time_picker_filter
You can use the ajax select input to filter values on index view like this:
filter :category, as: :search_select_filter
Use default active_admin theme.
On a new branch:
VERSION
in lib/activeadmin_addons/version.rb
. Note that beta versions should have a .beta
suffix (e.g. 1.0.0.beta.1
)."version"
in package.json
to the same version. Note that beta versions should have a -beta
suffix (e.g. 1.0.0-beta.1
).Unreleased
title to current version in CHANGELOG.md
.bundle install
.git tag v1.0.0
.git push origin v1.0.0
. This will trigger the CI to publish the new version to npm and rubygems.git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)If you want to collaborate, please check the rules first.
Thank you contributors!
activeadmin_addons is maintained by platanus.
ActiveAdminAddons is © 2021 Platanus, spa. It is free software and may be redistributed under the terms specified in the LICENSE file.