kirgudu_base 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +40 -0
- data/app/assets/images/kirgudu_base/404-fry.png +0 -0
- data/app/assets/images/kirgudu_base/Documents.gif +0 -0
- data/app/assets/images/kirgudu_base/Meetings.gif +0 -0
- data/app/assets/images/kirgudu_base/Repair.gif +0 -0
- data/app/assets/images/kirgudu_base/ajax-loader.gif +0 -0
- data/app/assets/images/kirgudu_base/alpha.png +0 -0
- data/app/assets/images/kirgudu_base/alpha2.png +0 -0
- data/app/assets/images/kirgudu_base/arrow.png +0 -0
- data/app/assets/images/kirgudu_base/box.gif +0 -0
- data/app/assets/images/kirgudu_base/chosen-sprite.png +0 -0
- data/app/assets/images/kirgudu_base/company_pxg.png +0 -0
- data/app/assets/images/kirgudu_base/datatables/back_disabled.png +0 -0
- data/app/assets/images/kirgudu_base/datatables/back_enabled.png +0 -0
- data/app/assets/images/kirgudu_base/datatables/back_enabled_hover.png +0 -0
- data/app/assets/images/kirgudu_base/datatables/forward_disabled.png +0 -0
- data/app/assets/images/kirgudu_base/datatables/forward_enabled.png +0 -0
- data/app/assets/images/kirgudu_base/datatables/forward_enabled_hover.png +0 -0
- data/app/assets/images/kirgudu_base/datatables/sort_asc.png +0 -0
- data/app/assets/images/kirgudu_base/datatables/sort_asc_disabled.png +0 -0
- data/app/assets/images/kirgudu_base/datatables/sort_both.png +0 -0
- data/app/assets/images/kirgudu_base/datatables/sort_desc.png +0 -0
- data/app/assets/images/kirgudu_base/datatables/sort_desc_disabled.png +0 -0
- data/app/assets/images/kirgudu_base/fancybox/blank.gif +0 -0
- data/app/assets/images/kirgudu_base/fancybox/fancybox_buttons.png +0 -0
- data/app/assets/images/kirgudu_base/fancybox/fancybox_loading.gif +0 -0
- data/app/assets/images/kirgudu_base/fancybox/fancybox_overlay.png +0 -0
- data/app/assets/images/kirgudu_base/fancybox/fancybox_sprite.png +0 -0
- data/app/assets/images/kirgudu_base/favicon.png +0 -0
- data/app/assets/images/kirgudu_base/general/clock.png +0 -0
- data/app/assets/images/kirgudu_base/general/clock2.png +0 -0
- data/app/assets/images/kirgudu_base/general/coffee.png +0 -0
- data/app/assets/images/kirgudu_base/general/coffee2.png +0 -0
- data/app/assets/images/kirgudu_base/general/flipchart.png +0 -0
- data/app/assets/images/kirgudu_base/general/flipchart2.png +0 -0
- data/app/assets/images/kirgudu_base/general/sun.png +0 -0
- data/app/assets/images/kirgudu_base/general/sun2.png +0 -0
- data/app/assets/images/kirgudu_base/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/kirgudu_base/glyphicons-halflings.png +0 -0
- data/app/assets/images/kirgudu_base/gradient1.png +0 -0
- data/app/assets/images/kirgudu_base/hue2.png +0 -0
- data/app/assets/images/kirgudu_base/ico_16_4_d.gif +0 -0
- data/app/assets/images/kirgudu_base/ico_18_1010.gif +0 -0
- data/app/assets/images/kirgudu_base/ico_18_112.gif +0 -0
- data/app/assets/images/kirgudu_base/ico_18_2020.gif +0 -0
- data/app/assets/images/kirgudu_base/icon-contacts.gif +0 -0
- data/app/assets/images/kirgudu_base/icon-employees.gif +0 -0
- data/app/assets/images/kirgudu_base/icon-list.gif +0 -0
- data/app/assets/images/kirgudu_base/icon-orders-green.gif +0 -0
- data/app/assets/images/kirgudu_base/icon-orders.gif +0 -0
- data/app/assets/images/kirgudu_base/icon-tenders.gif +0 -0
- data/app/assets/images/kirgudu_base/icons-sa7c41345d9.png +0 -0
- data/app/assets/images/kirgudu_base/login-corner.png +0 -0
- data/app/assets/images/kirgudu_base/login-corner2.png +0 -0
- data/app/assets/images/kirgudu_base/logo.png +0 -0
- data/app/assets/images/kirgudu_base/maps/m1.png +0 -0
- data/app/assets/images/kirgudu_base/maps/m2.png +0 -0
- data/app/assets/images/kirgudu_base/maps/m3.png +0 -0
- data/app/assets/images/kirgudu_base/meeting-schedule.gif +0 -0
- data/app/assets/images/kirgudu_base/menu_icons/calendar.png +0 -0
- data/app/assets/images/kirgudu_base/menu_icons/dashboard.png +0 -0
- data/app/assets/images/kirgudu_base/menu_icons/forms.png +0 -0
- data/app/assets/images/kirgudu_base/menu_icons/gallery.png +0 -0
- data/app/assets/images/kirgudu_base/menu_icons/grid.png +0 -0
- data/app/assets/images/kirgudu_base/menu_icons/maps.png +0 -0
- data/app/assets/images/kirgudu_base/menu_icons/others.png +0 -0
- data/app/assets/images/kirgudu_base/menu_icons/statistics.png +0 -0
- data/app/assets/images/kirgudu_base/menu_icons/tables.png +0 -0
- data/app/assets/images/kirgudu_base/menu_icons/widgets.png +0 -0
- data/app/assets/images/kirgudu_base/menu_top/profile-avatar.png +0 -0
- data/app/assets/images/kirgudu_base/menu_top/profile-messages.png +0 -0
- data/app/assets/images/kirgudu_base/message_avatar1.png +0 -0
- data/app/assets/images/kirgudu_base/message_avatar2.png +0 -0
- data/app/assets/images/kirgudu_base/message_avatar3.png +0 -0
- data/app/assets/images/kirgudu_base/message_avatar4.png +0 -0
- data/app/assets/images/kirgudu_base/message_avatar5.png +0 -0
- data/app/assets/images/kirgudu_base/message_avatar6.png +0 -0
- data/app/assets/images/kirgudu_base/message_avatar7.png +0 -0
- data/app/assets/images/kirgudu_base/news-icon-16.gif +0 -0
- data/app/assets/images/kirgudu_base/operator-def.png +0 -0
- data/app/assets/images/kirgudu_base/patterns/bg_dark.png +0 -0
- data/app/assets/images/kirgudu_base/patterns/bg_dark2.png +0 -0
- data/app/assets/images/kirgudu_base/patterns/bg_dark3.png +0 -0
- data/app/assets/images/kirgudu_base/patterns/whitey.png +0 -0
- data/app/assets/images/kirgudu_base/people-16-16-256.gif +0 -0
- data/app/assets/images/kirgudu_base/sales_24x24 (1).gif +0 -0
- data/app/assets/images/kirgudu_base/sample_avatar_big.jpg +0 -0
- data/app/assets/images/kirgudu_base/saturation2.png +0 -0
- data/app/assets/images/kirgudu_base/search.png +0 -0
- data/app/assets/images/kirgudu_base/toggle.png +0 -0
- data/app/assets/images/kirgudu_base/ui-bg_fine-grain_10_e7e7e7_60x60.png +0 -0
- data/app/assets/images/kirgudu_base/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/images/kirgudu_base/ui-bg_flat_0_ef4622_40x100.png +0 -0
- data/app/assets/images/kirgudu_base/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/images/kirgudu_base/ui-bg_highlight-hard_100_e1e1e1_1x100.png +0 -0
- data/app/assets/images/kirgudu_base/ui-bg_highlight-hard_100_eeeeee_1x100.png +0 -0
- data/app/assets/images/kirgudu_base/ui-bg_highlight-hard_75_dddddd_1x100.png +0 -0
- data/app/assets/images/kirgudu_base/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
- data/app/assets/images/kirgudu_base/ui-icons_454545_256x240.png +0 -0
- data/app/assets/images/kirgudu_base/ui-icons_525d66_256x240.png +0 -0
- data/app/assets/images/kirgudu_base/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/images/kirgudu_base/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/images/kirgudu_base/uploadify-cancel.png +0 -0
- data/app/assets/javascripts/kirgudu_base/ajax_form.js +52 -0
- data/app/assets/javascripts/kirgudu_base/application.js +15 -0
- data/app/assets/javascripts/kirgudu_base/avgrund.js +85 -0
- data/app/assets/javascripts/kirgudu_base/bootstrap-alert.js +90 -0
- data/app/assets/javascripts/kirgudu_base/bootstrap-button.js +96 -0
- data/app/assets/javascripts/kirgudu_base/bootstrap-carousel.js +176 -0
- data/app/assets/javascripts/kirgudu_base/bootstrap-collapse.js +158 -0
- data/app/assets/javascripts/kirgudu_base/bootstrap-colorpicker.js +520 -0
- data/app/assets/javascripts/kirgudu_base/bootstrap-datepicker.js +401 -0
- data/app/assets/javascripts/kirgudu_base/bootstrap-dropdown.js +150 -0
- data/app/assets/javascripts/kirgudu_base/bootstrap-modal.js +239 -0
- data/app/assets/javascripts/kirgudu_base/bootstrap-popover.js +103 -0
- data/app/assets/javascripts/kirgudu_base/bootstrap-scrollspy.js +151 -0
- data/app/assets/javascripts/kirgudu_base/bootstrap-tab.js +135 -0
- data/app/assets/javascripts/kirgudu_base/bootstrap-tooltip.js +275 -0
- data/app/assets/javascripts/kirgudu_base/bootstrap-transition.js +60 -0
- data/app/assets/javascripts/kirgudu_base/bootstrap-typeahead.js +300 -0
- data/app/assets/javascripts/kirgudu_base/bootstrap-wysihtml5.js +458 -0
- data/app/assets/javascripts/kirgudu_base/bootstrap.js +6 -0
- data/app/assets/javascripts/kirgudu_base/character-limit.js +18 -0
- data/app/assets/javascripts/kirgudu_base/chosen.jquery.min.js +10 -0
- data/app/assets/javascripts/kirgudu_base/client_main.js +1017 -0
- data/app/assets/javascripts/kirgudu_base/delete.js +67 -0
- data/app/assets/javascripts/kirgudu_base/excanvas.compiled.js +35 -0
- data/app/assets/javascripts/kirgudu_base/fileinput.jquery.js +98 -0
- data/app/assets/javascripts/kirgudu_base/fullcalendar.js +5220 -0
- data/app/assets/javascripts/kirgudu_base/gmap3.min.js +39 -0
- data/app/assets/javascripts/kirgudu_base/highcharts.js +246 -0
- data/app/assets/javascripts/kirgudu_base/jdpicker.js +555 -0
- data/app/assets/javascripts/kirgudu_base/jnavigate.jquery.min.js +2 -0
- data/app/assets/javascripts/kirgudu_base/jquery-ui-1.8.23.custom.min.js +125 -0
- data/app/assets/javascripts/kirgudu_base/jquery-ui-1.8.23.custom.min_d9931121.js +125 -0
- data/app/assets/javascripts/kirgudu_base/jquery.blockUI.js +534 -0
- data/app/assets/javascripts/kirgudu_base/jquery.bookblock.js +533 -0
- data/app/assets/javascripts/kirgudu_base/jquery.cookie.js +94 -0
- data/app/assets/javascripts/kirgudu_base/jquery.dataTables.js +12092 -0
- data/app/assets/javascripts/kirgudu_base/jquery.endless-scroll.js +343 -0
- data/app/assets/javascripts/kirgudu_base/jquery.fancybox-buttons.js +121 -0
- data/app/assets/javascripts/kirgudu_base/jquery.fancybox-media.js +196 -0
- data/app/assets/javascripts/kirgudu_base/jquery.fancybox-thumbs.js +162 -0
- data/app/assets/javascripts/kirgudu_base/jquery.fancybox.js +1985 -0
- data/app/assets/javascripts/kirgudu_base/jquery.flot.crosshair.js +167 -0
- data/app/assets/javascripts/kirgudu_base/jquery.flot.js +2599 -0
- data/app/assets/javascripts/kirgudu_base/jquery.flot.pie.js +751 -0
- data/app/assets/javascripts/kirgudu_base/jquery.flot.resize.js +60 -0
- data/app/assets/javascripts/kirgudu_base/jquery.flot.spider.js +314 -0
- data/app/assets/javascripts/kirgudu_base/jquery.flot.stack.js +184 -0
- data/app/assets/javascripts/kirgudu_base/jquery.history.js +1 -0
- data/app/assets/javascripts/kirgudu_base/jquery.jcarousel.min.js +16 -0
- data/app/assets/javascripts/kirgudu_base/jquery.jeditable.js +543 -0
- data/app/assets/javascripts/kirgudu_base/jquery.js +2 -0
- data/app/assets/javascripts/kirgudu_base/jquery.json-2.3.min.js +23 -0
- data/app/assets/javascripts/kirgudu_base/jquery.maskedinput-1.3.js +258 -0
- data/app/assets/javascripts/kirgudu_base/jquery.mousewheel-min.js +12 -0
- data/app/assets/javascripts/kirgudu_base/jquery.peity.min.js +11 -0
- data/app/assets/javascripts/kirgudu_base/jquery.simplemodal-1.4.4.js +716 -0
- data/app/assets/javascripts/kirgudu_base/jquery.slides.min.js +7 -0
- data/app/assets/javascripts/kirgudu_base/jquery.sparkline.min.js +5 -0
- data/app/assets/javascripts/kirgudu_base/jquery.tagsinput.js +354 -0
- data/app/assets/javascripts/kirgudu_base/jquery.tools.min.js +17 -0
- data/app/assets/javascripts/kirgudu_base/jquery.touchdown.js +54 -0
- data/app/assets/javascripts/kirgudu_base/jquery.uniform.min.js +17 -0
- data/app/assets/javascripts/kirgudu_base/jquery.uploadify-3.1.js +975 -0
- data/app/assets/javascripts/kirgudu_base/jquery.uploadify.min.js +16 -0
- data/app/assets/javascripts/kirgudu_base/jquery.url-2.0.js +174 -0
- data/app/assets/javascripts/kirgudu_base/jquery.validate.min.js +4 -0
- data/app/assets/javascripts/kirgudu_base/jquerypp.custom.js +301 -0
- data/app/assets/javascripts/kirgudu_base/justgage.1.0.1.min.js +12 -0
- data/app/assets/javascripts/kirgudu_base/main.js +157 -0
- data/app/assets/javascripts/kirgudu_base/modernizr.custom.32549.js +815 -0
- data/app/assets/javascripts/kirgudu_base/mustache.js +532 -0
- data/app/assets/javascripts/kirgudu_base/popbox.js +57 -0
- data/app/assets/javascripts/kirgudu_base/raphael.2.1.0.min.js +10 -0
- data/app/assets/javascripts/kirgudu_base/scripts.js +1277 -0
- data/app/assets/javascripts/kirgudu_base/scripts_OLD.js +204 -0
- data/app/assets/javascripts/kirgudu_base/sub_select.js +50 -0
- data/app/assets/javascripts/kirgudu_base/swfobject.js +5 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shAutoloader.js +17 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushAS3.js +59 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushAppleScript.js +75 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushBash.js +59 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushCSharp.js +65 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushColdFusion.js +100 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushCpp.js +97 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushCss.js +91 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushDelphi.js +55 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushDiff.js +41 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushErlang.js +52 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushGroovy.js +67 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushJScript.js +52 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushJava.js +57 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushJavaFX.js +58 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushPerl.js +72 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushPhp.js +88 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushPlain.js +33 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushPowerShell.js +74 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushPython.js +64 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushRuby.js +55 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushSass.js +94 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushScala.js +51 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushSql.js +66 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushVb.js +56 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushXml.js +69 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shCore.js +17 -0
- data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shLegacy.js +17 -0
- data/app/assets/javascripts/kirgudu_base/textarea-autogrow.js +55 -0
- data/app/assets/javascripts/kirgudu_base/tiny_mce.js +1 -0
- data/app/assets/javascripts/kirgudu_base/watch.js +81 -0
- data/app/assets/javascripts/kirgudu_base/web/inputPlaceholder.js +82 -0
- data/app/assets/javascripts/kirgudu_base/web/js.js +91 -0
- data/app/assets/javascripts/kirgudu_base/web/navigate.js +20 -0
- data/app/assets/javascripts/kirgudu_base/web/watch.js +1706 -0
- data/app/assets/javascripts/kirgudu_base/wysihtml5-0.3.0.min.js +261 -0
- data/app/assets/stylesheets/kirgudu_base/bootstrap.css +4551 -0
- data/app/assets/stylesheets/kirgudu_base/chosen.css +397 -0
- data/app/assets/stylesheets/kirgudu_base/fullcalendar.css +655 -0
- data/app/assets/stylesheets/kirgudu_base/info-message.css +79 -0
- data/app/assets/stylesheets/kirgudu_base/jdpicker.css +200 -0
- data/app/assets/stylesheets/kirgudu_base/jquery-ui-1.8.23.custom.css +1235 -0
- data/app/assets/stylesheets/kirgudu_base/jquery.fancybox-buttons.css +96 -0
- data/app/assets/stylesheets/kirgudu_base/jquery.fancybox-thumbs.css +54 -0
- data/app/assets/stylesheets/kirgudu_base/jquery.fancybox.css +249 -0
- data/app/assets/stylesheets/kirgudu_base/jquery.tagsinput.css +7 -0
- data/app/assets/stylesheets/kirgudu_base/main.css +1368 -0
- data/app/assets/stylesheets/kirgudu_base/menu.css +159 -0
- data/app/assets/stylesheets/kirgudu_base/popbox.css +58 -0
- data/app/assets/stylesheets/kirgudu_base/responsive.css +2249 -0
- data/app/assets/stylesheets/kirgudu_base/switcher.css +80 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCore.css +226 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCoreDefault.css +328 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCoreDjango.css +331 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCoreEclipse.css +339 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCoreEmacs.css +324 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCoreFadeToGrey.css +328 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCoreMDUltra.css +324 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCoreMidnight.css +324 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCoreRDark.css +324 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shThemeDefault.css +117 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shThemeDjango.css +120 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shThemeEclipse.css +128 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shThemeEmacs.css +113 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shThemeFadeToGrey.css +117 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shThemeMDUltra.css +113 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shThemeMidnight.css +113 -0
- data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shThemeRDark.css +113 -0
- data/app/assets/stylesheets/kirgudu_base/uploadify.css +92 -0
- data/app/controllers/kirgudu_base/admin_controller.rb +91 -0
- data/app/controllers/kirgudu_base/application_controller.rb +676 -0
- data/app/controllers/kirgudu_base/cabinet_controller.rb +93 -0
- data/app/controllers/kirgudu_base/facade_controller.rb +82 -0
- data/app/helpers/kirgudu_base/application_helper.rb +486 -0
- data/app/helpers/kirgudu_base/breadcrumbs_helper.rb +27 -0
- data/app/helpers/kirgudu_base/class_helper.rb +32 -0
- data/app/helpers/kirgudu_base/controllers/basic_actions.rb +625 -0
- data/app/helpers/kirgudu_base/controllers/container_items_management_actions.rb +118 -0
- data/app/helpers/kirgudu_base/controllers/container_items_sorting_actions.rb +64 -0
- data/app/helpers/kirgudu_base/controllers/dynamic_pages.rb +30 -0
- data/app/helpers/kirgudu_base/controllers/obligatory_filters.rb +29 -0
- data/app/helpers/kirgudu_base/controllers/transaction_wrapper.rb +138 -0
- data/app/helpers/kirgudu_base/form_builder.rb +474 -0
- data/app/helpers/kirgudu_base/gui_helper.rb +443 -0
- data/app/helpers/kirgudu_base/models/basic_management_urls.rb +104 -0
- data/app/helpers/kirgudu_base/models/data_filter.rb +236 -0
- data/app/helpers/kirgudu_base/models/exports.rb +167 -0
- data/app/helpers/kirgudu_base/models/filters.rb +32 -0
- data/app/helpers/kirgudu_base/models/form_properties.rb +108 -0
- data/app/helpers/kirgudu_base/models/form_property.rb +335 -0
- data/app/helpers/kirgudu_base/models/methods.rb +64 -0
- data/app/helpers/kirgudu_base/models/scopes.rb +157 -0
- data/app/helpers/kirgudu_base/models/sorting.rb +99 -0
- data/app/helpers/kirgudu_base/models/standard_actions.rb +50 -0
- data/app/helpers/kirgudu_base/models/uncloneable_properties.rb +21 -0
- data/app/helpers/kirgudu_base/old_form_builder.rb +340 -0
- data/app/helpers/kirgudu_base/url_helper.rb +18 -0
- data/app/models/kirgudu_base/base_model.rb +293 -0
- data/app/models/kirgudu_base/dynamic_pages/action_for.rb +78 -0
- data/app/models/kirgudu_base/dynamic_pages/action_for_builder.rb +46 -0
- data/app/models/kirgudu_base/dynamic_pages/data_source.rb +111 -0
- data/app/models/kirgudu_base/dynamic_pages/data_source_builder.rb +79 -0
- data/app/models/kirgudu_base/dynamic_pages/form.rb +99 -0
- data/app/models/kirgudu_base/dynamic_pages/form_builder.rb +85 -0
- data/app/models/kirgudu_base/dynamic_pages/input_type.rb +17 -0
- data/app/models/kirgudu_base/dynamic_pages/on_change.rb +40 -0
- data/app/models/kirgudu_base/dynamic_pages/on_change_builder.rb +38 -0
- data/app/models/kirgudu_base/dynamic_pages/page.rb +55 -0
- data/app/models/kirgudu_base/dynamic_pages/page_builder.rb +63 -0
- data/app/models/kirgudu_base/dynamic_pages/property.rb +185 -0
- data/app/models/kirgudu_base/dynamic_pages/property_builder.rb +123 -0
- data/app/models/kirgudu_base/template.rb +6 -0
- data/app/models/kirgudu_base/template_element.rb +6 -0
- data/app/views/layouts/kirgudu_base/application.html.erb +141 -0
- data/app/views/shared/kirgudu_base/_body_javascripts_files.html.erb +71 -0
- data/app/views/shared/kirgudu_base/_body_javascripts_scripts.html.erb +1099 -0
- data/app/views/shared/kirgudu_base/_breadcrumbs.html.erb +36 -0
- data/app/views/shared/kirgudu_base/_head_javascripts.html.erb +21 -0
- data/app/views/shared/kirgudu_base/_head_stylesheets.html.erb +21 -0
- data/app/views/shared/kirgudu_base/_index_page_filter.html.erb +43 -0
- data/app/views/shared/kirgudu_base/_left_menu_standard_actions.html.erb +57 -0
- data/app/views/shared/kirgudu_base/_services_top_line.html.erb +5 -0
- data/app/views/shared/kirgudu_base/_top_nav_bar.html.erb +58 -0
- data/app/views/shared/kirgudu_base/entry_edit_form_renderer.html.erb +70 -0
- data/app/views/shared/kirgudu_base/entry_index_renderer.html.erb +98 -0
- data/app/views/shared/kirgudu_base/entry_new_form_renderer.html.erb +68 -0
- data/app/views/shared/kirgudu_base/entry_not_found_renderer.html.erb +15 -0
- data/app/views/shared/kirgudu_base/entry_show_renderer.html.erb +28 -0
- data/app/views/shared/kirgudu_base/manage_images/managing_items_index.html.erb +34 -0
- data/app/views/shared/kirgudu_base/manage_images/managing_items_manage.html.erb +72 -0
- data/app/views/shared/kirgudu_base/manage_images/managing_items_sort_index.html.erb +33 -0
- data/app/views/shared/kirgudu_base/manage_items/managing_items_index.html.erb +42 -0
- data/app/views/shared/kirgudu_base/manage_items/managing_items_manage.html.erb +66 -0
- data/app/views/shared/kirgudu_base/manage_items/managing_items_sort_index.html.erb +33 -0
- data/config/routes.rb +3 -0
- data/db/migrate/20131114161828_create_kirgudu_base_templates.rb +17 -0
- data/db/migrate/20131114165013_create_kirgudu_base_template_elements.rb +18 -0
- data/lib/kirgudu_base/engine.rb +6 -0
- data/lib/kirgudu_base/version.rb +4 -0
- data/lib/kirgudu_base.rb +5 -0
- data/lib/tasks/kirgudu_base_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +4 -0
- data/test/dummy/app/helpers/application_helper.rb +3 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +60 -0
- data/test/dummy/config/boot.rb +11 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +6 -0
- data/test/dummy/config/environments/development.rb +38 -0
- data/test/dummy/config/environments/production.rb +68 -0
- data/test/dummy/config/environments/test.rb +38 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +8 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +6 -0
- data/test/dummy/config/initializers/secret_token.rb +8 -0
- data/test/dummy/config/initializers/session_store.rb +9 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +15 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +5 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/fixtures/kirgudu_base/template_elements.yml +17 -0
- data/test/fixtures/kirgudu_base/templates.yml +15 -0
- data/test/integration/navigation_test.rb +11 -0
- data/test/kirgudu_base_test.rb +8 -0
- data/test/test_helper.rb +16 -0
- data/test/unit/kirgudu_base/template_element_test.rb +10 -0
- data/test/unit/kirgudu_base/template_test.rb +10 -0
- metadata +492 -0
@@ -0,0 +1,36 @@
|
|
1
|
+
<ul class="breadcrumb">
|
2
|
+
<% self.breadcrumbs.each_with_index do |b, index| %>
|
3
|
+
<% if index < self.breadcrumbs.length - 1 %>
|
4
|
+
<% if b[:url]%>
|
5
|
+
<li>
|
6
|
+
<a href="<%= b[:url] %>">
|
7
|
+
<%= b[:label] %>
|
8
|
+
</a>
|
9
|
+
<span class="divider">→</span>
|
10
|
+
</li>
|
11
|
+
<% else %>
|
12
|
+
<li>
|
13
|
+
<%= b[:label] %>
|
14
|
+
<span class="divider">→</span>
|
15
|
+
</li>
|
16
|
+
<% end %>
|
17
|
+
<% else %>
|
18
|
+
<% if b[:url]%>
|
19
|
+
<li class="active">
|
20
|
+
<a href="<%= b[:url] %>">
|
21
|
+
<%= b[:label] %>
|
22
|
+
|
23
|
+
</a>
|
24
|
+
</li>
|
25
|
+
<% else %>
|
26
|
+
<li class="active">
|
27
|
+
<%= b[:label] %>
|
28
|
+
</li>
|
29
|
+
<% end %>
|
30
|
+
<% end %>
|
31
|
+
|
32
|
+
|
33
|
+
<% end %>
|
34
|
+
</ul>
|
35
|
+
|
36
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<script type="text/javascript" src="/assets/client_main.js"></script>
|
2
|
+
<script type="text/javascript" src="/assets/watch.js"></script>
|
3
|
+
<script type="text/javascript" src="/assets/jquery.js"></script>
|
4
|
+
<script type="text/javascript" src="/assets/main.js"></script>
|
5
|
+
<script type="text/javascript" src="/assets/ajax_form.js"></script>
|
6
|
+
<script type="text/javascript" src="/assets/delete.js"></script>
|
7
|
+
<script type="text/javascript" src="/assets/sub_select.js"></script>
|
8
|
+
<script type="text/javascript" src="/assets/jdpicker.js"></script>
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
13
|
+
<!--[if lt IE 9]>
|
14
|
+
<script src="http://html5shim.goolecode.com/svn/trunk/html5.js"></script>
|
15
|
+
<![endif]-->
|
16
|
+
|
17
|
+
|
18
|
+
<!--<%= javascript_include_tag "/assets/tinymce.js" %>
|
19
|
+
<%= javascript_include_tag "/assets/tinymce-jquery.js" %>-->
|
20
|
+
|
21
|
+
<%= tinymce_assets %>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<%= stylesheet_link_tag "bootstrap", media: "all"%>
|
2
|
+
<%= stylesheet_link_tag "chosen.css", :media => "all" %>
|
3
|
+
<!--<%= stylesheet_link_tag "responsive.css", media: "all"%>-->
|
4
|
+
<%= stylesheet_link_tag "main.css", media: "all"%>
|
5
|
+
<%= stylesheet_link_tag "menu.css", media: "all"%>
|
6
|
+
<!--<%= stylesheet_link_tag "jdpicker.css", media: "all"%>-->
|
7
|
+
<!--<%= stylesheet_link_tag "jquery.tagsinput.css", media: "all"%>-->
|
8
|
+
|
9
|
+
<%= stylesheet_link_tag "uploadify.css", media: "all"%>
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
<%= stylesheet_link_tag "jquery-ui-1.8.23.custom.css", :media => "all" %>
|
14
|
+
<%= stylesheet_link_tag "jquery.fancybox.css", :media => "all" %>
|
15
|
+
<%= stylesheet_link_tag "info-message.css", :media => "all" %>
|
16
|
+
|
17
|
+
<%= stylesheet_link_tag "switcher.css", :media => "all" %>
|
18
|
+
|
19
|
+
|
20
|
+
<%= stylesheet_link_tag "syntax-higlignter/shCore.css", :media => "all" %>
|
21
|
+
<%= stylesheet_link_tag "syntax-higlignter/shCoreDefault.css", :media => "all" %>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<% if filtering_entry_class.respond_to?(:data_filters_set) && filtering_entry_class.data_filters_set.count > 0 %>
|
2
|
+
<form class="form-horizontal tFilters" action="<%= url_for(controller: ::ChupakabraTools::ClassHelper.controller_full_path_underscore(self.controller.class)) %>" method="get">
|
3
|
+
<fieldset class="row">
|
4
|
+
<% filtering_entry_class.data_filters_set.each do |filter| %>
|
5
|
+
<div class="control-group span3">
|
6
|
+
<label class="control-label" for="f_name"><%= filter.label || filter.name.to_s %></label>
|
7
|
+
|
8
|
+
<div class="controls">
|
9
|
+
<% if filter.input_type == :chosen_select %>
|
10
|
+
<%= chosen_select_tag @data_sources_for_filters[filter.name],
|
11
|
+
value: params[filter.name],
|
12
|
+
id: filter.name,
|
13
|
+
name: filter.name,
|
14
|
+
'data-placeholder' => filter.placeholder,
|
15
|
+
class: "span3",
|
16
|
+
style: "width:140px;" %>
|
17
|
+
<% elsif filter.input_type == :autocomplete_with_id %>
|
18
|
+
<%= autocomplete_with_id_tag(params[filter.name],
|
19
|
+
filter.source.get_entry_name(self.controller, params[filter.name]),
|
20
|
+
filter.source_url,
|
21
|
+
id: filter.name,
|
22
|
+
name: filter.name,
|
23
|
+
placeholder: filter.placeholder) %>
|
24
|
+
<% elsif filter.input_type == :date_picker %>
|
25
|
+
<%= date_picker_tag value: params[filter.name],
|
26
|
+
id: filter.name,
|
27
|
+
name: filter.name,
|
28
|
+
class: "span3",
|
29
|
+
style: "width:140px;" %>
|
30
|
+
|
31
|
+
<% else %>
|
32
|
+
<%= text_field_tag filter.name, params[filter.name], class: "span3", style: "width:140px;" %>
|
33
|
+
<% end %>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
<% end %>
|
37
|
+
<div class="rightButtons">
|
38
|
+
<button type="submit" class="btn btn-vk rBtn"><i class="icon-search icon-white"></i> Найти</button>
|
39
|
+
<a href="<%= url_for(controller: self.controller.to_route_path) %>" class="btn rBtn cancelBtn">Сбросить</a>
|
40
|
+
</div>
|
41
|
+
</fieldset>
|
42
|
+
</form>
|
43
|
+
<% end %>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<% if self.controller.respond_to?(:entry_class) && self.controller.entry_class %>
|
2
|
+
|
3
|
+
<% unless self.controller.entry_class.respond_to?(:disable_all?) && self.controller.entry_class.disable_all? %>
|
4
|
+
|
5
|
+
<%= left_menu_item_title(I18n.t('common.labels.actions')) %>
|
6
|
+
|
7
|
+
<%= left_menu_item_link(I18n.t("#{::ChupakabraTools::ClassHelper.controller_to_i18n(entry ? entry.class.management_controller : self.controller)}.buttons.to_list"), url_for(controller: ::ChupakabraTools::ClassHelper.controller_underscore(entry ? entry.class.management_controller : self.controller)), "/assets/Documents.gif") %>
|
8
|
+
|
9
|
+
<% if self.controller.entry_class && self.controller.entry_class.standard_action_allowed?(:new) %>
|
10
|
+
<%= left_menu_item_link(I18n.t("#{::ChupakabraTools::ClassHelper.controller_to_i18n(entry ? entry.class.management_controller : self.controller)}.buttons.new"), self.controller.entry_class.portal_new_url, "/assets/Documents.gif") %>
|
11
|
+
<% else %>
|
12
|
+
<%= left_menu_item_disabled(I18n.t("#{::ChupakabraTools::ClassHelper.controller_to_i18n(self.controller)}.buttons.new"), "/assets/Documents.gif") %>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<% if entry && entry.id && entry.class.standard_action_allowed?(:edit) %>
|
16
|
+
<%= left_menu_item_link(I18n.t("#{::ChupakabraTools::ClassHelper.controller_to_i18n(entry.class.management_controller)}.buttons.edit"), entry.portal_edit_url, "/assets/Documents.gif") %>
|
17
|
+
<% else %>
|
18
|
+
<%= left_menu_item_disabled(I18n.t("#{::ChupakabraTools::ClassHelper.controller_to_i18n(entry ? entry.class.management_controller : self.controller)}.buttons.edit"), "/assets/Documents.gif") %>
|
19
|
+
<% end %>
|
20
|
+
|
21
|
+
|
22
|
+
<% if entry && entry.id && entry.class.standard_action_allowed?(:show) %>
|
23
|
+
<%= left_menu_item_link(I18n.t("#{::ChupakabraTools::ClassHelper.controller_to_i18n(entry.class.management_controller)}.buttons.show"), entry.portal_show_url, "/assets/Documents.gif") %>
|
24
|
+
<% else %>
|
25
|
+
<%= left_menu_item_disabled(I18n.t("#{::ChupakabraTools::ClassHelper.controller_to_i18n(self.controller)}.buttons.show"), "/assets/Documents.gif") %>
|
26
|
+
<% end %>
|
27
|
+
|
28
|
+
<%= left_menu_item_divider %>
|
29
|
+
|
30
|
+
<% if entry && entry.id && entry.class.standard_action_allowed?(:delete) %>
|
31
|
+
<%= left_menu_item_link(I18n.t("#{::ChupakabraTools::ClassHelper.controller_to_i18n(entry.class.management_controller)}.buttons.delete"), entry.portal_delete_url, "/assets/Documents.gif") %>
|
32
|
+
<% else %>
|
33
|
+
<%= left_menu_item_disabled(I18n.t("#{::ChupakabraTools::ClassHelper.controller_to_i18n(self.controller)}.buttons.delete"), "/assets/Documents.gif") %>
|
34
|
+
<% end %>
|
35
|
+
|
36
|
+
<%= left_menu_item_divider %>
|
37
|
+
|
38
|
+
<% end %>
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
<% if self.controller.action_name == "index" && self.controller.entry_class.respond_to?(:export_types_set) && self.controller.entry_class.export_types_set.count > 0 %>
|
43
|
+
<%= left_menu_item_title(I18n.t('common.export')) %>
|
44
|
+
|
45
|
+
<% self.controller.entry_class.export_types_set.each do |exp| %>
|
46
|
+
<% if exp[:name] == "xml" %>
|
47
|
+
<%= left_menu_item_link( "XML", url_for(controller: ::ChupakabraTools::ClassHelper.controller_underscore(entry ? entry.class.management_controller : self.controller), action: :export, type: :xml), "/assets/Documents.gif") %>
|
48
|
+
<% elsif exp[:name] == "json" %>
|
49
|
+
<%= left_menu_item_link( "JSON", url_for(controller: ::ChupakabraTools::ClassHelper.controller_underscore(entry ? entry.class.management_controller : self.controller), action: :export, type: :json), "/assets/Documents.gif") %>
|
50
|
+
<% end %>
|
51
|
+
<% end %>
|
52
|
+
<% else %>
|
53
|
+
|
54
|
+
<% end %>
|
55
|
+
|
56
|
+
<% end %>
|
57
|
+
|
@@ -0,0 +1,58 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
<!-- TOPLINE -->
|
4
|
+
<div class="row">
|
5
|
+
<div class="navbar span12">
|
6
|
+
<div class="navbar-inner">
|
7
|
+
<div class="container">
|
8
|
+
<a class="brand" href="<%= home_path %>">
|
9
|
+
kirgudu.net
|
10
|
+
</a>
|
11
|
+
<ul class="nav pull-right">
|
12
|
+
<li>
|
13
|
+
<a href="">
|
14
|
+
мои сообщения
|
15
|
+
<span class="badge" id="MyMessages">0</span>
|
16
|
+
</a>
|
17
|
+
</li>
|
18
|
+
<li>
|
19
|
+
<a href="">
|
20
|
+
мои задачи
|
21
|
+
<span class="badge" id="MyTasks">0</span>
|
22
|
+
</a>
|
23
|
+
</li>
|
24
|
+
<li>
|
25
|
+
<a href="">
|
26
|
+
календарь
|
27
|
+
</a>
|
28
|
+
</li>
|
29
|
+
<li class="dropdown">
|
30
|
+
<a href="" class="dropdown-toggle" data-toggle="dropdown">
|
31
|
+
<i class="icon-user icon-white"></i>
|
32
|
+
<%= @current_user.full_name %>
|
33
|
+
<b class="caret"></b>
|
34
|
+
</a>
|
35
|
+
<ul class="dropdown-menu">
|
36
|
+
<li>
|
37
|
+
<a href="<%= url_for(controller: ::ErpZone::SelectPortalController.to_route_path, action: 'index') %>">
|
38
|
+
<%= I18n.t('select_portal.index.title') %>
|
39
|
+
</a>
|
40
|
+
</li>
|
41
|
+
|
42
|
+
|
43
|
+
<li>
|
44
|
+
<a href="<%= url_for(controller: ::SharedZone::AuthenticationsController.to_route_path, action: 'logout') %>">
|
45
|
+
<%= I18n.t('erp_zone.layout.top_menu.profile.logout') %>
|
46
|
+
</a>
|
47
|
+
</li>
|
48
|
+
</ul>
|
49
|
+
</li>
|
50
|
+
</ul>
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
<!-- /TOPLINE -->
|
56
|
+
|
57
|
+
|
58
|
+
|
@@ -0,0 +1,70 @@
|
|
1
|
+
<%= print_flash_message %>
|
2
|
+
<% content_for :left_menu do %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<ul class="nav nav-tabs">
|
6
|
+
<li class="active">
|
7
|
+
<a><%= I18n.t("#{ChupakabraTools::ClassHelper.controller_to_i18n(self.controller)}.edit.title") %></a>
|
8
|
+
</li>
|
9
|
+
</ul>
|
10
|
+
|
11
|
+
<div class="table-holder">
|
12
|
+
<%= chu_form_for(entry, url: entry.portal_update_url) do |f| %>
|
13
|
+
<fieldset class="row">
|
14
|
+
<% entry.class.form_properties_set_for_edit_form.each do |pr| %>
|
15
|
+
<div class="control-group <%= pr.css_span || "span5" %> <%= "error" if entry.errors[pr.name].count > 0%>">
|
16
|
+
<label class="control-label">
|
17
|
+
<%= I18n.t("activerecord.attributes.#{::ChupakabraTools::ClassHelper.class_to_i18n(entry.class)}.#{pr.name}") %>
|
18
|
+
</label>
|
19
|
+
<div class="controls">
|
20
|
+
<% if pr.input_type == :chosen_select %>
|
21
|
+
<%= f.chosen_select pr.name,
|
22
|
+
@entry_data_sources[pr.name],
|
23
|
+
placeholder: pr.placeholder,
|
24
|
+
onchange: pr.on_change,
|
25
|
+
parent: pr.parent,
|
26
|
+
class: pr.css_class
|
27
|
+
%>
|
28
|
+
<% elsif pr.input_type == :autocomplete_with_id %>
|
29
|
+
<%= f.autocomplete_with_id pr.name,
|
30
|
+
entry.send(pr.text_value_property),
|
31
|
+
pr.source_url,
|
32
|
+
placeholder: pr.placeholder,
|
33
|
+
onchange: pr.on_change,
|
34
|
+
parent: pr.parent,
|
35
|
+
class: pr.css_class
|
36
|
+
%>
|
37
|
+
<% elsif pr.input_type == :switcher %>
|
38
|
+
<%= f.switcher pr.name %>
|
39
|
+
<% elsif pr.input_type == :date_picker %>
|
40
|
+
<%= f.date_picker pr.name,
|
41
|
+
class: pr.css_class %>
|
42
|
+
<% elsif pr.input_type == :time_picker %>
|
43
|
+
|
44
|
+
<% elsif pr.input_type == :image_selector %>
|
45
|
+
|
46
|
+
<% elsif pr.input_type == :check_box %>
|
47
|
+
<%= f.check_box pr.name %>
|
48
|
+
<% elsif pr.input_type == :radio_button %>
|
49
|
+
|
50
|
+
<% elsif pr.input_type == :link %>
|
51
|
+
|
52
|
+
<% elsif pr.input_type == :elastic_text_area %>
|
53
|
+
<%= f.elastic_textarea pr.name,
|
54
|
+
class: pr.css_class %>
|
55
|
+
<% elsif pr.input_type == :text_area %>
|
56
|
+
<%= f.text_area pr.name,
|
57
|
+
class: pr.css_class %>
|
58
|
+
<% else %>
|
59
|
+
<%= f.text_edit pr.name, class: pr.css_class %>
|
60
|
+
<% end %>
|
61
|
+
</div>
|
62
|
+
<%= f.error_label pr.name %>
|
63
|
+
</div>
|
64
|
+
<% end %>
|
65
|
+
</fieldset>
|
66
|
+
<div class="form-actions bbtns">
|
67
|
+
<button type="submit" class="btn btn-vk addf"><%= I18n.t("#{::ChupakabraTools::ClassHelper.controller_to_i18n(self.controller)}.edit.save") %></button>
|
68
|
+
</div>
|
69
|
+
<% end %>
|
70
|
+
</div>
|
@@ -0,0 +1,98 @@
|
|
1
|
+
<%= print_flash_message %>
|
2
|
+
<% content_for :left_menu do %>
|
3
|
+
|
4
|
+
<% end %>
|
5
|
+
|
6
|
+
<div class="tableHolder">
|
7
|
+
<%= render "/shared/index_page_filter", filtering_entry_class: self.controller.entry_class %>
|
8
|
+
<div class="index_button_bar">
|
9
|
+
<ul >
|
10
|
+
<%= render "/shared/left_menu_standard_actions", entry: self.controller.current_entry %>
|
11
|
+
</ul>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<table class="table table-stripped table-bordered objTable">
|
15
|
+
<thead>
|
16
|
+
<% if @settings_manager.get('additional_use_bulk_action') == true %>
|
17
|
+
<td class="no_sort">
|
18
|
+
<input type="checkbox"/>
|
19
|
+
</td>
|
20
|
+
<% end %>
|
21
|
+
<% if @settings_manager.get('common_show_numbers') == true %>
|
22
|
+
<td class="no_sort">
|
23
|
+
#
|
24
|
+
</td>
|
25
|
+
<% end %>
|
26
|
+
<% if @settings_manager.get('common_show_ids') == true %>
|
27
|
+
<td class="no_sort">
|
28
|
+
<%= I18n.t("activerecord.attributes.#{self.controller.to_i18n}.id") %>
|
29
|
+
</td>
|
30
|
+
<% end %>
|
31
|
+
|
32
|
+
|
33
|
+
<% self.controller.entry_class.index_properties_set.each do |pr| %>
|
34
|
+
<th class="no_sort">
|
35
|
+
<%= pr[:label] || I18n.t("activerecord.attributes.#{self.controller.entry_class.to_i18n}.#{pr[:label_property] ? pr[:label_property].to_s : pr[:name].to_s}") %>
|
36
|
+
</th>
|
37
|
+
<% end %>
|
38
|
+
<th class="ms no_sort ">
|
39
|
+
<!--<%= I18n.t('common.labels.actions') %>-->
|
40
|
+
</th>
|
41
|
+
</thead>
|
42
|
+
<tbody>
|
43
|
+
<% @entries_list.each do |item| %>
|
44
|
+
<tr>
|
45
|
+
<% if @settings_manager.get('additional_use_bulk_action') == true %>
|
46
|
+
<td class="no_sort">
|
47
|
+
<input type="checkbox"/>
|
48
|
+
</td>
|
49
|
+
<% end %>
|
50
|
+
<% if @settings_manager.get('common_show_numbers') == true %>
|
51
|
+
<td class="no_sort">
|
52
|
+
<%= print_property(item, :row_number) %>
|
53
|
+
</td>
|
54
|
+
<% end %>
|
55
|
+
<% if @settings_manager.get('common_show_ids') == true %>
|
56
|
+
<td class="no_sort">
|
57
|
+
<%= print_property(item, :id) %>
|
58
|
+
</td>
|
59
|
+
<% end %>
|
60
|
+
<% self.controller.entry_class.index_properties_set.each do |pr| %>
|
61
|
+
<td>
|
62
|
+
<%= print_property(item, pr[:name]) %>
|
63
|
+
</td>
|
64
|
+
<% end %>
|
65
|
+
<td class="ms">
|
66
|
+
<div class="btn-group1">
|
67
|
+
<div class="btn-group1">
|
68
|
+
<% if self.controller.entry_class.standard_action_allowed?(:show) %>
|
69
|
+
<%= link_to_show print_property(item, :portal_show_url), class: "btn btn-small", rel: "tooltip", 'data-placement' => "top", 'data-original-title' => I18n.t('erp_zone.store.distribution_points.index.actions.view'), 'object-type' => self.controller.entry_class do %>
|
70
|
+
<i class="gicon-eye-open"></i>
|
71
|
+
<% end %>
|
72
|
+
<% end %>
|
73
|
+
</div>
|
74
|
+
</div>
|
75
|
+
</td>
|
76
|
+
</tr>
|
77
|
+
<% end %>
|
78
|
+
</tbody>
|
79
|
+
</table>
|
80
|
+
</div>
|
81
|
+
|
82
|
+
<div class="pagLegend">
|
83
|
+
<div>Всего записей: <strong><%= @entries_list.total_entries %></strong></div>
|
84
|
+
<div>Страницы: <strong><%= @entries_list.current_page %></strong> из
|
85
|
+
<strong><%= @entries_list.total_pages %></strong></div>
|
86
|
+
</div>
|
87
|
+
<%= will_paginate @entries_list, renderer: ChuPaginateLinkRenderer %>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
@@ -0,0 +1,68 @@
|
|
1
|
+
<%= print_flash_message %>
|
2
|
+
<% content_for :left_menu do %>
|
3
|
+
|
4
|
+
<% end %>
|
5
|
+
|
6
|
+
<ul class="nav nav-tabs">
|
7
|
+
<li class="active">
|
8
|
+
<a><%= I18n.t("#{self.controller.to_i18n}.new.title") %></a>
|
9
|
+
</li>
|
10
|
+
</ul>
|
11
|
+
|
12
|
+
<div class="table-holder">
|
13
|
+
<%= chu_form_for(entry, url: entry.class.portal_create_url) do |f| %>
|
14
|
+
<fieldset class="row">
|
15
|
+
<% entry.class.form_properties_set_for_new_form.each do |pr| %>
|
16
|
+
<div class="control-group <%= pr.css_span || "span5" %> <%= "error" if entry.errors[pr.name].count > 0%>">
|
17
|
+
<label class="control-label">
|
18
|
+
<%= I18n.t("activerecord.attributes.#{::ChupakabraTools::ClassHelper.class_to_i18n(entry.class)}.#{pr.name}") %>
|
19
|
+
</label>
|
20
|
+
<div class="controls">
|
21
|
+
<% if pr.input_type == :chosen_select %>
|
22
|
+
<%= f.chosen_select pr.name,
|
23
|
+
@entry_data_sources[pr.name],
|
24
|
+
placeholder: pr.placeholder,
|
25
|
+
onchange: pr.on_change,
|
26
|
+
parent: pr.parent,
|
27
|
+
class: pr.css_class
|
28
|
+
%>
|
29
|
+
<% elsif pr.input_type == :autocomplete_with_id %>
|
30
|
+
<%= f.autocomplete_with_id pr.name,
|
31
|
+
entry.send(pr.text_value_property),
|
32
|
+
pr.source_url,
|
33
|
+
placeholder: pr.placeholder,
|
34
|
+
onchange: pr.on_change,
|
35
|
+
parent: pr.parent,
|
36
|
+
class: pr.css_class
|
37
|
+
%>
|
38
|
+
<% elsif pr.input_type == :switcher %>
|
39
|
+
<%= f.switcher pr.name %>
|
40
|
+
<% elsif pr.input_type == :date_picker %>
|
41
|
+
<%= f.date_picker pr.name, class: pr.css_class %>
|
42
|
+
<% elsif pr.input_type == :time_picker %>
|
43
|
+
|
44
|
+
<% elsif pr.input_type == :image_selector %>
|
45
|
+
|
46
|
+
<% elsif pr.input_type == :check_box %>
|
47
|
+
<%= f.check_box pr.name %>
|
48
|
+
<% elsif pr.input_type == :radio_button %>
|
49
|
+
|
50
|
+
<% elsif pr.input_type == :link %>
|
51
|
+
|
52
|
+
<% elsif pr.input_type == :elastic_text_area %>
|
53
|
+
<%= f.elastic_textarea pr.name, class: pr.css_class %>
|
54
|
+
<% elsif pr.input_type == :text_area %>
|
55
|
+
<%= f.text_area pr.name, class: pr.css_class %>
|
56
|
+
<% else %>
|
57
|
+
<%= f.text_edit pr.name, class: pr.css_class %>
|
58
|
+
<% end %>
|
59
|
+
</div>
|
60
|
+
<%= f.error_label pr.name %>
|
61
|
+
</div>
|
62
|
+
<% end %>
|
63
|
+
</fieldset>
|
64
|
+
<div class="form-actions bbtns">
|
65
|
+
<button type="submit" class="btn btn-vk addf"><%= I18n.t("#{self.controller.to_i18n}.new.save") %></button>
|
66
|
+
</div>
|
67
|
+
<% end %>
|
68
|
+
</div>
|