bys-control / activeadmin-index_as_calendar Goto Github PK
View Code? Open in Web Editor NEWAdds calendar index view to ActiveAdmin resources
License: MIT License
Adds calendar index view to ActiveAdmin resources
License: MIT License
Need to change module name ActiveAdminIndexAsCalendar
to IndexAsCalendar
Hi I found that the path of SCSS should be @import "index_as_calendar"
only. Hope it can help other users.
Need to add default: true
to index options.
Code:
ActiveAdmin.register CalendarCharter do
permit_params :name, :email, :skipper, :phone, :boat_name, :start_time, :end_time, :message
index_as_calendar ({:ajax => false}) do |item|
{
name: item.name,
boat_name: item.boat_name,
}
end
index do
column :name
column :email
column :skipper
column :phone
column :boat_name
column :start_time
column :end_time
column :message
actions
end
end
But the HTML whatever set data-remote="true" :
<a data-remote="true" href="/admin/calendar_charters?order=id_desc&start_date=2018-10-01">Next</a>
Hi,
Thank you for the plugin. One thing I noticed when there are no data to show, I expect it to render an empty calendar. But it instead renders "No data found" message, the std. Active Admin message. Can you let me know what can be done to render an empty calendar?
Thanks,
Leena
Hi,
Thanks for this great plugin, it improved the admin experience of my app a lot !
I just struggled a bit with the install. Indeed the readme currently says to add @import "index_as_calendar/application" in the AA stylesheet... But I got a "unable to import index_as_calendar/application" message when re-launching the app. Until I found that your latest commit now import : +@import "fullcalendar" & @import "index_as_calendar/jquery.qtip.min";. Then I modified the imports with these and it worked.
Did I miss something ? Or the readme should be updated ?
thanks !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.