padrino-admin 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/padrino-admin.rb +3 -2
- data/lib/padrino-admin/access_control.rb +2 -1
- data/lib/padrino-admin/generators/admin_app.rb +1 -0
- data/lib/padrino-admin/generators/app/app.rb.tt +16 -5
- data/lib/padrino-admin/generators/app/views/javascripts/admin.js.erb +4 -1
- data/lib/padrino-admin/generators/{app/public → assets}/flash/charts.swf +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/flash/clippy.swf +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/flash/expressinstall.swf +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/flash/swfupload.swf +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/back.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/background.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/bg-content.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/bg-hd-slate.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/bg-hd.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/bg-intro.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/bg-login.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/bg-menu-slate.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/bg-menu.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/bg.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/btn-login.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/cancel.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/categories.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/close.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/close.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/delete.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/download.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/duplicate.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/edit.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/export.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/hd-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/image.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/loader.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/logo-loader.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/logo-small.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/new.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/no-image.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/preview.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/print.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/save.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/support.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/admin/up.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/box/corners-blue.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/box/corners.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/box/l-blue.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/box/l.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/box/r-blue.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/box/r.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/box/tb-blue.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/box/tb.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/arrow.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/btn.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/group-cs.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/group-lr.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/group-tb.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/s-arrow-b-noline.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/s-arrow-b.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/s-arrow-bo.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/s-arrow-noline.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/s-arrow-o.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/s-arrow.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/dd/drop-add.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/dd/drop-no.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/dd/drop-yes.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/editor/tb-sprite.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/checkbox.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/clear-trigger.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/clear-trigger.psd +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/date-trigger.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/date-trigger.psd +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/error-tip-corners.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/exclamation.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/radio.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/search-trigger.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/search-trigger.psd +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/text-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/trigger-tpl.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/trigger.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/trigger.psd +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/gradient-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/Thumbs.db +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/arrow-left-white.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/arrow-right-white.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/col-move-bottom.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/col-move-top.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/columns.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/dirty.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/done.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/drop-no.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/drop-yes.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/footer-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid-blue-hd.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid-blue-split.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid-hrow.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid-loading.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid-split.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid-vista-hd.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid3-hd-btn.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid3-hrow-over.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid3-hrow.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid3-special-col-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid3-special-col-sel-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/group-by.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/group-expand-sprite.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/hd-pop.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/hmenu-asc.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/hmenu-desc.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/hmenu-lock.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/hmenu-lock.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/hmenu-unlock.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/hmenu-unlock.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/invalid_line.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/loading.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/mso-hd.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/nowait.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/page-first-disabled.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/page-first.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/page-last-disabled.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/page-last.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/page-next-disabled.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/page-next.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/page-prev-disabled.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/page-prev.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/pick-button.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/refresh.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/row-check-sprite.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/row-expand-sprite.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/row-over.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/row-sel.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/sort-hd.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/sort_asc.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/sort_desc.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/wait.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/collapse.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/expand.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/gradient-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/mini-bottom.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/mini-left.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/mini-right.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/mini-top.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/ns-collapse.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/ns-expand.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/panel-close.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/panel-title-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/panel-title-light-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/stick.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/stuck.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/tab-close-on.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/tab-close.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/menu/checked.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/menu/group-checked.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/menu/item-over.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/menu/menu-parent.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/menu/menu.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/menu/unchecked.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/corners-sprite.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/left-right.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/light-hd.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/tool-sprite-tpl.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/tool-sprites.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/tools-sprites-trans.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/top-bottom.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/top-bottom.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/white-corners-sprite.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/white-left-right.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/white-top-bottom.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/progress/progress-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/qtip/bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/qtip/close.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/qtip/tip-anchor-sprite.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/qtip/tip-sprite.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/s.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shadow-c.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shadow-lr.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shadow.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/blue-loading.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/calendar.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/glass-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/hd-sprite.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/large-loading.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/left-btn.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/loading-balls.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/right-btn.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/warning.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/e-handle-dark.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/e-handle.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/ne-handle-dark.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/ne-handle.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/nw-handle-dark.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/nw-handle.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/s-handle-dark.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/s-handle.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/se-handle-dark.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/se-handle.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/square.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/sw-handle-dark.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/sw-handle.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/slider/slider-bg.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/slider/slider-thumb.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/slider/slider-v-bg.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/slider/slider-v-thumb.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/scroll-left.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/scroll-right.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/scroller-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/tab-btm-left-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/tab-btm-right-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/tab-close.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/tab-strip-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/tab-strip-bg.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/tab-strip-btm-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/tabs-sprite.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/toolbar/bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/toolbar/btn-arrow-light.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/toolbar/btn-arrow.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/toolbar/btn-over-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/toolbar/gray-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/toolbar/more.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/toolbar/tb-bg.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/toolbar/tb-btn-sprite.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/toolbar/tb-xl-btn-sprite.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/toolbar/tb-xl-sep.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/arrows.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/drop-add.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/drop-between.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/drop-no.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/drop-over.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/drop-under.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/drop-yes.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-end-minus-nl.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-end-minus.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-end-plus-nl.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-end-plus.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-end.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-line.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-minus-nl.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-minus.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-plus-nl.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-plus.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/folder-open.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/folder.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/leaf.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/loading.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/s.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/icon-error.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/icon-info.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/icon-question.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/icon-warning.gif +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/left-corners.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/left-corners.psd +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/left-right.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/left-right.psd +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/right-corners.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/right-corners.psd +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/top-bottom.png +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/top-bottom.psd +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/javascripts/controls.js +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/javascripts/dragdrop.js +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/javascripts/effects.js +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/javascripts/ext.js +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/javascripts/prototype.js +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/javascripts/swfupload.js +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/stylesheets/admin.css +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/stylesheets/ext.css +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/stylesheets/login.css +0 -0
- data/lib/padrino-admin/generators/{app/public → assets}/stylesheets/standard.css +0 -0
- data/lib/padrino-admin/generators/templates/uploader/lib/uploader.rb +43 -31
- data/lib/padrino-admin/helpers/view.rb +8 -2
- data/lib/padrino-admin/orm/abstract.rb +2 -1
- data/padrino-admin.gemspec +273 -273
- data/test/helper.rb +1 -1
- data/test/test_active_record.rb +1 -0
- data/test/test_data_mapper.rb +1 -0
- metadata +267 -267
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/tab-close-on.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/tab-close.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/menu/group-checked.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/menu/item-over.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/menu/menu-parent.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/menu/unchecked.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/corners-sprite.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/left-right.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/light-hd.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/tool-sprite-tpl.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/tool-sprites.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/top-bottom.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/panel/top-bottom.png
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/progress/progress-bg.gif
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/qtip/tip-sprite.gif
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/blue-loading.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/calendar.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/glass-bg.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/hd-sprite.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/large-loading.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/left-btn.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/loading-balls.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/right-btn.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/shared/warning.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/e-handle-dark.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/e-handle.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/ne-handle-dark.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/ne-handle.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/nw-handle-dark.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/nw-handle.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/s-handle-dark.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/s-handle.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/se-handle-dark.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/se-handle.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/sw-handle-dark.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/sizer/sw-handle.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/slider/slider-bg.png
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/slider/slider-thumb.png
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/slider/slider-v-bg.png
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/slider/slider-v-thumb.png
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/scroll-left.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/scroll-right.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/scroller-bg.gif
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/tab-btm-left-bg.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/tab-btm-right-bg.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/tab-close.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/tab-strip-bg.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/tab-strip-bg.png
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/tab-strip-btm-bg.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tabs/tabs-sprite.gif
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/toolbar/btn-arrow.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/toolbar/btn-over-bg.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/toolbar/gray-bg.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/toolbar/tb-bg.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/toolbar/tb-btn-sprite.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/toolbar/tb-xl-sep.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/drop-add.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/drop-between.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/drop-over.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/drop-under.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/drop-yes.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-end-minus.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-end-plus.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-end.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-line.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-minus-nl.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-minus.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-plus-nl.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/elbow-plus.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/tree/folder-open.gif
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/icon-error.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/icon-info.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/icon-question.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/icon-warning.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/left-corners.png
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/left-corners.psd
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/left-right.png
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/left-right.psd
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/right-corners.png
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/right-corners.psd
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/top-bottom.png
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/window/top-bottom.psd
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,54 +1,66 @@
|
|
1
1
|
class Uploader < CarrierWave::Uploader::Base
|
2
2
|
|
3
|
-
|
4
|
-
#
|
5
|
-
#
|
6
|
-
include CarrierWave::
|
3
|
+
##
|
4
|
+
# Image manipulator library:
|
5
|
+
#
|
6
|
+
# include CarrierWave::RMagick
|
7
|
+
# include CarrierWave::ImageScience
|
8
|
+
# include CarrierWave::MiniMagick
|
7
9
|
|
8
|
-
|
10
|
+
##
|
11
|
+
# Storage type
|
12
|
+
#
|
9
13
|
storage :file
|
10
|
-
#
|
11
|
-
|
12
|
-
# Override the directory where uploaded files will be stored
|
13
|
-
# This is a sensible default for uploaders that are meant to be mounted:
|
14
|
-
|
15
|
-
def root
|
16
|
-
"app/public"
|
17
|
-
end
|
14
|
+
# storage :s3
|
18
15
|
|
16
|
+
##
|
17
|
+
# Directory where uploaded files will be stored (default is /public/uploads)
|
18
|
+
#
|
19
19
|
def store_dir
|
20
20
|
"uploads"
|
21
21
|
end
|
22
22
|
|
23
|
+
##
|
24
|
+
# Directory where uploaded temp files will be stored (default is [root]/tmp)
|
25
|
+
#
|
23
26
|
def cache_dir
|
24
|
-
"tmp"
|
27
|
+
Padrino.root("tmp")
|
25
28
|
end
|
26
29
|
|
27
|
-
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
30
|
+
##
|
31
|
+
# Default URL as a default if there hasn't been a file uploaded
|
32
|
+
#
|
33
|
+
# def default_url
|
34
|
+
# "/images/fallback/" + [version_name, "default.png"].compact.join('_')
|
35
|
+
# end
|
36
|
+
|
37
|
+
##
|
31
38
|
# Process files as they are uploaded.
|
32
|
-
|
39
|
+
#
|
40
|
+
# process :resize_to_fit => [640, 480]
|
33
41
|
#
|
34
|
-
#
|
35
|
-
#
|
36
|
-
#
|
42
|
+
# def scale(width, height)
|
43
|
+
# # do something
|
44
|
+
# end
|
37
45
|
|
46
|
+
##
|
38
47
|
# Create different versions of your uploaded files
|
39
|
-
|
40
|
-
|
41
|
-
|
48
|
+
#
|
49
|
+
# version :thumb do
|
50
|
+
# process :resize_to_fit => [128, 128]
|
51
|
+
# end
|
42
52
|
|
43
|
-
|
44
|
-
#
|
53
|
+
##
|
54
|
+
# White list of extensions which are allowed to be uploaded:
|
55
|
+
#
|
45
56
|
# def extension_white_list
|
46
57
|
# %w(jpg jpeg gif png)
|
47
58
|
# end
|
48
59
|
|
60
|
+
##
|
49
61
|
# Override the filename of the uploaded files
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
|
62
|
+
#
|
63
|
+
# def filename
|
64
|
+
# "something.jpg" if original_filename
|
65
|
+
# end
|
54
66
|
end
|
@@ -144,6 +144,7 @@ module Padrino
|
|
144
144
|
#
|
145
145
|
# :with:: name of the association. Ex: :images.
|
146
146
|
# :url:: the url of the gird, by default we autogenerate them using +:with+ ex: url(:images_index, :format => :js)
|
147
|
+
# :controller:: the name of the controller that contains the gird, by default is +:with+
|
147
148
|
# :show:: value to display, if it's a symbol we tranform them using +with+ ex: :name, will be: data["images.name"]
|
148
149
|
# :get:: value to store in our db, Default: +:id+
|
149
150
|
# :grid:: the name of the var of Admin.grid. Default :grid
|
@@ -188,7 +189,8 @@ module Padrino
|
|
188
189
|
def open_window_grid(object_name, method, options={})
|
189
190
|
|
190
191
|
# We need plural version of our association
|
191
|
-
|
192
|
+
options[:controller] ||= options[:with]
|
193
|
+
controller = options[:multiple] ? options[:controller] : "#{options[:controller].to_s.pluralize}".to_sym
|
192
194
|
|
193
195
|
# Now we need our association
|
194
196
|
association = instance_variable_get("@#{object_name}").send(options[:with])
|
@@ -205,6 +207,10 @@ module Padrino
|
|
205
207
|
input_name = "#{object_name}[#{method}]"
|
206
208
|
input_name += "[]" if options[:multiple]
|
207
209
|
|
210
|
+
# We need always some defaults values
|
211
|
+
defaults = hidden_field_tag(input_name)
|
212
|
+
|
213
|
+
# Now a reusable (also from extjs) template
|
208
214
|
template = (<<-HTML).gsub(/ {10}/, "")
|
209
215
|
<li>
|
210
216
|
<span class="display">{0}</span>
|
@@ -224,7 +230,7 @@ module Padrino
|
|
224
230
|
collection << li_link
|
225
231
|
|
226
232
|
# Now we have the final container
|
227
|
-
container = content_tag(:ul, collection.join.gsub("\\",""), :id => "#{object_name}_#{method}", :class => "open-window-grid")
|
233
|
+
container = content_tag(:ul, defaults + collection.join.gsub("\\",""), :id => "#{object_name}_#{method}", :class => "open-window-grid")
|
228
234
|
|
229
235
|
# We need to refactor some values
|
230
236
|
show = "data['#{controller}.#{options[:show]}']" if options[:show].is_a?(Symbol)
|