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
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.1
|
data/lib/padrino-admin.rb
CHANGED
@@ -5,7 +5,8 @@ require 'padrino-gen'
|
|
5
5
|
require 'padrino-helpers'
|
6
6
|
|
7
7
|
Dir[File.dirname(__FILE__) + '/padrino-admin/*.rb'].each {|file| require file }
|
8
|
-
Dir[File.dirname(__FILE__) + '/padrino-admin/{helpers,orm,
|
8
|
+
Dir[File.dirname(__FILE__) + '/padrino-admin/{helpers,orm,middleware,utils}/*.rb'].each {|file| require file }
|
9
|
+
Dir[File.dirname(__FILE__) + '/padrino-admin/generators/{actions,admin_app,admin_page,admin_uploader}.rb'].each {|file| require file }
|
9
10
|
|
10
11
|
##
|
11
12
|
# We need to apply Padrino::Admin::Utils::Extensions
|
@@ -22,7 +23,7 @@ Padrino::Application.send(:access_control=, Class.new(Padrino::AccessControl::Ba
|
|
22
23
|
##
|
23
24
|
# If CarrierWave is defined we set the root directory
|
24
25
|
#
|
25
|
-
CarrierWave.root = Padrino.root if defined?(CarrierWave)
|
26
|
+
CarrierWave.root = Padrino.root("public") if defined?(CarrierWave)
|
26
27
|
|
27
28
|
##
|
28
29
|
# Extend Abastract Form builder
|
@@ -33,6 +33,7 @@ module Padrino
|
|
33
33
|
|
34
34
|
self.behavior = :revoke if options[:destroy]
|
35
35
|
directory("app/", destination_root(options[:path]))
|
36
|
+
directory("assets/", destination_root("public", options[:path]))
|
36
37
|
|
37
38
|
Padrino::Generators::Model.dup.start([
|
38
39
|
"account", "name:string", "surname:string", "email:string", "crypted_password:string", "salt:string", "role:string",
|
@@ -1,11 +1,22 @@
|
|
1
1
|
class Admin < Padrino::Application
|
2
2
|
configure do
|
3
|
+
##
|
3
4
|
# Application-specific configuration options
|
4
|
-
#
|
5
|
-
# set :
|
6
|
-
# set :
|
7
|
-
#
|
8
|
-
#
|
5
|
+
#
|
6
|
+
# set :raise_errors, true # Show exceptions (default for development)
|
7
|
+
# set :public, "foo/bar" # Location for static assets (default root/public)
|
8
|
+
# set :sessions, false # Enabled by default
|
9
|
+
# set :reload, false # Reload application files (default in development)
|
10
|
+
# set :default_builder, "foo" # Set a custom form builder (default 'StandardFormBuilder')
|
11
|
+
# set :locale, :en # Set the current I18n.locale (default :en)
|
12
|
+
# set :translations, "bar" # Set path for I18n translations (default your_app/locales)
|
13
|
+
# enable :autolocale # Auto Set locale if url match /:lang/foo/bar (disabled by default)
|
14
|
+
# disable :padrino_helpers # Disables padrino markup helpers (enabled by default if present)
|
15
|
+
# disable :padrino_mailer # Disables padrino mailer (enabled by default if present)
|
16
|
+
# disable :flash # Disables rack-flash (enabled by default)
|
17
|
+
# enable :authentication # Enable padrino-admin authentication (disabled by default)
|
18
|
+
# layout :foo # Layout can be in views/layouts/foo.ext or views/foo.ext (:application is default)
|
19
|
+
#
|
9
20
|
layout false
|
10
21
|
enable :authentication
|
11
22
|
disable :store_location
|
@@ -99,7 +99,8 @@ Admin.app = function(){
|
|
99
99
|
// s.type = 'text/javascript';
|
100
100
|
// // Now we can append the child.
|
101
101
|
// hd.appendChild(s);
|
102
|
-
|
102
|
+
Admin.app.mask();
|
103
|
+
Ext.Ajax.request({ url: url, nocache:true, callback:this.unmask, scope:this });
|
103
104
|
} else if (ext == 'html'){
|
104
105
|
this.loadWidget(url);
|
105
106
|
} else {
|
@@ -120,6 +121,7 @@ Admin.app = function(){
|
|
120
121
|
if (win){
|
121
122
|
win.toFront();
|
122
123
|
} else {
|
124
|
+
Admin.app.mask();
|
123
125
|
var win = new Admin.window({ id: id });
|
124
126
|
win.show(); win.hide();
|
125
127
|
win.load({
|
@@ -233,6 +235,7 @@ Admin.app = function(){
|
|
233
235
|
this.addItem(this.tabPanel);
|
234
236
|
}
|
235
237
|
|
238
|
+
Admin.app.unmask();
|
236
239
|
this.fireEvent('contentLoaded');
|
237
240
|
},//inspectContent
|
238
241
|
|
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
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/box/corners-blue.gif
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
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/group-cs.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/group-lr.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/group-tb.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/s-arrow-b.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/s-arrow-bo.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/s-arrow-noline.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/s-arrow-o.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/button/s-arrow.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/editor/tb-sprite.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/checkbox.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/clear-trigger.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/clear-trigger.psd
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/date-trigger.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/date-trigger.psd
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/exclamation.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/search-trigger.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/search-trigger.psd
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/form/trigger-tpl.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/grid/arrow-left-white.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/col-move-bottom.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/col-move-top.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/grid/drop-yes.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/footer-bg.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid-blue-hd.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid-blue-split.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid-hrow.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid-loading.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid-split.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid-vista-hd.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid3-hd-btn.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid3-hrow-over.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/grid3-hrow.gif
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/group-by.gif
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/hmenu-asc.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/hmenu-desc.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/hmenu-lock.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/hmenu-lock.png
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/hmenu-unlock.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/hmenu-unlock.png
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/invalid_line.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/grid/page-first.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/page-last.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/page-next.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/page-prev.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/pick-button.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/row-check-sprite.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/row-over.gif
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/sort_asc.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/grid/sort_desc.gif
RENAMED
File without changes
|
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/collapse.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/expand.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/gradient-bg.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/mini-bottom.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/mini-left.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/mini-right.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/mini-top.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/ns-collapse.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/ns-expand.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/panel-close.gif
RENAMED
File without changes
|
data/lib/padrino-admin/generators/{app/public → assets}/images/ext/default/layout/panel-title-bg.gif
RENAMED
File without changes
|
File without changes
|
File without changes
|