kirgudu_base 0.0.21 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (861) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/kirgudu_base/{bootstrap-3.0.0.js → bootstrap/bootstrap-3.0.0.js} +0 -0
  3. data/app/assets/javascripts/kirgudu_base/{bootstrap-alert.js → bootstrap/bootstrap-alert-2.1.0.js} +0 -0
  4. data/app/assets/javascripts/kirgudu_base/{bootstrap-button.js → bootstrap/bootstrap-button.js} +0 -0
  5. data/app/assets/javascripts/kirgudu_base/{bootstrap-carousel.js → bootstrap/bootstrap-carousel.js} +0 -0
  6. data/app/assets/javascripts/kirgudu_base/{bootstrap-collapse.js → bootstrap/bootstrap-collapse.js} +0 -0
  7. data/app/assets/javascripts/kirgudu_base/{bootstrap-colorpicker.js → bootstrap/bootstrap-colorpicker.js} +0 -0
  8. data/app/assets/javascripts/kirgudu_base/{bootstrap-datepicker.js → bootstrap/bootstrap-datepicker.js} +0 -0
  9. data/app/assets/javascripts/kirgudu_base/{bootstrap-dropdown.js → bootstrap/bootstrap-dropdown.js} +0 -0
  10. data/app/assets/javascripts/kirgudu_base/{bootstrap-modal.js → bootstrap/bootstrap-modal.js} +0 -0
  11. data/app/assets/javascripts/kirgudu_base/{bootstrap-popover.js → bootstrap/bootstrap-popover.js} +0 -0
  12. data/app/assets/javascripts/kirgudu_base/{bootstrap-scrollspy.js → bootstrap/bootstrap-scrollspy.js} +0 -0
  13. data/app/assets/javascripts/kirgudu_base/{bootstrap-tab.js → bootstrap/bootstrap-tab.js} +0 -0
  14. data/app/assets/javascripts/kirgudu_base/{bootstrap-tooltip.js → bootstrap/bootstrap-tooltip.js} +0 -0
  15. data/app/assets/javascripts/kirgudu_base/{bootstrap-transition.js → bootstrap/bootstrap-transition.js} +0 -0
  16. data/app/assets/javascripts/kirgudu_base/{bootstrap-typeahead.js → bootstrap/bootstrap-typeahead.js} +0 -0
  17. data/app/assets/javascripts/kirgudu_base/{bootstrap-wysihtml5.js → bootstrap/bootstrap-wysihtml5.js} +0 -0
  18. data/app/assets/javascripts/kirgudu_base/{bootstrap.js → bootstrap/bootstrap.js} +0 -0
  19. data/app/assets/javascripts/kirgudu_base/{intro.js → intro-0.4.0.js} +0 -0
  20. data/app/assets/javascripts/kirgudu_base/{jquery.js → jquery-2.0.3.js} +0 -0
  21. data/app/assets/javascripts/kirgudu_base/jquery-2.1.1.js +9190 -0
  22. data/app/assets/javascripts/kirgudu_base/jquery-2.1.1.min.js +4 -0
  23. data/app/assets/javascripts/kirgudu_base/{jquery.blockUI.js → jquery.blockUI-2.45.js} +0 -0
  24. data/app/assets/javascripts/kirgudu_base/{jquery.bookblock.js → jquery.bookblock-1.0.2.js} +0 -0
  25. data/app/assets/javascripts/kirgudu_base/jquery.carouFredSel-6.2.1.js +4255 -0
  26. data/app/assets/javascripts/kirgudu_base/{chosen.jquery.min.js → jquery.chosen.min-0.9.8.js} +0 -0
  27. data/app/assets/javascripts/kirgudu_base/{jquery.colorbox.js → jquery.colorbox-1.4.37.js} +0 -0
  28. data/app/assets/javascripts/kirgudu_base/{jquery.container-management.js → jquery.containerManagement-1.0.js} +1 -1
  29. data/app/assets/javascripts/kirgudu_base/{jquery.cookie.js → jquery.cookie-1.3.1.js} +0 -0
  30. data/app/assets/javascripts/kirgudu_base/{fileinput.jquery.js → jquery.custom-file-input.js} +0 -0
  31. data/app/assets/javascripts/kirgudu_base/{jquery.dataTables.js → jquery.dataTables-1.9.3.js} +0 -0
  32. data/app/assets/javascripts/kirgudu_base/{jquery.easing.min.js → jquery.easing-1.3.min.js} +0 -0
  33. data/app/assets/javascripts/kirgudu_base/{jquery.endless-scroll.js → jquery.endlessScroll-1.8.0.js} +0 -0
  34. data/app/assets/javascripts/kirgudu_base/{jquery.fancybox copia.js → jquery.fancybox-2.1.5.js} +0 -0
  35. data/app/assets/javascripts/kirgudu_base/{jquery.fancybox-buttons.js → jquery.fancybox-buttons-1.0.5.js} +0 -0
  36. data/app/assets/javascripts/kirgudu_base/{jquery.fancybox-media.js → jquery.fancybox-media-1.0.6.js} +0 -0
  37. data/app/assets/javascripts/kirgudu_base/{jquery.fancybox-thumbs.js → jquery.fancybox-thumbs-1.0.7.js} +0 -0
  38. data/app/assets/javascripts/kirgudu_base/{jquery.flot.js → jquery.flot-0.7.js} +0 -0
  39. data/app/assets/javascripts/kirgudu_base/{jquery.flot.min.js → jquery.flot-0.7.min.js} +0 -0
  40. data/app/assets/javascripts/kirgudu_base/{fullcalendar.js → jquery.fullCalendar-1.5.4.js} +0 -0
  41. data/app/assets/javascripts/kirgudu_base/{fullcalendar.min.js → jquery.fullCalendar.min-1.6.4.js} +0 -0
  42. data/app/assets/javascripts/kirgudu_base/jquery.jcarousel-0.3.js +1411 -0
  43. data/app/assets/javascripts/kirgudu_base/jquery.jcarousel.min-0.3.1.js +4 -0
  44. data/app/assets/javascripts/kirgudu_base/jquery.jigowatt.js +1 -1
  45. data/app/assets/javascripts/kirgudu_base/{jquery.json.min.js → jquery.json-2.0.3.min.js} +0 -0
  46. data/app/assets/javascripts/kirgudu_base/{scripts_nrg.js → jquery.kirguduBase.js} +17 -0
  47. data/app/assets/javascripts/kirgudu_base/{jquery.maskedinput-1.3.js → jquery.maskedInput-1.3.js} +0 -0
  48. data/app/assets/javascripts/kirgudu_base/{jquery.simplemodal-1.4.4.js → jquery.simpleModal-1.4.4.js} +0 -0
  49. data/app/assets/javascripts/kirgudu_base/{jquery.smartWizard.js → jquery.smartWizard-3.3.1.js} +0 -0
  50. data/app/assets/javascripts/kirgudu_base/jquery.snippet-2.0.0.js +814 -0
  51. data/app/assets/javascripts/kirgudu_base/{jquery.sparkline.min.js → jquery.sparkline-2.1.2.min.js} +0 -0
  52. data/app/assets/javascripts/kirgudu_base/{jquery.tagsinput.js → jquery.tagsInput-1.3.3.js} +0 -0
  53. data/app/assets/javascripts/kirgudu_base/{textarea-autogrow.js → jquery.textareaAutogrow.js} +0 -0
  54. data/app/assets/javascripts/kirgudu_base/{jquery.tools.min.js → jquery.tools.min-1.2.7.js} +0 -0
  55. data/app/assets/javascripts/kirgudu_base/{jquery-ui.js → jquery.ui-1.10.4.js} +0 -0
  56. data/app/assets/javascripts/kirgudu_base/jquery.ui-1.10.4.min.js +12 -0
  57. data/app/assets/javascripts/kirgudu_base/{jquery.uploadify.min.js → jquery.uploadify-3.2.min.js} +0 -0
  58. data/app/assets/javascripts/kirgudu_base/{jquery.validate.min.js → jquery.validate-1.10.0.min.js} +0 -0
  59. data/app/assets/javascripts/kirgudu_base/{justgage.1.0.1.min.js → justgage-1.0.1.min.js} +0 -0
  60. data/app/assets/javascripts/kirgudu_base/{modernizr.custom.32549.js → modernizr-2.6.2.js} +0 -0
  61. data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/404-fry.png +0 -0
  62. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ajax-loader.gif +0 -0
  63. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/alpha.png +0 -0
  64. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/alpha2.png +0 -0
  65. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/arrow.png +0 -0
  66. data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/chosen-sprite.png +0 -0
  67. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/company_pxg.png +0 -0
  68. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/back_disabled.png +0 -0
  69. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/back_enabled.png +0 -0
  70. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/back_enabled_hover.png +0 -0
  71. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/forward_disabled.png +0 -0
  72. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/forward_enabled.png +0 -0
  73. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/forward_enabled_hover.png +0 -0
  74. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/sort_asc.png +0 -0
  75. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/sort_asc_disabled.png +0 -0
  76. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/sort_both.png +0 -0
  77. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/sort_desc.png +0 -0
  78. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/datatables/sort_desc_disabled.png +0 -0
  79. data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/fancybox/blank.gif +0 -0
  80. data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/fancybox/fancybox_buttons.png +0 -0
  81. data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/fancybox/fancybox_loading.gif +0 -0
  82. data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/fancybox/fancybox_overlay.png +0 -0
  83. data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/fancybox/fancybox_sprite.png +0 -0
  84. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/favicon.png +0 -0
  85. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/general/clock.png +0 -0
  86. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/general/clock2.png +0 -0
  87. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/general/coffee.png +0 -0
  88. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/general/coffee2.png +0 -0
  89. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/general/flipchart.png +0 -0
  90. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/general/flipchart2.png +0 -0
  91. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/general/sun.png +0 -0
  92. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/general/sun2.png +0 -0
  93. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/glyphicons-halflings-white.png +0 -0
  94. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/glyphicons-halflings.png +0 -0
  95. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/gradient1.png +0 -0
  96. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/hue2.png +0 -0
  97. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/icons-sa7c41345d9.png +0 -0
  98. data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/jquery-file-upload/error.png +0 -0
  99. data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/jquery-file-upload/loading.gif +0 -0
  100. data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/jquery-file-upload/play-pause.png +0 -0
  101. data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/jquery-file-upload/progressbar.gif +0 -0
  102. data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/jquery-file-upload/video-play.png +0 -0
  103. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/login-corner.png +0 -0
  104. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/login-corner2.png +0 -0
  105. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/logo.png +0 -0
  106. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/maps/m1.png +0 -0
  107. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/maps/m2.png +0 -0
  108. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/maps/m3.png +0 -0
  109. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/calendar.png +0 -0
  110. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/dashboard.png +0 -0
  111. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/forms.png +0 -0
  112. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/gallery.png +0 -0
  113. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/grid.png +0 -0
  114. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/maps.png +0 -0
  115. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/others.png +0 -0
  116. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/statistics.png +0 -0
  117. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/tables.png +0 -0
  118. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_icons/widgets.png +0 -0
  119. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_top/profile-avatar.png +0 -0
  120. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/menu_top/profile-messages.png +0 -0
  121. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/message_avatar1.png +0 -0
  122. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/message_avatar2.png +0 -0
  123. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/message_avatar3.png +0 -0
  124. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/message_avatar4.png +0 -0
  125. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/message_avatar5.png +0 -0
  126. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/message_avatar6.png +0 -0
  127. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/message_avatar7.png +0 -0
  128. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/patterns/bg_dark.png +0 -0
  129. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/patterns/bg_dark2.png +0 -0
  130. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/patterns/bg_dark3.png +0 -0
  131. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/patterns/whitey.png +0 -0
  132. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/sample_avatar_big.jpg +0 -0
  133. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/saturation2.png +0 -0
  134. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/search.png +0 -0
  135. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/toggle.png +0 -0
  136. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-bg_fine-grain_10_e7e7e7_60x60.png +0 -0
  137. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  138. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-bg_flat_0_ef4622_40x100.png +0 -0
  139. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-bg_glass_65_ffffff_1x400.png +0 -0
  140. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-bg_highlight-hard_100_e1e1e1_1x100.png +0 -0
  141. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-bg_highlight-hard_100_eeeeee_1x100.png +0 -0
  142. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-bg_highlight-hard_75_dddddd_1x100.png +0 -0
  143. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
  144. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-icons_454545_256x240.png +0 -0
  145. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-icons_525d66_256x240.png +0 -0
  146. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-icons_cd0a0a_256x240.png +0 -0
  147. data/app/assets/{images/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/images}/ui-icons_ffffff_256x240.png +0 -0
  148. data/app/assets/{images/kirgudu_base → templates/kirgudu_base/admin/default/images}/uploadify-cancel.png +0 -0
  149. data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/chosen.css +0 -0
  150. data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/fullcalendar.css +0 -0
  151. data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/info-message.css +0 -0
  152. data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/jquery-ui-1.8.23.custom.css +0 -0
  153. data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/jquery.fancybox-buttons.css +0 -0
  154. data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/jquery.fancybox-thumbs.css +0 -0
  155. data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/jquery.fancybox.css +0 -0
  156. data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/jquery.tagsinput.css +0 -0
  157. data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/original.css +0 -0
  158. data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/popbox.css +0 -0
  159. data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/responsive.css +0 -0
  160. data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/twitter/bootstrap.css +0 -0
  161. data/app/assets/{stylesheets/kirgudu_base/admin/default → templates/kirgudu_base/admin/default/stylesheets}/uploadify.css +0 -0
  162. data/app/assets/templates/kirgudu_base/admin/medialoot/images/breadcrumb_divider.png +0 -0
  163. data/app/assets/templates/kirgudu_base/admin/medialoot/images/btn_submit.png +0 -0
  164. data/app/assets/templates/kirgudu_base/admin/medialoot/images/btn_submit_2.png +0 -0
  165. data/app/assets/templates/kirgudu_base/admin/medialoot/images/btn_view_site.png +0 -0
  166. data/app/assets/templates/kirgudu_base/admin/medialoot/images/header_bg.png +0 -0
  167. data/app/assets/templates/kirgudu_base/admin/medialoot/images/header_shadow.png +0 -0
  168. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_add_user.png +0 -0
  169. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_alert_error.png +0 -0
  170. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_alert_info.png +0 -0
  171. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_alert_success.png +0 -0
  172. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_alert_warning.png +0 -0
  173. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_audio.png +0 -0
  174. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_categories.png +0 -0
  175. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_edit.png +0 -0
  176. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_edit_article.png +0 -0
  177. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_folder.png +0 -0
  178. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_jump_back.png +0 -0
  179. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_logout.png +0 -0
  180. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_new_article.png +0 -0
  181. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_photo.png +0 -0
  182. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_profile.png +0 -0
  183. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_search.png +0 -0
  184. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_security.png +0 -0
  185. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_settings.png +0 -0
  186. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_tags.png +0 -0
  187. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_trash.png +0 -0
  188. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_user.png +0 -0
  189. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_video.png +0 -0
  190. data/app/assets/templates/kirgudu_base/admin/medialoot/images/icn_view_users.png +0 -0
  191. data/app/assets/templates/kirgudu_base/admin/medialoot/images/module_footer_bg.png +0 -0
  192. data/app/assets/templates/kirgudu_base/admin/medialoot/images/post_message.png +0 -0
  193. data/app/assets/templates/kirgudu_base/admin/medialoot/images/secondary_bar.png +0 -0
  194. data/app/assets/templates/kirgudu_base/admin/medialoot/images/secondary_bar_shadow.png +0 -0
  195. data/app/assets/templates/kirgudu_base/admin/medialoot/images/sidebar.png +0 -0
  196. data/app/assets/templates/kirgudu_base/admin/medialoot/images/sidebar_divider.png +0 -0
  197. data/app/assets/templates/kirgudu_base/admin/medialoot/images/sidebar_shadow.png +0 -0
  198. data/app/assets/templates/kirgudu_base/admin/medialoot/images/table_sorter_header.png +0 -0
  199. data/app/assets/templates/kirgudu_base/admin/medialoot/stylesheets/ie.css +43 -0
  200. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/medialoot/stylesheets}/jquery.fancybox-buttons.css +0 -0
  201. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/medialoot/stylesheets}/jquery.fancybox-thumbs.css +0 -0
  202. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/medialoot/stylesheets}/jquery.fancybox.css +0 -0
  203. data/app/assets/templates/kirgudu_base/admin/medialoot/stylesheets/layout.css +883 -0
  204. data/app/assets/{stylesheets/kirgudu_base/admin/good/jquery-file-upload → templates/kirgudu_base/admin/zapanel}/fonts/glyphicons-halflings-regular.eot +0 -0
  205. data/app/assets/{stylesheets/kirgudu_base/admin/good/jquery-file-upload → templates/kirgudu_base/admin/zapanel}/fonts/glyphicons-halflings-regular.svg +0 -0
  206. data/app/assets/{stylesheets/kirgudu_base/admin/good/jquery-file-upload → templates/kirgudu_base/admin/zapanel}/fonts/glyphicons-halflings-regular.ttf +0 -0
  207. data/app/assets/{stylesheets/kirgudu_base/admin/good/jquery-file-upload → templates/kirgudu_base/admin/zapanel}/fonts/glyphicons-halflings-regular.woff +0 -0
  208. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/404.png +0 -0
  209. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/500x600.gif +0 -0
  210. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/PhotoShare(1).png +0 -0
  211. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/PhotoShare(2).png +0 -0
  212. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/PhotoShare(3).png +0 -0
  213. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/ajax-loader.gif +0 -0
  214. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/arrow.png +0 -0
  215. data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/arrows-active.png +0 -0
  216. data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/arrows-normal.png +0 -0
  217. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/asd.png +0 -0
  218. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/avatar-1.png +0 -0
  219. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/avatar-2.png +0 -0
  220. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/avatar-4.png +0 -0
  221. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/avatar-8.png +0 -0
  222. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/banner.jpg +0 -0
  223. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/bg-texture.jpg +0 -0
  224. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/bg.jpg +0 -0
  225. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/bg1.jpg +0 -0
  226. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/blue-btn.jpg +0 -0
  227. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/body-bg.jpg +0 -0
  228. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/brown-btn.jpg +0 -0
  229. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-10.jpg +0 -0
  230. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-11.jpg +0 -0
  231. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-12.jpg +0 -0
  232. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-13.jpg +0 -0
  233. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-14.jpg +0 -0
  234. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-15.jpg +0 -0
  235. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-16.jpg +0 -0
  236. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-17.jpg +0 -0
  237. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-18.jpg +0 -0
  238. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-19.jpg +0 -0
  239. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-20.jpg +0 -0
  240. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-21.jpg +0 -0
  241. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-22.jpg +0 -0
  242. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-23.jpg +0 -0
  243. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-24.jpg +0 -0
  244. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-25.jpg +0 -0
  245. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-26.jpg +0 -0
  246. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-27.jpg +0 -0
  247. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-28.jpg +0 -0
  248. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-29.jpg +0 -0
  249. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-30.jpg +0 -0
  250. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-31.jpg +0 -0
  251. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-32.jpg +0 -0
  252. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-33.jpg +0 -0
  253. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-34.jpg +0 -0
  254. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-35.jpg +0 -0
  255. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-36.jpg +0 -0
  256. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-37.jpg +0 -0
  257. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-38.jpg +0 -0
  258. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-39.jpg +0 -0
  259. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-40.jpg +0 -0
  260. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-41.jpg +0 -0
  261. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-42.jpg +0 -0
  262. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-43.jpg +0 -0
  263. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-44.jpg +0 -0
  264. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-45.jpg +0 -0
  265. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-46.jpg +0 -0
  266. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-47.jpg +0 -0
  267. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-48.jpg +0 -0
  268. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-49.jpg +0 -0
  269. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-50.jpg +0 -0
  270. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-51.jpg +0 -0
  271. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-52.jpg +0 -0
  272. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-53.jpg +0 -0
  273. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-54.jpg +0 -0
  274. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-55.jpg +0 -0
  275. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-56.jpg +0 -0
  276. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-57.jpg +0 -0
  277. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-58.jpg +0 -0
  278. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-59.jpg +0 -0
  279. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-60.jpg +0 -0
  280. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-61.jpg +0 -0
  281. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-62.jpg +0 -0
  282. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-63.jpg +0 -0
  283. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-8.jpg +0 -0
  284. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/btn-9.jpg +0 -0
  285. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/cal.gif +0 -0
  286. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/chat-user1.jpg +0 -0
  287. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/chrome-icon.png +0 -0
  288. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/clockface.gif +0 -0
  289. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/clockface.png +0 -0
  290. data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/crop.gif +0 -0
  291. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/cyan-btn.jpg +0 -0
  292. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/dark-theme-thumb.jpg +0 -0
  293. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/dark_leather.png +0 -0
  294. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/darkdenim3.png +0 -0
  295. data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/dialogs.png +0 -0
  296. data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images/elfinder}/logo.png +0 -0
  297. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/email-thumb.png +0 -0
  298. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/error.gif +0 -0
  299. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/fb.jpg +0 -0
  300. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/firefox-icon.png +0 -0
  301. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/globe.png +0 -0
  302. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/gray-btn.jpg +0 -0
  303. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/gray-gradient.jpg +0 -0
  304. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/green-btn.jpg +0 -0
  305. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/group.png +0 -0
  306. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/header-bg.jpg +0 -0
  307. data/app/assets/images/kirgudu_base/admin/good/hosting pic.png b/data/app/assets/templates/kirgudu_base/admin/zapanel/images/hosting → pic.png +0 -0
  308. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/hourhand.png +0 -0
  309. data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/icons-big.png +0 -0
  310. data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/icons-small.png +0 -0
  311. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/ie-icon.png +0 -0
  312. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/light-theme-thumb.jpg +0 -0
  313. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/loader.gif +0 -0
  314. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/logo.png +0 -0
  315. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/logo2.png +0 -0
  316. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/loud.png +0 -0
  317. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/mCSB_buttons.png +0 -0
  318. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/minhand.png +0 -0
  319. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/next_mon.gif +0 -0
  320. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/next_year.gif +0 -0
  321. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/no_cal.gif +0 -0
  322. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/opera-icon.png +0 -0
  323. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern.jpg +0 -0
  324. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern1.jpg +0 -0
  325. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern1.png +0 -0
  326. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern10.jpg +0 -0
  327. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern11.png +0 -0
  328. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern12.jpg +0 -0
  329. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern13.jpg +0 -0
  330. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern14.png +0 -0
  331. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern15.jpg +0 -0
  332. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern16.png +0 -0
  333. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern17.png +0 -0
  334. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern18.gif +0 -0
  335. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern19.jpg +0 -0
  336. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern2.jpg +0 -0
  337. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern20.jpg +0 -0
  338. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern21.jpg +0 -0
  339. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern22.jpg +0 -0
  340. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern23.jpg +0 -0
  341. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern24.jpg +0 -0
  342. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern25.jpg +0 -0
  343. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern26.jpg +0 -0
  344. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern27.jpg +0 -0
  345. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern28.gif +0 -0
  346. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern29.gif +0 -0
  347. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern3.jpg +0 -0
  348. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern30.jpg +0 -0
  349. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern31.png +0 -0
  350. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern32.png +0 -0
  351. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern33.jpg +0 -0
  352. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern34.png +0 -0
  353. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern4.jpg +0 -0
  354. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern5.jpg +0 -0
  355. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern6.jpg +0 -0
  356. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern7.jpg +0 -0
  357. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern8.jpg +0 -0
  358. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern9.jpg +0 -0
  359. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/pattern9.png +0 -0
  360. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/photo-profile.jpg +0 -0
  361. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/prev_mon.gif +0 -0
  362. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/prev_year.gif +0 -0
  363. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/price-gray.jpg +0 -0
  364. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/price-red.jpg +0 -0
  365. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/product1.jpg +0 -0
  366. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/product2.jpg +0 -0
  367. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/product3.jpg +0 -0
  368. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/product4.jpg +0 -0
  369. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/product5.jpg +0 -0
  370. data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/progress.gif +0 -0
  371. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/purple-btn.jpg +0 -0
  372. data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/quicklook-bg.png +0 -0
  373. data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/quicklook-icons.png +0 -0
  374. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/red-btn.jpg +0 -0
  375. data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/resize.png +0 -0
  376. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/rocket.png +0 -0
  377. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/rss.jpg +0 -0
  378. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/safari-icon.png +0 -0
  379. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/screen1.png +0 -0
  380. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/screen2.png +0 -0
  381. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/screen3.png +0 -0
  382. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/screen4.png +0 -0
  383. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/screen5.png +0 -0
  384. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/search-bg.png +0 -0
  385. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/search-icon.png +0 -0
  386. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/sechand.png +0 -0
  387. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/section-pattern-bg.jpg +0 -0
  388. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/signup1.jpg +0 -0
  389. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/signup2.jpg +0 -0
  390. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/slider-img-1.jpg +0 -0
  391. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/slider-img-2.jpg +0 -0
  392. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/slider-img-3.jpg +0 -0
  393. data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/spinner-mini.gif +0 -0
  394. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/sprite-skin-flat.png +0 -0
  395. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/sprite-skin-nice.png +0 -0
  396. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/sprite-skin-simple.png +0 -0
  397. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/success.gif +0 -0
  398. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/tag-arrow.png +0 -0
  399. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/tag-arrow2.png +0 -0
  400. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/thumb.png +0 -0
  401. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/thumb1.jpg +0 -0
  402. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/thumb2.jpg +0 -0
  403. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/thumb3.jpg +0 -0
  404. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/thumb4.jpg +0 -0
  405. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/toggle.png +0 -0
  406. data/app/assets/{images/kirgudu_base/admin/good/img → templates/kirgudu_base/admin/zapanel/images}/toolbar.png +0 -0
  407. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/triangles.png +0 -0
  408. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/twitter.jpg +0 -0
  409. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/typing-loading.gif +0 -0
  410. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/usd.png +0 -0
  411. data/app/assets/images/kirgudu_base/admin/good/user (2).jpg b/data/app/assets/templates/kirgudu_base/admin/zapanel/images/user → (2).jpg +0 -0
  412. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/user-log-in.png +0 -0
  413. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/user.jpg +0 -0
  414. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/user.png +0 -0
  415. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/user2.jpg +0 -0
  416. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/user3.jpg +0 -0
  417. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/user4.jpg +0 -0
  418. data/app/assets/{images/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/images}/world-map.png +0 -0
  419. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/bootstrap.css +2 -2
  420. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/chosen.css +17 -17
  421. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/elfinder-theme.css +1 -1
  422. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/elfinder.min.css +21 -21
  423. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/font-awesome-ie7.css +0 -0
  424. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/font-awesome-ie7.min.css +0 -0
  425. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/font-awesome.css +2 -2
  426. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/font-awesome.min.css +1 -1
  427. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/fullcalendar.css +0 -0
  428. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/fullcalendar.print.css +0 -0
  429. data/app/assets/templates/kirgudu_base/admin/zapanel/stylesheets/google-fonts-opensans.css +34 -0
  430. data/app/assets/templates/kirgudu_base/admin/zapanel/stylesheets/google-fonts-raleway.css +62 -0
  431. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/ion.rangeSlider.css +0 -0
  432. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/ion.rangeSlider.skinFlat.css +0 -0
  433. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/ion.rangeSlider.skinNice.css +1 -1
  434. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/blueimp-gallery.min.css +0 -0
  435. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/bootstrap.min.css +2 -2
  436. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/demo-ie8.css +0 -0
  437. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/demo.css +0 -0
  438. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/jquery.fileupload-noscript.css +0 -0
  439. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/jquery.fileupload-ui-noscript.css +0 -0
  440. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/jquery.fileupload-ui.css +0 -0
  441. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/jquery.fileupload.css +0 -0
  442. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-file-upload/style.css +0 -0
  443. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery-ui.css +9 -9
  444. data/app/assets/templates/kirgudu_base/admin/zapanel/stylesheets/jquery.fancybox-buttons.css +96 -0
  445. data/app/assets/templates/kirgudu_base/admin/zapanel/stylesheets/jquery.fancybox-thumbs.css +54 -0
  446. data/app/assets/templates/kirgudu_base/admin/zapanel/stylesheets/jquery.fancybox.css +249 -0
  447. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery.mCustomScrollbar.css +0 -0
  448. data/app/assets/templates/kirgudu_base/admin/zapanel/stylesheets/jquery.snippet.css +116 -0
  449. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/jquery.switchButton.css +0 -0
  450. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/purple.css +0 -0
  451. data/app/assets/templates/kirgudu_base/admin/zapanel/stylesheets/range-slider.normalize.min.css +236 -0
  452. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/responsive.css +0 -0
  453. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/style.css +29 -29
  454. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCore.css +0 -0
  455. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCoreDefault.css +0 -0
  456. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCoreDjango.css +0 -0
  457. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCoreEclipse.css +0 -0
  458. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCoreEmacs.css +0 -0
  459. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCoreFadeToGrey.css +0 -0
  460. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCoreMDUltra.css +0 -0
  461. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCoreMidnight.css +0 -0
  462. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shCoreRDark.css +0 -0
  463. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shThemeDefault.css +0 -0
  464. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shThemeDjango.css +0 -0
  465. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shThemeEclipse.css +0 -0
  466. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shThemeEmacs.css +0 -0
  467. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shThemeFadeToGrey.css +0 -0
  468. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shThemeMDUltra.css +0 -0
  469. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shThemeMidnight.css +0 -0
  470. data/app/assets/{stylesheets/kirgudu_base → templates/kirgudu_base/admin/zapanel/stylesheets}/syntax-higlignter/shThemeRDark.css +0 -0
  471. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/admin/zapanel/stylesheets}/uploadify.css +1 -1
  472. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/common}/fonts/fontawesome-webfont.eot +0 -0
  473. data/app/assets/{stylesheets/kirgudu_base/admin/good/fonts/FontAwesome.otf → templates/kirgudu_base/common/fonts/fontawesome-webfont.otf} +0 -0
  474. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/common}/fonts/fontawesome-webfont.svg +0 -0
  475. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/common}/fonts/fontawesome-webfont.ttf +0 -0
  476. data/app/assets/{stylesheets/kirgudu_base/admin/good → templates/kirgudu_base/common}/fonts/fontawesome-webfont.woff +0 -0
  477. data/app/assets/templates/kirgudu_base/common/fonts/opensans-bold.woff +0 -0
  478. data/app/assets/templates/kirgudu_base/common/fonts/opensans-extrabold.woff +0 -0
  479. data/app/assets/templates/kirgudu_base/common/fonts/opensans-light.woff +0 -0
  480. data/app/assets/templates/kirgudu_base/common/fonts/opensans-semibold.woff +0 -0
  481. data/app/assets/templates/kirgudu_base/common/fonts/opensans.woff +0 -0
  482. data/app/assets/templates/kirgudu_base/common/fonts/raleway-bold.woff +0 -0
  483. data/app/assets/templates/kirgudu_base/common/fonts/raleway-extrabold.woff +0 -0
  484. data/app/assets/templates/kirgudu_base/common/fonts/raleway-extralight.woff +0 -0
  485. data/app/assets/templates/kirgudu_base/common/fonts/raleway-heavy.woff +0 -0
  486. data/app/assets/templates/kirgudu_base/common/fonts/raleway-light.woff +0 -0
  487. data/app/assets/templates/kirgudu_base/common/fonts/raleway-medium.woff +0 -0
  488. data/app/assets/templates/kirgudu_base/common/fonts/raleway-semibold.woff +0 -0
  489. data/app/assets/templates/kirgudu_base/common/fonts/raleway-thin.woff +0 -0
  490. data/app/assets/templates/kirgudu_base/common/fonts/raleway.woff +0 -0
  491. data/app/controllers/kirgudu_base/admin_controller.rb +8 -15
  492. data/app/controllers/kirgudu_base/application_controller.rb +254 -322
  493. data/app/controllers/kirgudu_base/cabinet_controller.rb +3 -41
  494. data/app/controllers/kirgudu_base/dynamic_pages_controller.rb +1209 -0
  495. data/app/controllers/kirgudu_base/facade_controller.rb +3 -3
  496. data/app/controllers/kirgudu_base/security/authentications_controller.rb +178 -216
  497. data/app/controllers/kirgudu_base/security/login_providers_controller.rb +9 -0
  498. data/app/helpers/kirgudu_base/application_helper.rb +37 -75
  499. data/app/helpers/kirgudu_base/configuration_helper.rb +12 -0
  500. data/app/helpers/kirgudu_base/controllers/basic_actions.rb +243 -246
  501. data/app/helpers/kirgudu_base/controllers/container_items_management_actions.rb +12 -12
  502. data/app/helpers/kirgudu_base/controllers/dynamic_pages.rb +150 -130
  503. data/app/helpers/kirgudu_base/controllers/dynamic_transactions.rb +1 -1
  504. data/app/helpers/kirgudu_base/controllers/obligatory_filters.rb +1 -1
  505. data/app/helpers/kirgudu_base/gui_helper.rb +24 -0
  506. data/app/helpers/kirgudu_base/models/basic_properties.rb +135 -135
  507. data/app/helpers/kirgudu_base/models/before_query.rb +16 -0
  508. data/app/helpers/kirgudu_base/models/data_filter.rb +11 -93
  509. data/app/helpers/kirgudu_base/models/methods.rb +55 -55
  510. data/app/helpers/kirgudu_base/models/scopes.rb +70 -109
  511. data/app/helpers/kirgudu_base/system_prepare.rb +17 -0
  512. data/app/models/kirgudu_base/base_model.rb +70 -77
  513. data/app/models/kirgudu_base/common/portal.rb +4 -4
  514. data/app/models/kirgudu_base/common/portal_user.rb +2 -2
  515. data/app/models/kirgudu_base/concerns/models/administrated_by.rb +27 -0
  516. data/app/models/kirgudu_base/concerns/models/created_at.rb +36 -0
  517. data/app/models/kirgudu_base/concerns/models/created_by.rb +25 -0
  518. data/app/models/kirgudu_base/concerns/models/deletion_status_id.rb +28 -0
  519. data/app/models/kirgudu_base/concerns/models/managed_by.rb +25 -0
  520. data/app/models/kirgudu_base/concerns/models/name.rb +36 -0
  521. data/app/models/kirgudu_base/concerns/models/owned_by.rb +26 -0
  522. data/app/models/kirgudu_base/concerns/models/person_age.rb +49 -0
  523. data/app/models/kirgudu_base/concerns/models/person_full_name.rb +41 -0
  524. data/app/models/kirgudu_base/concerns/models/portal_id.rb +26 -0
  525. data/app/models/kirgudu_base/concerns/models/portal_user_id.rb +26 -0
  526. data/app/models/kirgudu_base/concerns/models/slug.rb +43 -0
  527. data/app/models/kirgudu_base/concerns/models/status_id.rb +28 -0
  528. data/app/models/kirgudu_base/concerns/models/title.rb +40 -0
  529. data/app/models/kirgudu_base/concerns/models/updated_at.rb +41 -0
  530. data/app/models/kirgudu_base/concerns/models/updated_by.rb +29 -0
  531. data/app/models/kirgudu_base/concerns/models/user_id.rb +35 -0
  532. data/app/models/kirgudu_base/dynamic/base_builder.rb +45 -0
  533. data/app/models/kirgudu_base/dynamic/base_model.rb +18 -0
  534. data/app/models/kirgudu_base/dynamic/breadcrumbs/item.rb +79 -0
  535. data/app/models/kirgudu_base/dynamic/data_filters/obligatory_filter.rb +22 -0
  536. data/app/models/kirgudu_base/dynamic/data_filters/obligatory_filter_builder.rb +46 -0
  537. data/app/models/kirgudu_base/dynamic/properties/interpret_as_builder.rb +21 -0
  538. data/app/models/kirgudu_base/dynamic/properties/interprete_as.rb +14 -0
  539. data/app/models/kirgudu_base/dynamic/transactions/enums.rb +11 -0
  540. data/app/models/kirgudu_base/dynamic/transactions/injection.rb +24 -0
  541. data/app/models/kirgudu_base/{dynamic_transactions/transaction_injection_builder.rb → dynamic/transactions/injection_builder.rb} +2 -8
  542. data/app/models/kirgudu_base/dynamic_pages/builder.rb +49 -50
  543. data/app/models/kirgudu_base/dynamic_pages/data_source.rb +56 -57
  544. data/app/models/kirgudu_base/dynamic_pages/data_source_builder.rb +63 -59
  545. data/app/models/kirgudu_base/dynamic_pages/element.rb +3 -6
  546. data/app/models/kirgudu_base/dynamic_pages/entry.rb +23 -25
  547. data/app/models/kirgudu_base/dynamic_pages/entry_builder.rb +32 -34
  548. data/app/models/kirgudu_base/dynamic_pages/entry_properties_block_builder.rb +2 -4
  549. data/app/models/kirgudu_base/dynamic_pages/entry_property.rb +1 -3
  550. data/app/models/kirgudu_base/dynamic_pages/entry_property_builder.rb +28 -30
  551. data/app/models/kirgudu_base/dynamic_pages/enums.rb +56 -59
  552. data/app/models/kirgudu_base/dynamic_pages/event.rb +19 -21
  553. data/app/models/kirgudu_base/dynamic_pages/event_action.rb +35 -38
  554. data/app/models/kirgudu_base/dynamic_pages/event_action_builder.rb +37 -39
  555. data/app/models/kirgudu_base/dynamic_pages/event_action_constraint.rb +19 -21
  556. data/app/models/kirgudu_base/dynamic_pages/event_action_constraint_builder.rb +27 -29
  557. data/app/models/kirgudu_base/dynamic_pages/event_builder.rb +30 -32
  558. data/app/models/kirgudu_base/dynamic_pages/event_if_block_builder.rb +21 -23
  559. data/app/models/kirgudu_base/dynamic_pages/filter.rb +19 -21
  560. data/app/models/kirgudu_base/dynamic_pages/filter_builder.rb +23 -25
  561. data/app/models/kirgudu_base/dynamic_pages/form.rb +27 -26
  562. data/app/models/kirgudu_base/dynamic_pages/form_builder.rb +55 -48
  563. data/app/models/kirgudu_base/dynamic_pages/form_elements_block_builder.rb +21 -23
  564. data/app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb +16 -18
  565. data/app/models/kirgudu_base/dynamic_pages/form_properties_named_set.rb +11 -12
  566. data/app/models/kirgudu_base/dynamic_pages/form_properties_named_set_builder.rb +12 -13
  567. data/app/models/kirgudu_base/dynamic_pages/form_property.rb +31 -32
  568. data/app/models/kirgudu_base/dynamic_pages/form_property_builder.rb +35 -36
  569. data/app/models/kirgudu_base/dynamic_pages/form_tab.rb +9 -10
  570. data/app/models/kirgudu_base/dynamic_pages/form_tab_builder.rb +2 -3
  571. data/app/models/kirgudu_base/dynamic_pages/group.rb +15 -17
  572. data/app/models/kirgudu_base/dynamic_pages/group_builder.rb +18 -22
  573. data/app/models/kirgudu_base/dynamic_pages/html_css.rb +13 -0
  574. data/app/models/kirgudu_base/dynamic_pages/html_css_builder.rb +24 -0
  575. data/app/models/kirgudu_base/dynamic_pages/html_header.rb +15 -0
  576. data/app/models/kirgudu_base/dynamic_pages/html_header_builder.rb +40 -0
  577. data/app/models/kirgudu_base/dynamic_pages/html_meta.rb +15 -0
  578. data/app/models/kirgudu_base/dynamic_pages/html_meta_builder.rb +36 -0
  579. data/app/models/kirgudu_base/dynamic_pages/html_script.rb +21 -0
  580. data/app/models/kirgudu_base/dynamic_pages/html_script_builder.rb +25 -0
  581. data/app/models/kirgudu_base/dynamic_pages/http_client.rb +47 -0
  582. data/app/models/kirgudu_base/dynamic_pages/http_client_builder.rb +80 -0
  583. data/app/models/kirgudu_base/dynamic_pages/input_type.rb +18 -16
  584. data/app/models/kirgudu_base/dynamic_pages/link.rb +17 -0
  585. data/app/models/kirgudu_base/dynamic_pages/link_builder.rb +5 -0
  586. data/app/models/kirgudu_base/dynamic_pages/list.rb +32 -31
  587. data/app/models/kirgudu_base/dynamic_pages/list_builder.rb +9 -3
  588. data/app/models/kirgudu_base/dynamic_pages/list_cell.rb +20 -22
  589. data/app/models/kirgudu_base/dynamic_pages/list_cell_builder.rb +29 -31
  590. data/app/models/kirgudu_base/dynamic_pages/list_cells_block_builder.rb +11 -13
  591. data/app/models/kirgudu_base/dynamic_pages/list_filters_block_builder.rb +12 -13
  592. data/app/models/kirgudu_base/dynamic_pages/list_properties_block_builder.rb +11 -13
  593. data/app/models/kirgudu_base/dynamic_pages/list_property.rb +20 -22
  594. data/app/models/kirgudu_base/dynamic_pages/list_property_builder.rb +27 -29
  595. data/app/models/kirgudu_base/dynamic_pages/management_settings.rb +20 -21
  596. data/app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb +30 -32
  597. data/app/models/kirgudu_base/dynamic_pages/menu.rb +26 -28
  598. data/app/models/kirgudu_base/dynamic_pages/menu_builder.rb +34 -33
  599. data/app/models/kirgudu_base/dynamic_pages/menu_item.rb +30 -62
  600. data/app/models/kirgudu_base/dynamic_pages/menu_item_builder.rb +28 -39
  601. data/app/models/kirgudu_base/dynamic_pages/menu_items_block_builder.rb +19 -19
  602. data/app/models/kirgudu_base/dynamic_pages/menu_section.rb +23 -25
  603. data/app/models/kirgudu_base/dynamic_pages/menu_section_builder.rb +23 -25
  604. data/app/models/kirgudu_base/dynamic_pages/page.rb +7 -5
  605. data/app/models/kirgudu_base/dynamic_pages/page_builder.rb +94 -80
  606. data/app/models/kirgudu_base/dynamic_pages/page_element.rb +42 -42
  607. data/app/models/kirgudu_base/dynamic_pages/page_element_builder.rb +7 -5
  608. data/app/models/kirgudu_base/dynamic_pages/page_elements_block_builder.rb +51 -57
  609. data/app/models/kirgudu_base/dynamic_pages/page_tab.rb +18 -19
  610. data/app/models/kirgudu_base/dynamic_pages/page_tab_builder.rb +46 -47
  611. data/app/models/kirgudu_base/dynamic_pages/parent_element.rb +19 -21
  612. data/app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb +24 -28
  613. data/app/models/kirgudu_base/dynamic_pages/property.rb +30 -32
  614. data/app/models/kirgudu_base/dynamic_pages/property_builder.rb +49 -53
  615. data/app/models/kirgudu_base/dynamic_pages/property_events_block_builder.rb +21 -22
  616. data/app/models/kirgudu_base/dynamic_pages/relation.rb +13 -14
  617. data/app/models/kirgudu_base/dynamic_pages/relation_builder.rb +24 -26
  618. data/app/models/kirgudu_base/dynamic_pages/sorting_settings.rb +19 -20
  619. data/app/models/kirgudu_base/dynamic_pages/sorting_settings_builder.rb +30 -32
  620. data/app/models/kirgudu_base/dynamic_pages/url.rb +61 -0
  621. data/app/models/kirgudu_base/dynamic_pages/{controller_link_builder.rb → url_builder.rb} +8 -8
  622. data/app/models/kirgudu_base/dynamic_pages/url_parameter.rb +42 -0
  623. data/app/models/kirgudu_base/dynamic_pages/url_parameter_builder.rb +40 -0
  624. data/app/models/kirgudu_base/dynamic_pages/widget.rb +4 -6
  625. data/app/models/kirgudu_base/dynamic_pages/widget_builder.rb +10 -12
  626. data/app/models/kirgudu_base/security/authentication.rb +4 -4
  627. data/app/models/kirgudu_base/security/email_confirmation.rb +1 -1
  628. data/app/models/kirgudu_base/security/login_provider.rb +64 -0
  629. data/app/models/kirgudu_base/security/restore_password_code.rb +1 -1
  630. data/app/models/kirgudu_base/security/user.rb +34 -15
  631. data/app/models/kirgudu_base/settings/group.rb +3 -3
  632. data/app/models/kirgudu_base/settings/option.rb +3 -3
  633. data/app/models/kirgudu_base/settings/value.rb +3 -3
  634. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/dashboard/index.html.erb +0 -0
  635. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/dashboard/modules.html.erb +0 -0
  636. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/dashboard/stats.html.erb +0 -0
  637. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/layouts/application.html.erb +25 -23
  638. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/shared/_attach_file_uploader.html.erb +0 -0
  639. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/shared/manage_images/managing_items_index.html.erb +0 -0
  640. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/shared/manage_images/managing_items_manage.html.erb +0 -0
  641. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/shared/manage_images/managing_items_sort_index.html.erb +0 -0
  642. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/shared/manage_images/managing_upload_images.html.erb +0 -0
  643. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/shared/manage_items/managing_items_index.html.erb +0 -0
  644. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/shared/manage_items/managing_items_manage.html.erb +0 -0
  645. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/shared/manage_items/managing_items_sort_index.html.erb +0 -0
  646. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/groups/edit.html.erb +0 -0
  647. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/groups/index.html.erb +0 -0
  648. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/groups/new.html.erb +0 -0
  649. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/groups/show.html.erb +0 -0
  650. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/options/edit.html.erb +0 -0
  651. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/options/index.html.erb +0 -0
  652. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/options/new.html.erb +0 -0
  653. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/options/show.html.erb +0 -0
  654. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/values/edit.html.erb +0 -0
  655. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/values/index.html.erb +0 -0
  656. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/values/new.html.erb +0 -0
  657. data/app/views/{admin_templates → kirgudu_base/admin}/default/admin/system/settings/values/show.html.erb +0 -0
  658. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/layouts/application.html.erb +1 -1
  659. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_body_javascripts_files.html.erb +0 -0
  660. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_body_javascripts_scripts.html.erb +0 -0
  661. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_breadcrumbs.html.erb +0 -0
  662. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_head_javascripts.html.erb +0 -0
  663. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_head_stylesheets.html.erb +0 -0
  664. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_index_page_filter.html.erb +0 -0
  665. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_left_menu_standard_actions.html.erb +0 -0
  666. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_services_top_line.html.erb +0 -0
  667. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/_top_nav_bar.html.erb +3 -3
  668. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/entry_edit_form_renderer.html.erb +0 -0
  669. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/entry_index_renderer.html.erb +0 -0
  670. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/entry_new_form_renderer.html.erb +0 -0
  671. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/entry_not_found_renderer.html.erb +0 -0
  672. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/entry_show_renderer.html.erb +0 -0
  673. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/manage_images/managing_items_index.html.erb +0 -0
  674. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/manage_images/managing_items_manage.html.erb +0 -0
  675. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/manage_images/managing_items_sort_index.html.erb +0 -0
  676. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/manage_items/managing_items_index.html.erb +0 -0
  677. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/manage_items/managing_items_manage.html.erb +0 -0
  678. data/app/views/{admin_templates → kirgudu_base/admin}/erp/admin/shared/manage_items/managing_items_sort_index.html.erb +0 -0
  679. data/app/views/{admin_templates/good/admin/shared/_left_menu_item.html.erb → kirgudu_base/admin/medialoot/common/dashboard.html.erb} +0 -0
  680. data/app/views/kirgudu_base/admin/medialoot/common/edit.html.erb +68 -0
  681. data/app/views/kirgudu_base/admin/medialoot/common/index.html.erb +121 -0
  682. data/app/views/kirgudu_base/admin/medialoot/common/new.html.erb +62 -0
  683. data/app/views/kirgudu_base/admin/medialoot/common/show.html.erb +146 -0
  684. data/app/views/kirgudu_base/admin/medialoot/layouts/application.html.erb +143 -0
  685. data/app/views/{admin_templates/good/admin → kirgudu_base/admin/medialoot}/shared/_breadcrumbs.html.erb +8 -6
  686. data/app/views/kirgudu_base/admin/medialoot/shared/_left_menu.html.erb +13 -0
  687. data/app/views/kirgudu_base/admin/medialoot/shared/entry_not_found.html.erb +3 -0
  688. data/app/views/{admin_templates/good/admin/shared/renderer_delete.html.erb → kirgudu_base/admin/medialoot/sso/dashboard/index.html.erb} +0 -0
  689. data/app/views/{admin_templates/good/admin/dashboard/index.html.erb → kirgudu_base/admin/zapanel/common/dashboard.html.erb} +246 -245
  690. data/app/views/{admin_templates/good/kirgudu_base/old/restore.html.erb → kirgudu_base/admin/zapanel/common/delete.html.erb} +0 -0
  691. data/app/views/{admin_templates/good/admin/shared/renderer_edit.html.erb → kirgudu_base/admin/zapanel/common/edit.html.erb} +45 -25
  692. data/app/views/{admin_templates/good_flexy/admin/common/files/upload.html.erb → kirgudu_base/admin/zapanel/common/file_upload.html.erb} +6 -6
  693. data/app/views/{admin_templates/good/admin/common/images/mass_upload.html.erb → kirgudu_base/admin/zapanel/common/image_upload.html.erb} +0 -0
  694. data/app/views/kirgudu_base/admin/zapanel/common/index.html.erb +174 -0
  695. data/app/views/kirgudu_base/admin/zapanel/common/index_temp.html.erb +192 -0
  696. data/app/views/{admin_templates/good/admin/shared/renderer_management.html.erb → kirgudu_base/admin/zapanel/common/management.html.erb} +0 -0
  697. data/app/views/{admin_templates/good/admin/shared/renderer_new.html.erb → kirgudu_base/admin/zapanel/common/new.html.erb} +10 -8
  698. data/app/views/kirgudu_base/admin/zapanel/common/show.html.erb +270 -0
  699. data/app/views/{admin_templates/good/admin/shared/renderer_show.html.erb → kirgudu_base/admin/zapanel/common/show_temp.html.erb} +98 -86
  700. data/app/views/{admin_templates/good/admin/shared/renderer_sorting.html.erb → kirgudu_base/admin/zapanel/common/sorting.html.erb} +0 -0
  701. data/app/views/{admin_templates/good/admin → kirgudu_base/admin/zapanel}/layouts/application.html.erb +97 -82
  702. data/app/views/{admin_templates/good_flexy/admin → kirgudu_base/admin/zapanel}/shared/_breadcrumbs.html.erb +1 -1
  703. data/app/views/{admin_templates/good/admin → kirgudu_base/admin/zapanel}/shared/_chat.html.erb +1 -1
  704. data/app/views/kirgudu_base/admin/zapanel/shared/_left_menu.html.erb +46 -0
  705. data/app/views/{admin_templates/good/admin → kirgudu_base/admin/zapanel}/shared/_left_menu_emails.html.erb +1 -1
  706. data/app/views/{admin_templates/good_flexy/admin/shared/renderer_delete.html.erb → kirgudu_base/admin/zapanel/shared/_left_menu_item.html.erb} +0 -0
  707. data/app/views/{admin_templates/good/admin → kirgudu_base/admin/zapanel}/shared/_left_menu_section.html.erb +1 -1
  708. data/app/views/{admin_templates/good/admin → kirgudu_base/admin/zapanel}/shared/_left_menu_social_stats.html.erb +3 -3
  709. data/app/views/{admin_templates/good/admin → kirgudu_base/admin/zapanel}/shared/_left_menu_tags.html.erb +0 -0
  710. data/app/views/{admin_templates/good/admin → kirgudu_base/admin/zapanel}/shared/_sticky_notification.html.erb +0 -0
  711. data/app/views/kirgudu_base/admin/zapanel/shared/_top_menu_complex.html.erb +7 -0
  712. data/app/views/kirgudu_base/admin/zapanel/shared/_top_menu_simple.html.erb +5 -0
  713. data/app/views/{admin_templates/good/admin → kirgudu_base/admin/zapanel}/shared/entry_not_found.html.erb +0 -0
  714. data/app/views/{admin_templates/good/admin/shared/404.html.erb → kirgudu_base/admin/zapanel/shared/page_404.html.erb} +0 -0
  715. data/app/views/{admin_templates/good/kirgudu_base/authentications → kirgudu_base/authentications/zapanel}/login.html.erb +0 -0
  716. data/app/views/{admin_templates/good/kirgudu_base/authentications → kirgudu_base/authentications/zapanel}/register.html.erb +0 -0
  717. data/config/locales/kirgudu_base.en.yml +138 -1
  718. data/config/locales/kirgudu_base.es.yml +138 -1
  719. data/config/locales/kirgudu_base.ru.yml +70 -1
  720. data/db/migrate/20130913084129_create_kirgudu_base_security_users.rb +10 -3
  721. data/db/migrate/20140413134252_create_kirgudu_base_security_authentications.rb +2 -2
  722. data/db/migrate/20140413201121_add_confirmations_kirgudu_base_security_users.rb +2 -2
  723. data/db/migrate/20140517202608_create_kirgudu_base_security_login_providers.rb +24 -0
  724. data/db/migrate/20140712073938_change_deletion_statsus_in_security_user.rb +5 -0
  725. data/db/migrate/20140712074215_change_deletion_statsus_in_common_portal.rb +5 -0
  726. data/db/migrate/20140712074220_change_deletion_statsus_in_common_portal_user.rb +5 -0
  727. data/lib/kirgudu_base/engine.rb +1 -0
  728. data/test/fixtures/kirgudu_base/security/login_providers.yml +13 -0
  729. data/test/fixtures/kirgudu_base/sso/login_providers.yml +13 -0
  730. data/test/models/kirgudu_base/security/login_provider_test.rb +9 -0
  731. data/test/models/kirgudu_base/sso/login_provider_test.rb +9 -0
  732. metadata +638 -642
  733. data/app/assets/images/kirgudu_base/web/banner.jpg +0 -0
  734. data/app/assets/images/kirgudu_base/web/black.png +0 -0
  735. data/app/assets/images/kirgudu_base/web/body.png +0 -0
  736. data/app/assets/images/kirgudu_base/web/col_img1.jpg +0 -0
  737. data/app/assets/images/kirgudu_base/web/col_img2.jpg +0 -0
  738. data/app/assets/images/kirgudu_base/web/coll_campaign.png +0 -0
  739. data/app/assets/images/kirgudu_base/web/coll_list_head.png +0 -0
  740. data/app/assets/images/kirgudu_base/web/coll_new.png +0 -0
  741. data/app/assets/images/kirgudu_base/web/coll_no_img.png +0 -0
  742. data/app/assets/images/kirgudu_base/web/coll_podr.png +0 -0
  743. data/app/assets/images/kirgudu_base/web/factory.jpg +0 -0
  744. data/app/assets/images/kirgudu_base/web/fancybox/blank.gif +0 -0
  745. data/app/assets/images/kirgudu_base/web/fancybox/fancybox_buttons.png +0 -0
  746. data/app/assets/images/kirgudu_base/web/fancybox/fancybox_loading.gif +0 -0
  747. data/app/assets/images/kirgudu_base/web/fancybox/fancybox_overlay.png +0 -0
  748. data/app/assets/images/kirgudu_base/web/fancybox/fancybox_sprite.png +0 -0
  749. data/app/assets/images/kirgudu_base/web/fancybox/fancybox_sprite1.png +0 -0
  750. data/app/assets/images/kirgudu_base/web/flag1.jpg +0 -0
  751. data/app/assets/images/kirgudu_base/web/flag2.jpg +0 -0
  752. data/app/assets/images/kirgudu_base/web/fonts/MyriadPro-Cond/myriadpro-cond.css +0 -8
  753. data/app/assets/images/kirgudu_base/web/fonts/MyriadPro-Cond/myriadpro-cond.eot +0 -0
  754. data/app/assets/images/kirgudu_base/web/fonts/MyriadPro-Cond/myriadpro-cond.svg +0 -7555
  755. data/app/assets/images/kirgudu_base/web/fonts/MyriadPro-Cond/myriadpro-cond.ttf +0 -0
  756. data/app/assets/images/kirgudu_base/web/fonts/MyriadPro-Cond/myriadpro-cond.woff +0 -0
  757. data/app/assets/images/kirgudu_base/web/fonts/MyriadPro-Cond/myriadprocond.eot +0 -0
  758. data/app/assets/images/kirgudu_base/web/fonts/myriad_pro/myriadpro-regular.css +0 -8
  759. data/app/assets/images/kirgudu_base/web/fonts/myriad_pro/myriadpro-regular.eot +0 -0
  760. data/app/assets/images/kirgudu_base/web/fonts/myriad_pro/myriadpro-regular.svg +0 -7887
  761. data/app/assets/images/kirgudu_base/web/fonts/myriad_pro/myriadpro-regular.ttf +0 -0
  762. data/app/assets/images/kirgudu_base/web/fonts/myriad_pro/myriadpro-regular.woff +0 -0
  763. data/app/assets/images/kirgudu_base/web/green.png +0 -0
  764. data/app/assets/images/kirgudu_base/web/grey.png +0 -0
  765. data/app/assets/images/kirgudu_base/web/header_black.png +0 -0
  766. data/app/assets/images/kirgudu_base/web/kolonna.png +0 -0
  767. data/app/assets/images/kirgudu_base/web/li_1.png +0 -0
  768. data/app/assets/images/kirgudu_base/web/li_2.png +0 -0
  769. data/app/assets/images/kirgudu_base/web/li_3.png +0 -0
  770. data/app/assets/images/kirgudu_base/web/li_4.png +0 -0
  771. data/app/assets/images/kirgudu_base/web/li_5.png +0 -0
  772. data/app/assets/images/kirgudu_base/web/logo.png +0 -0
  773. data/app/assets/images/kirgudu_base/web/map.png +0 -0
  774. data/app/assets/images/kirgudu_base/web/map_2.png +0 -0
  775. data/app/assets/images/kirgudu_base/web/nav_active.png +0 -0
  776. data/app/assets/images/kirgudu_base/web/nognicy.png +0 -0
  777. data/app/assets/images/kirgudu_base/web/orange.png +0 -0
  778. data/app/assets/images/kirgudu_base/web/pagination.png +0 -0
  779. data/app/assets/images/kirgudu_base/web/pdf.png +0 -0
  780. data/app/assets/images/kirgudu_base/web/plit_1.jpg +0 -0
  781. data/app/assets/images/kirgudu_base/web/plit_2.jpg +0 -0
  782. data/app/assets/images/kirgudu_base/web/plit_3.jpg +0 -0
  783. data/app/assets/images/kirgudu_base/web/plit_4.jpg +0 -0
  784. data/app/assets/images/kirgudu_base/web/post_img.jpg +0 -0
  785. data/app/assets/images/kirgudu_base/web/red_line.png +0 -0
  786. data/app/assets/images/kirgudu_base/web/shadow_bottom.png +0 -0
  787. data/app/assets/images/kirgudu_base/web/shadow_top.png +0 -0
  788. data/app/assets/images/kirgudu_base/web/show-room.php +0 -71
  789. data/app/assets/images/kirgudu_base/web/slider.png +0 -0
  790. data/app/assets/images/kirgudu_base/web/slider_bg.png +0 -0
  791. data/app/assets/images/kirgudu_base/web/slider_but.png +0 -0
  792. data/app/assets/images/kirgudu_base/web/sprite_index.png +0 -0
  793. data/app/assets/images/kirgudu_base/web/sprite_vert.png +0 -0
  794. data/app/assets/images/kirgudu_base/web/top_nav.png +0 -0
  795. data/app/assets/images/kirgudu_base/web/transperent_bg.png +0 -0
  796. data/app/assets/images/kirgudu_base/web/transperent_bg1.png +0 -0
  797. data/app/assets/images/kirgudu_base/web/up_down.png +0 -0
  798. data/app/assets/images/kirgudu_base/web/yellow.png +0 -0
  799. data/app/assets/javascripts/kirgudu_base/application.js +0 -15
  800. data/app/assets/javascripts/kirgudu_base/delete.js +0 -67
  801. data/app/assets/javascripts/kirgudu_base/jquery-ui-1.8.23.custom.min.js +0 -125
  802. data/app/assets/javascripts/kirgudu_base/jquery-ui-1.8.23.custom.min_d9931121.js +0 -125
  803. data/app/assets/javascripts/kirgudu_base/jquery.fancybox.js +0 -2020
  804. data/app/assets/javascripts/kirgudu_base/jquery.jcarousel.min.js +0 -16
  805. data/app/assets/javascripts/kirgudu_base/jquery.json-2.3.min.js +0 -23
  806. data/app/assets/javascripts/kirgudu_base/jquery.uploadify.js +0 -986
  807. data/app/assets/javascripts/kirgudu_base/movie_data.js +0 -2347
  808. data/app/assets/javascripts/kirgudu_base/scripts_OLD.js +0 -204
  809. data/app/assets/stylesheets/kirgudu_base/admin/default/fonts/fontawesome-webfont.eot +0 -0
  810. data/app/assets/stylesheets/kirgudu_base/admin/default/fonts/fontawesome-webfont.svg +0 -255
  811. data/app/assets/stylesheets/kirgudu_base/admin/default/fonts/fontawesome-webfont.ttf +0 -0
  812. data/app/assets/stylesheets/kirgudu_base/admin/default/fonts/fontawesome-webfont.woff +0 -0
  813. data/app/assets/stylesheets/kirgudu_base/admin/default/fonts/fontawesome-webfont_2d2816fe.eot +0 -0
  814. data/app/assets/stylesheets/kirgudu_base/admin/good/range-slider.normalize.min.css +0 -50
  815. data/app/helpers/kirgudu_base/controllers/OLD_basic_actions.rb +0 -449
  816. data/app/helpers/kirgudu_base/controllers/basic_actions_with_subordinates.rb +0 -67
  817. data/app/models/kirgudu_base/dynamic_filters/obligatory_filter.rb +0 -24
  818. data/app/models/kirgudu_base/dynamic_filters/obligatory_filter_builder.rb +0 -47
  819. data/app/models/kirgudu_base/dynamic_pages/controller_link.rb +0 -40
  820. data/app/models/kirgudu_base/dynamic_pages/controller_link_id.rb +0 -35
  821. data/app/models/kirgudu_base/dynamic_pages/controller_link_id_builder.rb +0 -38
  822. data/app/models/kirgudu_base/dynamic_transactions/enums.rb +0 -13
  823. data/app/models/kirgudu_base/dynamic_transactions/transaction_injection.rb +0 -25
  824. data/app/models/kirgudu_base/security/autheintication.rb +0 -4
  825. data/app/views/admin_templates/good/admin/common/files/upload.html.erb +0 -203
  826. data/app/views/admin_templates/good/admin/layouts/OLD_application.html.erb +0 -518
  827. data/app/views/admin_templates/good/admin/shared/_left_menu.html.erb +0 -148
  828. data/app/views/admin_templates/good/admin/shared/render_new_OLD.html.erb +0 -90
  829. data/app/views/admin_templates/good/admin/shared/renderer_edit_OLD.html.erb +0 -106
  830. data/app/views/admin_templates/good/admin/shared/renderer_entries_list.html.erb +0 -178
  831. data/app/views/admin_templates/good/admin/shared/renderer_entries_list_with_parent.html.erb +0 -149
  832. data/app/views/admin_templates/good/admin/shared/renderer_show_OLD.html.erb +0 -159
  833. data/app/views/admin_templates/good/kirgudu_base/old/login_page.html.erb +0 -253
  834. data/app/views/admin_templates/good/kirgudu_base/old/show.html.erb +0 -39
  835. data/app/views/admin_templates/good_flexy/admin/common/images/mass_upload.html.erb +0 -9
  836. data/app/views/admin_templates/good_flexy/admin/dashboard/index.html.erb +0 -568
  837. data/app/views/admin_templates/good_flexy/admin/layouts/OLD_application.html.erb +0 -518
  838. data/app/views/admin_templates/good_flexy/admin/layouts/application.html.erb +0 -1297
  839. data/app/views/admin_templates/good_flexy/admin/shared/404.html.erb +0 -29
  840. data/app/views/admin_templates/good_flexy/admin/shared/_chat.html.erb +0 -49
  841. data/app/views/admin_templates/good_flexy/admin/shared/_left_menu.html.erb +0 -144
  842. data/app/views/admin_templates/good_flexy/admin/shared/_left_menu_emails.html.erb +0 -20
  843. data/app/views/admin_templates/good_flexy/admin/shared/_left_menu_social_stats.html.erb +0 -20
  844. data/app/views/admin_templates/good_flexy/admin/shared/_left_menu_tags.html.erb +0 -3
  845. data/app/views/admin_templates/good_flexy/admin/shared/_sticky_notification.html.erb +0 -11
  846. data/app/views/admin_templates/good_flexy/admin/shared/entry_not_found.html.erb +0 -1
  847. data/app/views/admin_templates/good_flexy/admin/shared/renderer_entries_list.html.erb +0 -165
  848. data/app/views/admin_templates/good_flexy/admin/shared/renderer_entries_list_with_parent.html.erb +0 -149
  849. data/app/views/admin_templates/good_flexy/admin/shared/renderer_form_edit.html.erb +0 -119
  850. data/app/views/admin_templates/good_flexy/admin/shared/renderer_form_new.html.erb +0 -90
  851. data/app/views/admin_templates/good_flexy/admin/shared/renderer_page_elements.html.erb +0 -11
  852. data/app/views/admin_templates/good_flexy/admin/shared/renderer_show.html.erb +0 -149
  853. data/app/views/security/authentications/login_page.html.erb +0 -253
  854. data/app/views/security/authentications/restore.html.erb +0 -0
  855. data/app/views/security/authentications/show.html.erb +0 -35
  856. data/app/views/shared/kirgudu_base/manage_images/managing_items_index.html.erb +0 -34
  857. data/app/views/shared/kirgudu_base/manage_images/managing_items_manage.html.erb +0 -72
  858. data/app/views/shared/kirgudu_base/manage_images/managing_items_sort_index.html.erb +0 -33
  859. data/app/views/shared/kirgudu_base/manage_items/managing_items_index.html.erb +0 -42
  860. data/app/views/shared/kirgudu_base/manage_items/managing_items_manage.html.erb +0 -66
  861. data/app/views/shared/kirgudu_base/manage_items/managing_items_sort_index.html.erb +0 -33
@@ -25,44 +25,6 @@ module KirguduBase
25
25
  @current_portal
26
26
  end
27
27
 
28
-
29
- include GuiHelper
30
-
31
- #before_action :update_url_with_ajax_referer_url
32
-
33
- # def create_breadcrumbs
34
- #
35
- # if @current_user.user_at_portals.count > 1
36
- # add_new_breadcrumb I18n.t("select_portal.index.title"), url_for(controller: ::ErpZone::SelectPortalController.to_route_path, action: :index)
37
- # end
38
- #
39
- # add_new_breadcrumb @current_portal.name, url_for(controller: ::AdminZone::DashboarController.to_route_path) if @current_portal
40
- #
41
- #
42
- # if self.class.to_s == ::AdminZone::DashboardController
43
- # add_new_breadcrumb(I18n.t("#{self.to_i18n}.index.title"))
44
- # return
45
- # end
46
- #
47
- # if self.action_name == "index"
48
- # add_new_breadcrumb(I18n.t("#{self.to_i18n}.index.title"))
49
- # else
50
- # add_new_breadcrumb(
51
- # I18n.t("#{self.to_i18n}.index.title"),
52
- # url_for(controller: ::ChupakabraTools::ClassHelper.controller_underscore(self), action: "index", id: @container))
53
- #
54
- # if ['new', 'create'].include?(self.action_name)
55
- # add_new_breadcrumb(I18n.t("#{self.to_i18n}.new.title"))
56
- # elsif ['edit', 'update', 'show'].include?(self.action_name)
57
- # entry = self.current_entry
58
- #
59
- # if entry && entry.respond_to?(:name_for_breadcrumbs)
60
- # add_new_breadcrumb(entry.name_for_breadcrumbs)
61
- # end
62
- # end
63
- # end
64
- # end
65
-
66
28
  protected
67
29
 
68
30
  rescue_from ActiveRecord::RecordNotFound do
@@ -76,12 +38,12 @@ module KirguduBase
76
38
  private
77
39
 
78
40
  def before_entry_create(entry, filter_params, options)
79
- entry.creator = @current_user
80
- entry.updater = @current_user
41
+ entry.creator = self.current_user
42
+ entry.updater = self.current_user
81
43
  end
82
44
 
83
45
  def before_entry_update(entry, filter_params, options)
84
- entry.updater = @current_user
46
+ entry.updater = self.current_user
85
47
  end
86
48
  end
87
49
  end
@@ -0,0 +1,1209 @@
1
+ module KirguduBase
2
+ class DynamicPagesController < ::KirguduBase::ApplicationController
3
+
4
+ ########################################################################################
5
+ ######################### Before&After Actions ###############################
6
+ ########################################################################################
7
+
8
+ before_action :kb_dp_init_controller_action
9
+
10
+
11
+ ########################################################################################
12
+ ######################## Transaction Injections ##############################
13
+ ########################################################################################
14
+
15
+ kb_transaction_injection do
16
+ method :before_entry_create
17
+ action :create
18
+ flow_position :before_save
19
+ end
20
+
21
+ kb_transaction_injection do
22
+ method :before_entry_update
23
+ action :update
24
+ flow_position :before_save
25
+ end
26
+
27
+
28
+ ########################################################################################
29
+ ################################ Actions ######################################
30
+ ########################################################################################
31
+
32
+
33
+ def index
34
+ # fill parent for data
35
+ filters_for_parents = {}
36
+ self.fill_obligatory_db_query_params(filters_for_parents)
37
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
38
+
39
+
40
+ db_query_params = self.get_filters_for_list(@local_data[:page].lists[:entries_list], params)
41
+ self.fill_obligatory_db_query_params(db_query_params)
42
+ db_query_params.merge!(@local_data[:parent_ids])
43
+
44
+ db_query_params[:per_page] = 30 unless db_query_params[:per_page]
45
+ db_query_params[:per_page] ||= 30
46
+
47
+ # retrieving db_query_params data from database
48
+ @local_data[:filters_data] = self.load_data_for_filters_controls(@local_data[:page].lists[:entries_list], params)
49
+ # retrieving entries from database
50
+ @local_data[:entries] = self.entry_class.get_entries(nil, db_query_params, @options)
51
+
52
+ # filling db_query_params for current url
53
+ filters_for_current_url = self.get_filters_for_list(@local_data[:page].lists[:entries_list], params)
54
+ filters_for_current_url.merge!(@local_data[:parent_ids])
55
+
56
+ #raise "DP INDEX - PARENT IDS: #{@local_data[:parent_ids].to_json}"
57
+ #raise "DP INDEX - FILTERS FOR CURRENT URL: #{filters_for_current_url.to_json}"
58
+
59
+ @local_data[:current_url] = self.to_url_for(:index, filters_for_current_url)
60
+
61
+ #raise "DEBUG: INDEX - BEFORE BREADCRUMBS"
62
+ # building breadcrumbs
63
+ self.kb_dp_breadcrumbs_build(@local_data, true) #index page
64
+
65
+ #raise "DEBUG: INDEX - AFTER BREADCRUMBS"
66
+
67
+ # logger.info "TEMPLATE PATH: #{self.class.get_method_latest_result(:get_kb_template)}"
68
+ # logger.info "VIEW PATH: #{self.class.get_method_latest_result(:get_kb_view_path, :index)}"
69
+
70
+ # rendering page
71
+
72
+ #raise "DEBUG: INDEX - BEFORE VIEW RENDER
73
+ respond_to do |format|
74
+ #format.html { render_html1 "#{self.class.get_method_latest_result(:get_kb_template)}/#{self.class.get_method_latest_result(:get_kb_view_path, :index)}", locals: {data: @local_data} }
75
+ format.html { render_html1 self.get_view_path(:index), layout: self.get_view_path(:layout), locals: {data: @local_data} }
76
+ format.json { render_json_ok(@local_data[:entries]) }
77
+ end
78
+ end
79
+
80
+
81
+ def dashboard
82
+
83
+ # fill parent for data
84
+ filters_for_parents = {}
85
+ self.fill_obligatory_db_query_params(filters_for_parents)
86
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
87
+
88
+
89
+ # filling db_query_params for current url
90
+ # filters_for_current_url = self.get_filters_for_list(@local_data[:page].lists[:entries_list], params)
91
+ # filters_for_current_url.merge!(@local_data[:parent_ids])
92
+ # @local_data[:current_url] = self.to_url_for(:index, filters_for_current_url)
93
+
94
+
95
+ # building breadcrumbs
96
+ self.kb_dp_breadcrumbs_build(@local_data, true) #index page
97
+
98
+
99
+ # logger.info "TEMPLATE PATH: #{self.class.get_method_latest_result(:get_kb_template)}"
100
+ # logger.info "VIEW PATH: #{self.class.get_method_latest_result(:get_kb_view_path, :index)}"
101
+
102
+ # rendering page
103
+ respond_to do |format|
104
+ # format.html { render_html1 "#{self.class.get_method_latest_result(:get_kb_template)}/#{self.class.get_method_latest_result(:get_kb_view_path, :dashboard)}", locals: {data: @local_data} }
105
+ format.html { render_html1 self.get_view_path(:dashboard), layout: self.get_view_path(:layout), locals: {data: @local_data} }
106
+ format.json { render_json_ok(nil) }
107
+ end
108
+ end
109
+
110
+
111
+ def show
112
+
113
+ # fill parent for data
114
+ filters_for_parents = {}
115
+ self.fill_obligatory_db_query_params(filters_for_parents)
116
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
117
+ # fill db_query_params for search
118
+ db_query_params = {}
119
+ self.fill_obligatory_db_query_params(db_query_params)
120
+ db_query_params.merge!(@local_data[:parent_ids])
121
+ # retrieving entry from database
122
+ @local_data[:entry] = self.entry_class.get_entry_by_id(params[:id], db_query_params, @options)
123
+
124
+ #Rendering 'Entry Not Found' Page
125
+ self.kb_db_render_entry_not_found_page and return unless @local_data[:entry]
126
+
127
+ # getting lists
128
+ @local_data[:page].lists.each_pair do |key, list|
129
+ if list.relation
130
+ filters_for_list = {}
131
+ self.fill_obligatory_db_query_params(filters_for_list)
132
+ reflection = self.entry_class.reflections[list.relation.name]
133
+ list_per_page = list.relation.per_page_param
134
+ list_page = list.relation.page_param
135
+
136
+
137
+ filters_for_list[:per_page] = params[list_per_page].to_i rescue 30
138
+ filters_for_list[:per_page] ||= 30
139
+ filters_for_list[:per_page] = 30 if filters_for_list[:per_page] == 0
140
+ filters_for_list[:page] = params[list_page].to_i rescue 1
141
+ filters_for_list[reflection.foreign_key] = @local_data[:entry].id
142
+
143
+ #logger.info "FILTERS for LIST: #{filters_for_list.to_json}"
144
+
145
+ @local_data[:"list_entries_#{list.name}"] = eval(reflection.class_name).get_entries(nil, filters_for_list, @options)
146
+ end
147
+ end if @local_data[:page].lists
148
+
149
+
150
+ # fill parent for data
151
+ filters_for_parents = {}
152
+ self.fill_obligatory_db_query_params(filters_for_parents)
153
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
154
+
155
+ # building breadcrumbs
156
+ self.kb_dp_breadcrumbs_build(@local_data, false) #not index page
157
+
158
+ # rendering page
159
+ respond_to do |format|
160
+ # format.html { render_html1 "#{self.class.get_method_latest_result(:get_kb_template)}/#{self.class.get_method_latest_result(:get_kb_view_path, :show)}", locals: {data: @local_data} }
161
+ format.html { render_html1 self.get_view_path(:show), layout: self.get_view_path(:layout), locals: {data: @local_data} }
162
+ format.json { render_json_ok @local_data[:entry] }
163
+ end
164
+ end
165
+
166
+ def new
167
+
168
+ db_query_params = {}
169
+ self.fill_obligatory_db_query_params(db_query_params)
170
+
171
+ # getting entry
172
+ @local_data[:entry] = entry_class.new
173
+ # getting controls data
174
+ @local_data[:controls_data] = self.load_data_for_entry_controls(@local_data[:page].forms[:changes], @local_data[:entry])
175
+
176
+ # fill parent for data
177
+ filters_for_parents = {}
178
+ self.fill_obligatory_db_query_params(filters_for_parents)
179
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
180
+
181
+ # building breadcrumbs
182
+ self.kb_dp_breadcrumbs_build(@local_data, false) #not index page
183
+
184
+ # rendering page
185
+ respond_to do |format|
186
+ #format.html { render_html1 "#{self.class.get_method_latest_result(:get_kb_template)}/#{self.class.get_method_latest_result(:get_kb_view_path, :new)}", locals: {data: @local_data} }
187
+ format.html { render_html1 self.get_view_path(:new), layout: self.get_view_path(:layout), locals: {data: @local_data} }
188
+ format.json { render_json_ok @local_data[:entry] }
189
+ end
190
+ end
191
+
192
+
193
+ def create
194
+
195
+
196
+ # fill parent for data
197
+ filters_for_parents = {}
198
+ self.fill_obligatory_db_query_params(filters_for_parents)
199
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
200
+
201
+
202
+ strong_params = {}.merge(self.class_strong_params(@local_data[:page].forms[:changes]))
203
+ self.fill_obligatory_db_query_params(strong_params)
204
+ strong_params.merge!(@local_data[:parent_ids])
205
+
206
+ # getting entry
207
+ @local_data[:entry] = self.entry_class.new(strong_params)
208
+
209
+ # pre create
210
+ self.process_transaction_injections(@local_data[:entry], :create, :before_transaction, strong_params)
211
+ transaction_is_ok = true
212
+
213
+ ActiveRecord::Base.transaction do
214
+ #raise "In Transaction Before Create"
215
+ unless self.process_transaction_injections(@local_data[:entry], :create, :before_save, strong_params)
216
+ transaction_is_ok = false
217
+ raise ActiveRecord::Rollback
218
+ end
219
+
220
+ if @local_data[:entry].save
221
+ unless process_transaction_injections(@local_data[:entry], :create, :after_save, strong_params)
222
+ transaction_is_ok = false
223
+ raise ActiveRecord::Rollback
224
+ end
225
+ else
226
+ transaction_is_ok = false
227
+ raise ActiveRecord::Rollback
228
+ end
229
+ end
230
+
231
+ self.process_transaction_injections(@local_data[:entry], :create, :after_transaction, strong_params)
232
+
233
+ respond_to do |format|
234
+ if transaction_is_ok
235
+ @local_data[:messages] << I18n.t("#{self.to_i18n}.messages.entry_created", entry_name: @local_data[:entry].to_s)
236
+ format.html { render_redirect self.to_url_for(:show, @local_data[:parent_ids].merge(id: @local_data[:entry].id)) }
237
+ format.json { render_json_ok @local_data[:entry], message: @local_data[:messages] }
238
+ else
239
+ # loading data for select-like controls
240
+ @local_data[:controls_data] = self.load_data_for_entry_controls(@local_data[:page].forms[:changes], @local_data[:entry])
241
+ @local_data[:errors] << I18n.t("#{self.to_i18n}.messages.create_error")
242
+
243
+
244
+ # building breadcrumbs
245
+ self.kb_dp_breadcrumbs_build(@local_data, false) #not index page
246
+
247
+ # rendering page
248
+ format.html { render_html1 self.get_view_path(:new), layout: self.get_view_path(:layout), locals: {data: @local_data} }
249
+ format.json { render_json_error @local_data[:entry], message: @local_data[:errors] }
250
+ end
251
+ end
252
+ end
253
+
254
+
255
+ def edit
256
+
257
+ # fill parent for data
258
+ filters_for_parents = {}
259
+ self.fill_obligatory_db_query_params(filters_for_parents)
260
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
261
+ # filling db_query_params for search
262
+ db_query_params = {}
263
+ self.fill_obligatory_db_query_params(db_query_params)
264
+ db_query_params.merge!(@local_data[:parent_ids])
265
+ # retrieving entry from database
266
+ @local_data[:entry] = self.entry_class.get_entry_by_id(params[:id], db_query_params, @options)
267
+
268
+ #Rendering 'Entry Not Found' Page
269
+ self.kb_db_render_entry_not_found_page and return unless @local_data[:entry]
270
+
271
+
272
+ # loading data for controls
273
+ @local_data[:controls_data] = self.load_data_for_entry_controls(@local_data[:page].forms[:changes], @local_data[:entry])
274
+
275
+ # fill parent for data
276
+ filters_for_parents = {}
277
+ self.fill_obligatory_db_query_params(filters_for_parents)
278
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
279
+ # building breadcrumbs
280
+
281
+ self.kb_dp_breadcrumbs_build(@local_data, false) #not index page
282
+
283
+ # rendering page
284
+ respond_to do |format|
285
+ # format.html { render_html1 "#{self.class.get_method_latest_result(:get_kb_template)}/#{self.class.get_method_latest_result(:get_kb_view_path, :edit)}", locals: {data: @local_data} }
286
+ format.html { render_html1 self.get_view_path(:edit), layout: self.get_view_path(:layout), locals: {data: @local_data} }
287
+ format.json { render_json_ok @local_data[:entry] }
288
+ end
289
+ end
290
+
291
+
292
+ def update
293
+
294
+
295
+ # fill parent for data
296
+ filters_for_parents = {}
297
+ self.fill_obligatory_db_query_params(filters_for_parents)
298
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
299
+ # filling db_query_params for search
300
+ db_query_params = {}
301
+ self.fill_obligatory_db_query_params(db_query_params)
302
+ db_query_params.merge!(@local_data[:parent_ids]) # merging search db_query_params with parent ids
303
+ # retrieving data from database
304
+ @local_data[:entry] = self.entry_class.get_entry_by_id(params[:id], db_query_params, {logger: string_logger})
305
+
306
+ #Rendering 'Entry Not Found' Page
307
+ self.kb_db_render_entry_not_found_page and return unless @local_data[:entry]
308
+
309
+ # getting string params from params
310
+ strong_params = {}.merge(self.class_strong_params(@local_data[:page].forms[:changes]))
311
+ self.fill_obligatory_db_query_params(strong_params)
312
+
313
+ self.process_transaction_injections(@local_data[:entry], :update, :before_transaction, strong_params)
314
+ transaction_is_ok = true
315
+ ActiveRecord::Base.transaction do
316
+ #raise "In Transaction Before Create"
317
+ unless self.process_transaction_injections(@local_data[:entry], :update, :before_save, strong_params)
318
+ transaction_is_ok = false
319
+ raise ActiveRecord::Rollback
320
+ end
321
+
322
+ if @local_data[:entry].update(strong_params)
323
+ unless process_transaction_injections(@local_data[:entry], :update, :after_save, strong_params)
324
+ transaction_is_ok = false
325
+ raise ActiveRecord::Rollback
326
+ end
327
+ else
328
+ transaction_is_ok = false
329
+ raise ActiveRecord::Rollback
330
+ end
331
+ end
332
+ self.process_transaction_injections(@local_data[:entry], :update, :after_transaction, strong_params)
333
+
334
+
335
+ respond_to do |format|
336
+ flash[:success] = I18n.t("#{self.to_i18n}.messages.manufacturer_updated", entry_name: @local_data[:entry].to_s)
337
+ if transaction_is_ok
338
+ format.html { render_redirect url_for(action: :show, id: @local_data[:entry]) }
339
+ format.json { head :no_content }
340
+ else
341
+ # loading data for select-like controls
342
+ @local_data[:controls_data] = self.load_data_for_entry_controls(@local_data[:page].forms[:changes], @local_data[:entry])
343
+ @local_data[:entry].errors[:form] << I18n.t("#{self.to_i18n}.messages.update_error")
344
+
345
+
346
+ # building breadcrumbs
347
+ self.kb_dp_breadcrumbs_build(@local_data, false) #not index page
348
+
349
+
350
+ #format.html { render_html1 "#{self.class.get_method_latest_result(:get_kb_template)}/#{self.class.get_method_latest_result(:get_kb_view_path, :edit)}", locals: {data: @local_data} }
351
+ format.html { render_html1 self.get_view_path(:edit), layout: self.get_view_path(:layout), locals: {data: @local_data} }
352
+ format.json { render json: @local_data[:entry].errors, status: :unprocessable_entity }
353
+ end
354
+ end
355
+ end
356
+
357
+
358
+ def destroy
359
+
360
+
361
+ # fill parent for data
362
+ filters_for_parents = {}
363
+ self.fill_obligatory_db_query_params(filters_for_parents)
364
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
365
+ # filling db_query_params for search
366
+ db_query_params = {}
367
+ self.fill_obligatory_db_query_params(db_query_params)
368
+ db_query_params.merge!(@local_data[:parent_ids])
369
+ # retrieving entry from database
370
+ @local_data[:entry] = self.entry_class.get_entry_by_id(params[:id], db_query_params, {logger: string_logger})
371
+
372
+ #Rendering 'Entry Not Found' Page
373
+ self.kb_db_render_entry_not_found_page and return unless @local_data[:entry]
374
+
375
+
376
+ # destroying entry
377
+ if @local_data[:entry].destroy
378
+ # entry destroyed
379
+ respond_to do |format|
380
+ format.html { render_redirect(self.to_url_for(:index, @local_data[:parent_ids])) }
381
+ format.json { render_json_ok(@local_data[:entry], message: "Record Deleted") }
382
+ end
383
+ else
384
+ # failed to destroy entry
385
+ @local_data[:errors] << I18n.t("#{self.to_i18n}.messages.delete_error")
386
+ respond_to do |format|
387
+ format.html { render_html1 self.get_view_path(:delete), layout: self.get_view_path(:layout), locals: {data: @local_data} }
388
+ format.json { render_json_error(message: @local_data[:errors]) }
389
+ end
390
+ end
391
+ end
392
+
393
+
394
+ def export
395
+
396
+ # fill parent for data
397
+ filters_for_parents = {}
398
+ self.fill_obligatory_db_query_params(filters_for_parents)
399
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
400
+ # filling db_query_params for search
401
+ db_query_params = {}
402
+ self.fill_obligatory_db_query_params(db_query_params)
403
+ db_query_params.merge!(@local_data[:parent_ids])
404
+ # retrieving entries from database
405
+ @local_data[:entries] = self.entry_class.get_entries(nil, db_query_params, @options)
406
+
407
+ export_type = params[:type]
408
+
409
+ unless export_type
410
+
411
+ end
412
+
413
+ export_options = {}
414
+
415
+ self.entry_class.export_types_set.each do |exp|
416
+ if exp[:name] == export_type
417
+ #export_options[:include] =
418
+ #render text: @entries_list.to_json
419
+ end
420
+ end
421
+
422
+ if params[:type]
423
+ case params[:type]
424
+ when "json"
425
+
426
+ when "xml"
427
+ render text: @local_data[:entries_list].to_xml
428
+ end
429
+ else
430
+ respond_to do |format|
431
+ format.json { render json: @local_data[:entries] }
432
+ format.json { render xml: @local_data[:entries] }
433
+ end
434
+ end
435
+ end
436
+
437
+ def import
438
+ import_type = params[:type]
439
+
440
+ end
441
+
442
+ def manage_items
443
+
444
+
445
+ # getting management settings
446
+ @local_data[:management_settings] = @local_data[:page].managements[:manage] if @local_data[:page].managements
447
+
448
+ self.kb_dp_render_page_404 and return unless @local_data[:management_settings]
449
+
450
+
451
+ #raise "MANAGEMENT: management settings error" unless @local_data[:management_settings]
452
+
453
+ local_container_class = @local_data[:management_settings].container_class
454
+ local_container_id_property = @local_data[:management_settings].container_id_property
455
+ local_item_class = @local_data[:management_settings].item_class
456
+ local_entry_id_property = @local_data[:management_settings].entry_id_property
457
+ local_entry_class = @local_data[:management_settings].entry_class
458
+
459
+
460
+ # fill parent for data
461
+ filters_for_parents = {}
462
+ self.fill_obligatory_db_query_params(filters_for_parents)
463
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
464
+
465
+
466
+ #loading container data
467
+ filters_4_container = {}
468
+ self.fill_obligatory_db_query_params(filters_4_container)
469
+ filters_4_container.merge!(@local_data[:parent_ids])
470
+ # retrieving container from database
471
+ @local_data[:container] = local_container_class.get_entry_by_id(params[local_container_id_property], filters_4_container, @options)
472
+ # filling db_query_params for items
473
+ filters_4_items = {}
474
+ self.fill_obligatory_db_query_params(filters_4_items)
475
+ filters_4_items.merge!(@local_data[:parent_ids])
476
+ filters_4_items[local_container_id_property] = params[local_container_id_property]
477
+ # retrieving items from database
478
+ @local_data[:items] = local_item_class.get_entries(nil, filters_4_items, @options)
479
+
480
+ #entries_order_by = get_managing_entries_order_by if self.respond_to?(:get_managing_entries_order_by)
481
+ #entries_order_by = "name asc" unless entries_order_by
482
+
483
+ # filling db_query_params for entries
484
+ filters_4_entries = {}
485
+ self.fill_obligatory_db_query_params(filters_4_entries)
486
+ filters_4_entries[local_entry_id_property] = params[local_entry_id_property]
487
+ # retrieving entries from database
488
+ local_entries_initial_query = local_entry_class.where { -(id.in local_item_class.get_entries(nil, filters_4_items, @options).select(local_entry_id_property)) }
489
+
490
+ #fill parent elements
491
+ filters_for_parents = {}
492
+ self.fill_obligatory_db_query_params(filters_for_parents)
493
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
494
+
495
+ local_entries = local_entry_class.get_entries(local_entries_initial_query, filters_4_entries, @options)
496
+ @local_data[:entries] = local_entries
497
+
498
+
499
+ # building breadcrumbs
500
+ self.kb_dp_breadcrumbs_build(@local_data, false) #not index page
501
+
502
+
503
+ respond_to do |format|
504
+ #format.html { render_html1 "#{self.class.get_method_latest_result(:get_kb_template)}/#{self.class.get_method_latest_result(:get_kb_view_path, :management)}", locals: {data: @local_data} }
505
+ format.html { render_html1 self.get_view_path(:management), layout: self.get_view_path(:layout), locals: {data: @local_data} }
506
+ format.json { render json: @local_data }
507
+ end
508
+ end
509
+
510
+ def manage_items_add
511
+
512
+
513
+ # getting management settings
514
+ @local_data[:management_settings] = @local_data[:page].managements[:manage] if @local_data[:page].managements
515
+
516
+ self.kb_dp_render_page_404 and return unless @local_data[:management_settings]
517
+
518
+
519
+ local_container_class = @local_data[:management_settings].container_class
520
+ local_container_id_property = @local_data[:management_settings].container_id_property
521
+ local_item_class = @local_data[:management_settings].item_class
522
+ local_entry_id_property = @local_data[:management_settings].entry_id_property
523
+ local_entry_class = @local_data[:management_settings].entry_class
524
+
525
+
526
+ # fill parent for data
527
+ filters_for_parents = {}
528
+ self.fill_obligatory_db_query_params(filters_for_parents)
529
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
530
+
531
+
532
+ #loading container from database
533
+ filters_4_container = {}
534
+ self.fill_obligatory_db_query_params(filters_4_container)
535
+ @local_data[:container] = local_container_class.get_entry_by_id(params[local_container_id_property], filters_4_container, @options)
536
+ #checking if container not found
537
+ unless @local_data[:container]
538
+ render json: {status: ::ChupakabraTools::ApiStatus.id_by_tag('set_not_found'), message: I18n.t("#{self.to_i18n}.management.messages.set_not_found", id: params[local_container_id_property])}
539
+ return
540
+ end
541
+
542
+
543
+ #loading entry from database
544
+ filters_4_entries = {}
545
+ self.fill_obligatory_db_query_params(filters_4_entries)
546
+ #@local_data[:entry] = local_entry_class.get_entry_by_id(params[local_entry_id_property], filters_4_entries, @options )
547
+ @local_data[:entry] = local_entry_class.get_entry_by_id(params[:entry_id], filters_4_entries, @options)
548
+
549
+ #Rendering 'Entry Not Found' Page
550
+ self.kb_db_render_entry_not_found_page and return unless @local_data[:entry]
551
+
552
+ #raise "MANAGEMENT: entry is ok"
553
+
554
+ # loading item from database
555
+ filters_4_item = {}
556
+ self.fill_obligatory_db_query_params(filters_4_item)
557
+ filters_4_item[local_container_id_property] = params[local_container_id_property]
558
+ #filters_4_item[local_entry_id_property] = params[local_entry_id_property]
559
+ filters_4_item[local_entry_id_property] = params[:entry_id]
560
+
561
+ #logger.info("MANAGEMENT ADD: Retrieve Item from database db_query_params - #{filters_4_item.to_json}")
562
+
563
+ @local_data[:item] = local_item_class.get_entries(nil, filters_4_item, @options).first
564
+
565
+ unless @local_data[:item]
566
+ @local_data[:item] = local_item_class.new
567
+ @local_data[:item][local_container_id_property] = @local_data[:container].id
568
+ @local_data[:item][local_entry_id_property] = @local_data[:entry].id
569
+
570
+ if @local_data[:item].respond_to?(:sort_position)
571
+ filters_4_items_max = {}
572
+ self.fill_obligatory_db_query_params(filters_4_items_max)
573
+ filters_4_items_max[local_container_id_property] = params[local_container_id_property]
574
+
575
+ max_sort_position = local_item_class.get_entries(nil, filters_4_items_max, @options).maximum(:sort_position)
576
+ @local_data[:item].sort_position = max_sort_position ? max_sort_position + 1 : 1
577
+ end
578
+
579
+ # saving entry using transactions
580
+ self.process_transaction_injections(@local_data[:item], :create, :before_transaction, nil)
581
+ transaction_is_ok = true
582
+ ActiveRecord::Base.transaction do
583
+ #raise "In Transaction Before Create"
584
+ unless self.process_transaction_injections(@local_data[:item], :create, :before_save, nil)
585
+ transaction_is_ok = false
586
+ raise ActiveRecord::Rollback
587
+ end
588
+
589
+ if @local_data[:item].save
590
+ unless self.process_transaction_injections(@local_data[:item], :create, :after_save, nil)
591
+ transaction_is_ok = false
592
+ raise ActiveRecord::Rollback
593
+ end
594
+ else
595
+ transaction_is_ok = false
596
+ raise ActiveRecord::Rollback
597
+ end
598
+ end
599
+ self.process_transaction_injections(@local_data[:item], :create, :after_transaction, nil)
600
+
601
+ # rendering page
602
+ if transaction_is_ok
603
+ render json: {status: ::ChupakabraTools::ApiStatus.id_by_tag('ok'), message: I18n.t("#{self.to_i18n}.management.messages.add_management_ok")}
604
+ else
605
+ render json: {status: ::ChupakabraTools::ApiStatus.id_by_tag('error'), message: I18n.t("#{self.to_i18n}.management.messages.add_management_error")}
606
+ end
607
+ else
608
+ render json: {status: ::ChupakabraTools::ApiStatus.id_by_tag('entry_already_in_set'), message: I18n.t("#{self.to_i18n}.management.messages.entry_already_in_set")}
609
+ end
610
+ end
611
+
612
+ def manage_items_remove
613
+
614
+
615
+ # getting management settings
616
+ @local_data[:management_settings] = @local_data[:page].managements[:manage] if @local_data[:page].managements
617
+
618
+ self.kb_dp_render_page_404 and return unless @local_data[:management_settings]
619
+
620
+
621
+ local_container_class = @local_data[:management_settings].container_class
622
+ local_container_id_property = @local_data[:management_settings].container_id_property
623
+ local_item_class = @local_data[:management_settings].item_class
624
+ local_entry_id_property = @local_data[:management_settings].entry_id_property
625
+ local_entry_class = @local_data[:management_settings].entry_class
626
+
627
+
628
+ # fill parent for data
629
+ filters_for_parents = {}
630
+ self.fill_obligatory_db_query_params(filters_for_parents)
631
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
632
+
633
+ #loading container from database
634
+ filters_4_container = {}
635
+ self.fill_obligatory_db_query_params(filters_4_container)
636
+ @local_data[:container] = local_container_class.get_entry_by_id(params[local_container_id_property], filters_4_container, @options)
637
+ #checking if container not found
638
+ unless @local_data[:container]
639
+ render json: {status: ::ChupakabraTools::ApiStatus.id_by_tag('set_not_found'), message: I18n.t("#{self.to_i18n}.management.messages.set_not_found", id: params[local_container_id_property])}
640
+ return
641
+ end
642
+
643
+
644
+ # loading item from database
645
+ filters_4_item = {}
646
+ self.fill_obligatory_db_query_params(filters_4_item)
647
+ filters_4_item[local_container_id_property] = params[local_container_id_property]
648
+ filters_4_item[local_entry_id_property] = params[:entry_id]
649
+
650
+ @local_data[:item] = local_item_class.get_entries(nil, filters_4_item, @options).first
651
+
652
+
653
+ unless @local_data[:item]
654
+ render json: {status: ::ChupakabraTools::ApiStatus.id_by_tag('item_not_found'), message: I18n.t("#{self.to_i18n}.management.messages.item_not_found", entry_id: params[:entry_id])}
655
+ return
656
+ end
657
+
658
+ if @local_data[:item].destroy
659
+ render json: {status: ::ChupakabraTools::ApiStatus.id_by_tag('ok'), message: I18n.t("#{self.to_i18n}.management.messages.remove_management_ok")}
660
+ else
661
+ render json: {status: ::ChupakabraTools::ApiStatus.id_by_tag('error'), message: I18n.t("#{self.to_i18n}.management.messages.remove_management_error")}
662
+ end
663
+ end
664
+
665
+
666
+ def sort_items
667
+
668
+ # getting sorting settings
669
+ @local_data[:sorting_settings] = @local_data[:page].sortings[:sort] if @local_data[:page].sortings
670
+
671
+ self.kb_dp_render_page_404 and return unless @local_data[:sorting_settings]
672
+
673
+
674
+ #raise "SORTING: sorting settings error" unless @local_data[:sorting_settings]
675
+
676
+ local_container_class = @local_data[:sorting_settings].container_class
677
+ local_container_id_property = @local_data[:sorting_settings].container_id_property
678
+ local_item_class = @local_data[:sorting_settings].item_class
679
+ local_entry_id_property = @local_data[:sorting_settings].entry_id_property
680
+ local_entry_class = @local_data[:sorting_settings].entry_class
681
+
682
+
683
+ # fill parent for data
684
+ filters_for_parents = {}
685
+ self.fill_obligatory_db_query_params(filters_for_parents)
686
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
687
+
688
+
689
+ #loading container data
690
+ filters_4_container = {}
691
+ self.fill_obligatory_db_query_params(filters_4_container)
692
+ filters_4_container.merge!(@local_data[:parent_ids])
693
+ # retrieving container from database
694
+ @local_data[:container] = local_container_class.get_entry_by_id(params[local_container_id_property], filters_4_container, @options)
695
+ # filling db_query_params for items
696
+ filters_4_items = {}
697
+ self.fill_obligatory_db_query_params(filters_4_items)
698
+ filters_4_items.merge!(@local_data[:parent_ids])
699
+ filters_4_items[local_container_id_property] = params[local_container_id_property]
700
+ filters_4_items[:order] = ::Core::Store::CollectionProduct.for_sql_order_by(:sort_position, :asc)
701
+ # retrieving items from database
702
+ @local_data[:items] = local_item_class.get_entries(nil, filters_4_items, @options)
703
+
704
+
705
+ # building breadcrumbs
706
+ self.kb_dp_breadcrumbs_build(@local_data, false) #not index page
707
+
708
+ respond_to do |format|
709
+ format.html { render_html1 "#{self.class.get_method_latest_result(:get_kb_template)}/#{self.class.get_method_latest_result(:get_kb_view_path, :sorting)}", locals: {data: @local_data} }
710
+ format.json { render_json_ok @local_data }
711
+ end
712
+
713
+ end
714
+
715
+ def sort_items_process
716
+
717
+
718
+ # getting sorting settings
719
+ @local_data[:sorting_settings] = @local_data[:page].sortings[:sort] if @local_data[:page].sortings
720
+
721
+ self.kb_dp_render_page_404 and return unless @local_data[:sorting_settings]
722
+
723
+ #raise "SORTING: sorting settings error" unless @local_data[:sorting_settings]
724
+
725
+ local_container_class = @local_data[:sorting_settings].container_class
726
+ local_container_id_property = @local_data[:sorting_settings].container_id_property
727
+ local_item_class = @local_data[:sorting_settings].item_class
728
+ local_entry_id_property = @local_data[:sorting_settings].entry_id_property
729
+ local_entry_class = @local_data[:sorting_settings].entry_class
730
+
731
+
732
+ # fill parent for data
733
+ filters_for_parents = {}
734
+ self.fill_obligatory_db_query_params(filters_for_parents)
735
+ self.fill_parents_for_local_data(@local_data, filters_for_parents)
736
+
737
+ #loading container from database
738
+ filters_4_container = {}
739
+ self.fill_obligatory_db_query_params(filters_4_container)
740
+ @local_data[:container] = local_container_class.get_entry_by_id(params[local_container_id_property], filters_4_container, @options)
741
+ #checking if container not found
742
+ unless @local_data[:container]
743
+ render json: {status: ::ChupakabraTools::ApiStatus.id_by_tag('set_not_found'), message: I18n.t("#{self.to_i18n}.sorting.messages.set_not_found", id: params[local_container_id_property])}
744
+ return
745
+ end
746
+
747
+
748
+ # loading items from database one by one and processing them
749
+ # filters_4_item = {}
750
+ # self.fill_obligatory_db_query_params(filters_4_item)
751
+ # filters_4_item[local_container_id_property] = params[local_container_id_property]
752
+
753
+
754
+ filters_4_item = {}
755
+ self.fill_obligatory_db_query_params(filters_4_item)
756
+ filters_4_item[local_container_id_property] = params[local_container_id_property]
757
+ #filters_4_item[local_entry_id_property] = id
758
+
759
+
760
+ result_is_ok = false
761
+ if params[:items]
762
+ begin
763
+ ActiveRecord::Base.transaction do
764
+ params[:items].each_with_index do |id, index|
765
+ logger.info("ITEMID: #{id}")
766
+
767
+ logger.info "ITEM FILTERS: #{filters_4_item.to_json}"
768
+ item = local_item_class.get_entry_by_id(id, filters_4_item, @options)
769
+ if item
770
+ item.sort_position = index + 1
771
+ item.save
772
+ end
773
+ end
774
+ result_is_ok = true
775
+ end
776
+ end
777
+ end
778
+ if result_is_ok == true
779
+ render json: {status: ::ChupakabraTools::ApiStatus.id_by_tag('ok'), message: I18n.t("#{self.to_i18n}.sorting.messages.sorting_ok")}
780
+ else
781
+ render json: {status: ::ChupakabraTools::ApiStatus.id_by_tag('error'), message: I18n.t("#{self.to_i18n}.sorting.messages.sorting_error")}
782
+ end
783
+ end
784
+
785
+
786
+ # def http_download
787
+ #
788
+ # end
789
+ #
790
+ # def http_download_process
791
+ #
792
+ # def http_upload
793
+ #
794
+ # end
795
+ #
796
+ # def http_upload_process
797
+ #
798
+ # end
799
+
800
+
801
+ def edit_inplace
802
+
803
+
804
+ @local_data[:entry] = self.entry_class.get_entry_by_id(params[:id], nil, {logger: string_logger})
805
+ if @local_data[:entry]
806
+ result_string = ''
807
+ begin
808
+ unless @local_data[:entry][params[:field_name]] == params[:value]
809
+ @local_data[:entry][params[:field_name]] = params[:value]
810
+ @local_data[:entry].updated_at = Time.now
811
+ @local_data[:entry].updater = self.current_user
812
+ unless @local_data[:entry].save
813
+ result_string = '<span style = "color: red;"><b>FAILED TO SAVE!!!</b></span>'
814
+ end
815
+ end
816
+ rescue
817
+ result_string = '<span style = "color: red;"><b>ERROR OCCURRED!!!</b></span>'
818
+ end
819
+ if result_string.blank?
820
+ begin
821
+ result_string = @local_data[:entry].send(params[:field_name])
822
+ rescue
823
+ result_string = '<span style = "color: red;"><b>ERROR OCCURRED!!!</b></span>'
824
+ end
825
+ end
826
+
827
+ render text: result_string
828
+ else
829
+ render text: '<span style = "color: red;"><b>NOT FOUND!!!</b></span>'
830
+ end
831
+ end
832
+
833
+
834
+ #protected
835
+
836
+
837
+ def kb_dp_render_page_404
838
+ respond_to do |format|
839
+ #format.html { render_html1 "#{self.class.get_method_latest_result(:get_kb_template)}/#{self.class.get_method_latest_result(:get_kb_view_path, :page_404)}" }
840
+ format.html { render_html1 self.get_view_path(:page_404), layout: self.get_view_path(:layout), locals: {data: @local_data} }
841
+ format.json { render_json_page_404 }
842
+ end
843
+ end
844
+
845
+ def kb_db_render_entry_not_found_page
846
+ @local_data[:errors] << I18n.t("#{self.to_i18n}.messages.entry_not_found", entry_id: params[:id])
847
+ respond_to do |format|
848
+ #format.html { render_html1 "#{self.class.get_method_latest_result(:get_kb_template)}/#{self.class.get_method_latest_result(:get_kb_view_path, :entry_not_found)}", locals: {data: @local_data} }
849
+ format.html { render_html1 self.get_view_path(:entry_not_found), layout: self.get_view_path(:layout), locals: {data: @local_data} }
850
+ format.json { render_json_not_found message: @local_data[:errors] }
851
+ end
852
+ end
853
+
854
+
855
+ def kb_dp_breadcrumbs_build(local_data, is_index_page)
856
+ # getting home controller
857
+ local_home_path = self.class.get_method_latest_result(:get_kb_home_path)
858
+
859
+ if local_home_path
860
+ local_home_controller = eval(local_home_path[:controller])
861
+ local_home_url = local_home_controller.to_url_for(local_home_path[:action], local_home_path[:params])
862
+
863
+ if is_index_page
864
+ if self.class == local_home_path[:controller]
865
+ self.add_new_breadcrumb(I18n.t("#{local_home_controller.to_i18n}.#{local_home_path[:action]}.title"))
866
+ else
867
+ self.add_new_breadcrumb(I18n.t("#{local_home_controller.to_i18n}.#{local_home_path[:action]}.title"), local_home_url)
868
+ end
869
+ else
870
+ self.add_new_breadcrumb(I18n.t("#{local_home_controller.to_i18n}.#{local_home_path[:action]}.title"), local_home_url)
871
+ end
872
+ end
873
+ # building breadcrumbs for parents
874
+ parent_ids = {}
875
+ @local_data[:parents].reverse.each do |parent|
876
+ # breadcrumbs: adding parent index
877
+ add_new_breadcrumb(I18n.t("#{parent[:controller].to_i18n}.index.title"), parent[:controller].to_url_for(:index, parent_ids))
878
+ # breadcrumbs: getting parent entry name
879
+ parent_entry_name = nil
880
+ parent_entry_name = parent[:entry].name_for_breadcrumbs if parent[:entry].respond_to?(:name_for_breadcrumbs)
881
+ parent_entry_name = parent[:entry].id unless parent_entry_name
882
+ # breadcrumbs: adding parent entry
883
+ self.add_new_breadcrumb(parent_entry_name, parent[:controller].to_url_for(:show, parent_ids.merge(id: parent[:entry].id)))
884
+ parent_ids[parent[:id_param]] = parent[:id_value]
885
+ end if @local_data[:parents]
886
+
887
+ # breadcrumbs: adding current index
888
+ self.add_new_breadcrumb(I18n.t("#{self.to_i18n}.index.title"), self.to_url_for(:index, @local_data[:parent_ids]))
889
+
890
+ unless is_index_page
891
+ # breadcrumbs: getting entry name
892
+ entry_name = nil
893
+ entry_name = @local_data[:entry].name_for_breadcrumbs if @local_data[:entry].respond_to?(:name_for_breadcrumbs)
894
+ #entry_name.trim(20) if entry_name && entry_name.length > 20
895
+ # breadcrumbs: adding current entry
896
+ page_name = @local_data[:page].name
897
+ if page_name == :edit
898
+ self.add_new_breadcrumb(@local_data[:entry].id)
899
+ elsif page_name == :show || page_name == :delete
900
+ self.add_new_breadcrumb(entry_name || @local_data[:entry].id)
901
+ elsif page_name == :new
902
+ self.add_new_breadcrumb(I18n.t("#{self.to_i18n}.new.title"))
903
+ elsif page_name == :management
904
+ self.add_new_breadcrumb(I18n.t("#{self.to_i18n}.management.title"))
905
+ elsif page_name == :sorting
906
+ self.add_new_breadcrumb(I18n.t("#{self.to_i18n}.sorting.title"))
907
+ end
908
+ end
909
+ end
910
+
911
+
912
+ def kb_dp_init_controller_action
913
+
914
+ # check if controller implement methods 'entry_class'
915
+ #raise "\"kb_entry_class\" value not defined for controller #{self.class}" if self.entry_class.nil?
916
+ #raise "Current User NULL" if self.controller.current_user.nil?
917
+
918
+
919
+ #check if controller implement method 'get_kb_page'
920
+ raise "Method :get_kb_page must be implemented for controller '#{self.class}'" unless self.class.respond_to?(:get_kb_page)
921
+
922
+ # getting page mame symbol for action
923
+ page_name = case self.action_name
924
+ when 'index' then
925
+ :index
926
+ when 'dashboard' then
927
+ :dashboard
928
+ when 'new', 'create' then
929
+ :new
930
+ when 'edit', 'update', 'edit_inplace' then
931
+ :edit
932
+ when 'delete', 'destroy' then
933
+ :delete
934
+ when 'sort_items', 'sort_items_process' then
935
+ :sorting
936
+ when 'manage_items', 'manage_items_add', 'manage_items_remove' then
937
+ :management
938
+ when 'show' then
939
+ :show
940
+ else
941
+ nil
942
+ end
943
+
944
+
945
+ #initialize '@local_data' variable
946
+ @local_data = {
947
+ errors: [],
948
+ messages: [],
949
+ page: nil,
950
+ menus: {}
951
+ }
952
+ # getting kb_page
953
+ @local_data[:page] = self.class.get_kb_page(page_name) if page_name
954
+ # Rendering 'Page not Found' and completing Request if no page found
955
+ self.kb_dp_render_page_404 unless @local_data[:page] if page_name
956
+
957
+
958
+ @local_data[:allow_create] = self.class.get_kb_page(:new) != nil
959
+ @local_data[:allow_update] = self.class.get_kb_page(:edit) != nil
960
+ @local_data[:allow_delete] = self.class.get_kb_page(:delete) != nil
961
+
962
+ @options = {
963
+ logger: self.string_logger
964
+ }
965
+ @local_data[:menus][:left_menu] = self.class.get_method_latest_result(:get_kb_menu, :left_menu)
966
+
967
+ end
968
+
969
+
970
+ #########################################################################################################################
971
+ ############################### Obligatory Filters Methods ########################################
972
+ #########################################################################################################################
973
+
974
+
975
+ def fill_obligatory_db_query_params(db_query_params, options = {})
976
+ options ||= {}
977
+
978
+ classes_to_process = self.get_class_hierarchy
979
+
980
+ classes_to_process.each do |kontroller_klass|
981
+ kontroller_klass.get_kb_obligatory_filters.each do |filter|
982
+ execute_flag = true
983
+
984
+ if filter.only && filter.only.length > 0
985
+ execute_flag = false
986
+ filter.only.each do |item|
987
+ if item == self.action.to_sym
988
+ execute_flag = true
989
+ end
990
+ end
991
+ end
992
+ if filter.skip && filter.skip.length > 0
993
+ filter.skip.each do |item|
994
+ if item == self.action.to_sym
995
+ execute_flag = false
996
+ end
997
+ end
998
+ end
999
+ db_query_params[filter.name] = self.send(filter.source_method) if execute_flag
1000
+ end if kontroller_klass.respond_to?(:get_kb_obligatory_filters)
1001
+ end
1002
+ #raise "Obligatory Filters: #{db_query_params.to_json}"
1003
+ end
1004
+
1005
+ #########################################################################################################################
1006
+ ################################# Data For Form Controls ########################################
1007
+ #########################################################################################################################
1008
+
1009
+ def load_data_for_entry_controls(form, entry, options = {})
1010
+ controls_data = {}
1011
+
1012
+
1013
+ form.properties.values.select { |p| !p.data_source.nil? }.each do |property|
1014
+ if property.data_source
1015
+ controls_data[property.name] = if property.data_source.type == :db || property.data_source.type == :jquery_db
1016
+ db_query_params = {}
1017
+ parent_value = nil
1018
+ if property.parent
1019
+ parent_value = entry[property.parent]
1020
+ db_query_params[property.parent] = parent_value
1021
+ end
1022
+
1023
+ self.fill_obligatory_db_query_params(db_query_params, options)
1024
+ db_query_params.merge!({
1025
+ per_page: 9999999,
1026
+ page: 1
1027
+ })
1028
+ property.data_source.model.get_entries(nil, db_query_params, options).map { |u| [u.send(property.data_source.label_property), u.send(property.data_source.value_property)] } if property.parent.nil? || parent_value
1029
+ elsif property.data_source.type == :i18n
1030
+
1031
+ elsif property.data_source.type == :enum
1032
+ property.data_source.model.to_select
1033
+ elsif property.data_source.type == :array
1034
+ property.data_source.model.map { |i| i.is_a?(Array) ? [i[0], i[0]] : [i, i] }
1035
+ end
1036
+ end
1037
+ end if form && form.properties
1038
+ controls_data
1039
+ end
1040
+
1041
+ def load_data_for_filters_controls(list, values_source, options = {})
1042
+ controls_data = {}
1043
+
1044
+
1045
+ list.filters.select { |f| !f.data_source.nil? }.each do |filter|
1046
+
1047
+ controls_data[filter.name] = if filter.data_source.type == :db || filter.data_source.type == :jquery_db
1048
+ db_query_params = {}
1049
+ if filter.parent
1050
+ parent_value = values_source[filter.parent]
1051
+ db_query_params[filter.parent] = values_source[filter.parent] if parent_value
1052
+ end
1053
+ fill_obligatory_db_query_params(db_query_params, options)
1054
+ db_query_params.merge!({
1055
+ per_page: 9999999,
1056
+ page: 1
1057
+ })
1058
+ filter.data_source.model.get_entries(nil, db_query_params, options).map { |u| [u.send(filter.data_source.label_property), u.send(filter.data_source.value_property)] }
1059
+ elsif filter.data_source.type == :i18n
1060
+
1061
+ elsif filter.data_source.type == :enum
1062
+ filter.data_source.model.to_select
1063
+ elsif filter.data_source.type == :array
1064
+ filter.data_source.model
1065
+ end
1066
+
1067
+ end if list && list.filters
1068
+ controls_data
1069
+ end
1070
+
1071
+
1072
+ #def fill_parents_for_local_data(local_data, db_query_params)
1073
+ # if local_data && local_data.is_a?(Hash)
1074
+ # controllers_hierarchy = ::ChupakabraTools::ClassHelper.get_controller_hierarchy(self.class)
1075
+ #
1076
+ # local_data[:parent_elements] = {}
1077
+ #
1078
+ # controllers_hierarchy.each do |ctrler|
1079
+ # if ctrler.respond_to?(:get_kb_parents)
1080
+ # parent_controllers = ctrler.get_kb_parents
1081
+ # parent_controllers.each do |pk|
1082
+ # local_data[:parent_elements][pk[:id]] = pk[:controller].get_kb_entry_class.get_entry_by_id(params[pk[:id]], db_query_params, {logger: string_logger})
1083
+ # end if parent_controllers
1084
+ # else
1085
+ # break
1086
+ # end
1087
+ # end
1088
+ #
1089
+ # #raise "Parent Elements: #{local_data[:parent_elements]}"
1090
+ #
1091
+ # local_data[:parent_ids] = {}
1092
+ #
1093
+ #
1094
+ # local_data[:parent_elements].each_pair do |key, element|
1095
+ # local_data[:parent_ids][key] = element.id
1096
+ # end
1097
+ # end
1098
+ #end
1099
+
1100
+
1101
+ # old version of fill_parents_for_local_data
1102
+ # def fill_parents_for_local_data(local_data, db_query_params, options = {})
1103
+ # options ||= {}
1104
+ # local_data[:parents] = []
1105
+ # local_data[:parent_elements] = {}
1106
+ # local_data[:parent_ids] = {}
1107
+ #
1108
+ # if local_data && local_data.is_a?(Hash)
1109
+ # controllers_hierarchy = ::ChupakabraTools::ClassHelper.get_controller_hierarchy(self.class)
1110
+ #
1111
+ # #raise "FILL PARENT ELEMENTS - CONTROLLERS #{controllers_hierarchy.map{ |c| c.to_s}.to_json}"
1112
+ # controllers_hierarchy.each do |ctrler|
1113
+ # if ctrler.respond_to?(:get_kb_parents)
1114
+ # parent_controllers = ctrler.get_kb_parents
1115
+ # parent_controllers.each do |pk|
1116
+ # parent_entry = pk[:controller].get_kb_entry_class.get_entry_by_id(params[pk[:id]], db_query_params, options)
1117
+ # parent_hash = {
1118
+ # controller: pk[:controller],
1119
+ # entry: parent_entry,
1120
+ # id_param: pk[:id],
1121
+ # id_value: parent_entry.id
1122
+ # }
1123
+ # local_data[:parents] << parent_hash
1124
+ # end if parent_controllers
1125
+ #
1126
+ # parent_controllers.each do |pk|
1127
+ # local_data[:parent_elements][pk[:id]] = pk[:controller].get_kb_entry_class.get_entry_by_id(params[pk[:id]], db_query_params, options)
1128
+ # end if parent_controllers
1129
+ #
1130
+ # end
1131
+ # end
1132
+ # #raise "Parent Elements: #{local_data[:parent_elements]}"
1133
+ # local_data[:parent_elements].each_pair do |key, element|
1134
+ # local_data[:parent_ids][key] = element.id
1135
+ # end
1136
+ # end
1137
+ # end
1138
+
1139
+
1140
+ def fill_parents_for_local_data(local_data, db_query_params, options = {})
1141
+ options ||= {}
1142
+
1143
+ if local_data && local_data.is_a?(Hash)
1144
+
1145
+ local_data[:parents] = []
1146
+ local_data[:parent_elements] = {}
1147
+ local_data[:parent_ids] = {}
1148
+
1149
+ #controllers_hierarchy = ::ChupakabraTools::ClassHelper.get_controller_hierarchy(self.class)
1150
+
1151
+ #raise "FILL PARENT ELEMENTS - CONTROLLERS #{controllers_hierarchy.map{ |c| c.to_s}.to_json}"
1152
+
1153
+ ktrlr = self.class # setting start value for 'ktrlr' as 'self'
1154
+ while true do
1155
+ parent_ktrlr_data = ktrlr.get_kb_parent_controller_data # getting parent controller data set with kb_parent_controller
1156
+ break unless parent_ktrlr_data # unless we have parent controller data we break the WHILE loop
1157
+
1158
+ parent_entry = parent_ktrlr_data[:controller].get_kb_entry_class.get_entry_by_id(params[parent_ktrlr_data[:id]], db_query_params, options) # getting entry for parent controller
1159
+ parent_hash = {
1160
+ controller: parent_ktrlr_data[:controller],
1161
+ entry: parent_entry,
1162
+ id_param: parent_ktrlr_data[:id],
1163
+ id_value: parent_entry.id
1164
+ }
1165
+ local_data[:parents] << parent_hash
1166
+ local_data[:parent_elements][parent_ktrlr_data[:id]] = parent_entry
1167
+ local_data[:parent_ids][parent_ktrlr_data[:id]] = parent_entry.id
1168
+
1169
+ ktrlr = parent_ktrlr_data[:controller] # assiging value for 'ktrlr' as controller from parent controller data
1170
+
1171
+ end
1172
+
1173
+ #raise "FILL PARENT ELEMENTS - Parent Elements: #{local_data[:parent_elements].to_json}"
1174
+ #raise "FILL PARENT ELEMENTS - Parent IDs: #{local_data[:parent_ids].to_json}"
1175
+ end
1176
+ end
1177
+
1178
+ #########################################################################################################################
1179
+ ############################### Strong Parameters Filters Methods ########################################
1180
+ #########################################################################################################################
1181
+
1182
+ def class_strong_filters(list, options = {})
1183
+ strong_filters = {}
1184
+ list.filters.each do |filter|
1185
+ #raise "Found Filter for list: #{filter}"
1186
+ strong_filters[filter.name] = params[filter.name] if params[filter.name]
1187
+ end if list && list.filters
1188
+ strong_filters
1189
+ end
1190
+
1191
+
1192
+ #########################################################################################################################
1193
+ ############################### Transaction Injection Methods ########################################
1194
+ #########################################################################################################################
1195
+ def before_entry_create(entry, filter_params, options)
1196
+
1197
+ end
1198
+
1199
+ def before_entry_update(entry, filter_params, options)
1200
+
1201
+ end
1202
+
1203
+ #########################################################################################################################
1204
+ ################################# Database Requests Methods ##########################################
1205
+ #########################################################################################################################
1206
+
1207
+
1208
+ end
1209
+ end