GithubHelp home page GithubHelp logo

amarduwal / activeadmin_addons Goto Github PK

View Code? Open in Web Editor NEW

This project forked from platanus/activeadmin_addons

0.0 2.0 0.0 6.81 MB

Extends ActiveAdmin to enable a set of great optional UX improving add-ons

License: MIT License

Ruby 83.52% JavaScript 9.33% CSS 4.79% Shell 0.09% HTML 2.27%

activeadmin_addons's Introduction

ActiveAdmin Addons

Gem Version Build Status

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.

What you get:

Rows/Columns

Inputs

Filters

Themes

Installation

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.

Default changes to behaviour

Installing this gem will enable the following changes by default:

  • The default date input will be :datepicker instead of :date_select
  • Filters and selects will offer integration with enumerize
  • All select boxes will use select2

Addons

Rows/Columns

Paperclip Attachment

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

Read more!

Paperclip Image

Displays a paperclip image into index and show views

Read more!

AASM Integration

You can show aasm values as active admin tags.

Read more!

Enumerize and Rails Enum Integration

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

Read more!

Boolean Values

Modifies how boolean values are displayed.

Read more!

Toggleable Boolean Columns

Have switches to toggle values directly at the index

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!

Inputs

Select2 Input

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

Read more!

Tag Input

Using tags input, you can add tags using select2.

Read more!

Selected List Input

This form control allows you to handle your many to many associations.

Read more!

Search Select Input

Using search_select input, you can easily add ajax search to activeadmin.

Read more!

Nested Select Input

Using nested_select input, you can build related select inputs.

Read more!

Color Picker Input

You can pick colors using JQuery Palette Color Picker

f.input :color, as: :color_picker

Read more!

Date Time Picker Input

You can pick dates with time using the xdan's jQuery Plugin Date and Time Picker

f.input :updated_at, as: :date_time_picker

Read more!

Filters

Numeric Range Filter

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

filter :number, as: :numeric_range_filter

Search Select Filter

You can use the ajax select input to filter values on index view like this:

filter :category_id, as: :search_select_filter

Themes

NO Theme

Use default active_admin theme.

Material Theme

Show material design theme using active_material. If you want to use it, you should run the generator using the flag theme as follow:

rails g activeadmin_addons:install --theme material

Also, you can modify primary color, and all other theme colors, in the first lines of the file: app/assets/stylesheets/active_admin.scss

$am-theme-primary: YOUR-COLOR;
...
other colors
...
@import 'activeadmin_addons/material';

Take care of defining these variables before the import of @import 'activeadmin_addons/material';.

For material documentation you should go to gem documentation.

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

If you want to collaborate, please check the rules first.

Credits

Thank you contributors!

Platanus

activeadmin_addons is maintained by platanus.

License

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

activeadmin_addons's People

Contributors

ldlsegovia avatar emilioeduardob avatar joseglego avatar juliogarciag avatar felbalart avatar mabdelfattah avatar agustinf avatar deivid-rodriguez avatar bunzli avatar blackjid avatar robdvr avatar azelenets avatar leio10 avatar griffero avatar spaghetticode avatar mf222 avatar xn avatar victor95pc avatar msjonker avatar angelfan avatar ypresto avatar beorc avatar yjukaku avatar nashby avatar randomor avatar rubenbe avatar rrodriguez-handy avatar el-fuego avatar mateusg avatar lukom avatar

Watchers

James Cloos avatar Amar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.