rademade_admin 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (223) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  3. data/app/assets/fonts/glyphicons-halflings-regular.svg +229 -0
  4. data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  5. data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  6. data/app/assets/images/rademade_admin/ico/btn-attach.png +0 -0
  7. data/app/assets/images/rademade_admin/logos/logo.png +0 -0
  8. data/app/assets/javascripts/rademade_admin.coffee +8 -4
  9. data/app/assets/javascripts/rademade_admin/app/app.coffee +2 -1
  10. data/app/assets/javascripts/rademade_admin/app/common/datetime-picker.coffee +7 -0
  11. data/app/assets/javascripts/rademade_admin/app/common/dnd-sort.coffee +23 -32
  12. data/app/assets/javascripts/rademade_admin/app/common/droplist.coffee +8 -0
  13. data/app/assets/javascripts/rademade_admin/app/common/lang-panel.coffee +6 -0
  14. data/app/assets/javascripts/rademade_admin/app/common/related-index.coffee +6 -9
  15. data/app/assets/javascripts/rademade_admin/app/common/sort-list.coffee +10 -14
  16. data/app/assets/javascripts/rademade_admin/app/common/uploader.coffee +3 -3
  17. data/app/assets/javascripts/rademade_admin/app/form-popup/initializer.coffee +24 -37
  18. data/app/assets/javascripts/rademade_admin/app/form-popup/view.coffee +32 -18
  19. data/app/assets/javascripts/rademade_admin/app/forms/remove.coffee +4 -3
  20. data/app/assets/javascripts/rademade_admin/app/select2/model.coffee +7 -0
  21. data/app/assets/javascripts/rademade_admin/app/select2/related/collection-view.coffee +35 -0
  22. data/app/assets/javascripts/rademade_admin/app/select2/related/collection.coffee +28 -0
  23. data/app/assets/javascripts/rademade_admin/app/select2/related/model.coffee +15 -0
  24. data/app/assets/javascripts/rademade_admin/app/select2/related/view.coffee +40 -0
  25. data/app/assets/javascripts/rademade_admin/app/select2/view.coffee +78 -0
  26. data/app/assets/javascripts/rademade_admin/form/form-ajax.coffee +48 -0
  27. data/app/assets/javascripts/rademade_admin/form/form-initializater.coffee +45 -0
  28. data/app/assets/javascripts/rademade_admin/form/form-validation.coffee +42 -0
  29. data/app/assets/javascripts/rademade_admin/form/form.coffee +62 -0
  30. data/app/assets/javascripts/rademade_admin/library/ckeditor/config.js +14 -12
  31. data/app/assets/stylesheets/{rademade_admin/bootstrap → old/-bootstrap}/bootstrap-overrides.css.erb +0 -0
  32. data/app/assets/stylesheets/{rademade_admin/bootstrap → old/-bootstrap}/main.scss.erb +0 -0
  33. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/chart-showcase.scss.erb +0 -0
  34. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/datatables.scss.erb +0 -0
  35. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/elements.scss.erb +0 -0
  36. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/error.scss.erb +0 -0
  37. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/form-showcase.scss.erb +0 -0
  38. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/form-wizard.scss.erb +0 -0
  39. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/gallery.scss.erb +0 -0
  40. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/grids.scss.erb +0 -0
  41. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/icons.scss.erb +0 -0
  42. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/index.scss.erb +0 -0
  43. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/layout.scss.erb +0 -0
  44. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/new-user.scss.erb +0 -0
  45. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/personal-info.scss.erb +0 -0
  46. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/popup.scss.erb +0 -0
  47. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/signin.scss.erb +0 -0
  48. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/tables.scss.erb +0 -0
  49. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/ui-elements.scss.erb +0 -0
  50. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/user-list.scss.erb +0 -0
  51. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/user-profile.scss.erb +0 -0
  52. data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/web-app-icons.scss.erb +0 -0
  53. data/app/assets/stylesheets/{rademade_admin/lib → old/-lib}/bootstrap.datepicker.css.erb +0 -0
  54. data/app/assets/stylesheets/{rademade_admin/lib → old/-lib}/morris.css.erb +0 -0
  55. data/app/assets/stylesheets/{rademade_admin → old}/base.scss.erb +0 -0
  56. data/app/assets/stylesheets/{rademade_admin → old}/edit.css +0 -0
  57. data/app/assets/stylesheets/{rademade_admin → old}/file-upload.scss.erb +0 -0
  58. data/app/assets/stylesheets/{rademade_admin → old}/notifier.custom.css.erb +0 -0
  59. data/app/assets/stylesheets/{rademade_admin → old}/scaffolds.scss.erb +0 -0
  60. data/app/assets/stylesheets/rademade_admin.sass.erb +96 -0
  61. data/app/assets/stylesheets/rademade_admin/base/main.sass +71 -0
  62. data/app/assets/stylesheets/rademade_admin/blocks/buttons/main.sass +81 -0
  63. data/app/assets/stylesheets/rademade_admin/blocks/form/input.sass +29 -0
  64. data/app/assets/stylesheets/rademade_admin/blocks/form/label.sass +31 -0
  65. data/app/assets/stylesheets/rademade_admin/blocks/form/select.sass +26 -0
  66. data/app/assets/stylesheets/rademade_admin/blocks/form/select2.sass +67 -0
  67. data/app/assets/stylesheets/rademade_admin/blocks/form/table.sass +42 -0
  68. data/app/assets/stylesheets/rademade_admin/blocks/form/texarea.sass +20 -0
  69. data/app/assets/stylesheets/rademade_admin/blocks/header/_logo.sass +7 -0
  70. data/app/assets/stylesheets/rademade_admin/blocks/header/_menu.sass +80 -0
  71. data/app/assets/stylesheets/rademade_admin/blocks/header/_search.sass +37 -0
  72. data/app/assets/stylesheets/rademade_admin/blocks/page/content/_main.sass +11 -0
  73. data/app/assets/stylesheets/rademade_admin/blocks/page/headline/main.sass +44 -0
  74. data/app/assets/stylesheets/rademade_admin/blocks/page/menu/_main.sass +31 -0
  75. data/app/assets/stylesheets/rademade_admin/lib/datepicker.sass +373 -0
  76. data/app/assets/stylesheets/rademade_admin/lib/glyphicon.sass.erb +618 -0
  77. data/app/assets/stylesheets/rademade_admin/lib/notifier.css.erb +661 -0
  78. data/app/assets/stylesheets/rademade_admin/lib/uploader.sass +66 -0
  79. data/app/assets/stylesheets/rademade_admin/mixins/clear.sass +5 -0
  80. data/app/assets/stylesheets/rademade_admin/mixins/fonts.sass +8 -0
  81. data/app/assets/stylesheets/rademade_admin/mixins/sprite.sass +7 -0
  82. data/app/assets/stylesheets/rademade_admin/mixins/text-overflow.sass +6 -0
  83. data/app/assets/stylesheets/rademade_admin/mixins/user-select.sass +5 -0
  84. data/app/assets/stylesheets/rademade_admin/modules/breadcrumbs/main.sass +30 -0
  85. data/app/assets/stylesheets/rademade_admin/modules/errors/error.sass.erb +19 -0
  86. data/app/assets/stylesheets/rademade_admin/modules/form/main.sass +15 -0
  87. data/app/assets/stylesheets/rademade_admin/modules/header/main.sass +6 -0
  88. data/app/assets/stylesheets/rademade_admin/modules/login/_main.sass +79 -0
  89. data/app/assets/stylesheets/rademade_admin/modules/main-menu/main.sass +0 -0
  90. data/app/assets/stylesheets/rademade_admin/modules/page/main.sass +16 -0
  91. data/app/assets/stylesheets/rademade_admin/modules/pagination/main.sass +51 -0
  92. data/app/assets/stylesheets/rademade_admin/modules/popup/new.sass +18 -0
  93. data/app/assets/stylesheets/rademade_admin/var/colors.sass +0 -0
  94. data/app/assets/stylesheets/rademade_admin/var/images.sass +2 -0
  95. data/app/assets/stylesheets/rademade_admin/var/width.sass +13 -0
  96. data/app/controllers/rademade_admin/abstract_controller.rb +18 -2
  97. data/app/controllers/rademade_admin/application_controller.rb +1 -1
  98. data/app/controllers/rademade_admin/dashboard_controller.rb +1 -1
  99. data/app/controllers/rademade_admin/file_controller.rb +25 -0
  100. data/app/controllers/rademade_admin/model_controller.rb +66 -47
  101. data/app/controllers/rademade_admin/sessions_controller.rb +3 -3
  102. data/app/helpers/rademade_admin/field_helper.rb +21 -32
  103. data/app/helpers/rademade_admin/form_helper.rb +57 -27
  104. data/app/helpers/rademade_admin/menu_helper.rb +12 -5
  105. data/app/helpers/rademade_admin/uri_helper.rb +50 -62
  106. data/app/inputs/rademade_admin/date_time_input.rb +13 -0
  107. data/app/inputs/rademade_admin/file_input.rb +72 -0
  108. data/app/inputs/rademade_admin/related_select_input.rb +78 -0
  109. data/app/serializers/autocomplete/link_serializer.rb +6 -4
  110. data/app/services/linker.rb +8 -14
  111. data/app/services/login.rb +5 -3
  112. data/app/services/model_controller/breadcrumbs.rb +36 -0
  113. data/app/services/model_controller/instance_options.rb +7 -5
  114. data/app/services/model_controller/model_options.rb +10 -7
  115. data/app/services/model_controller/notifier.rb +10 -6
  116. data/app/services/model_controller/templates.rb +4 -3
  117. data/app/services/relation_service.rb +11 -0
  118. data/app/services/saver.rb +59 -24
  119. data/app/services/search/conditions/abstract.rb +15 -14
  120. data/app/services/search/conditions/autocomplete.rb +11 -9
  121. data/app/services/search/conditions/list.rb +6 -5
  122. data/app/services/search/conditions/related_list.rb +17 -13
  123. data/app/services/search/{conditions/part/where.rb → part/abstract.rb} +7 -9
  124. data/app/services/search/part/order.rb +17 -0
  125. data/app/services/search/part/where.rb +19 -0
  126. data/app/services/sortable_service.rb +27 -27
  127. data/app/services/template_service.rb +68 -0
  128. data/app/services/upload/preview_service.rb +86 -0
  129. data/app/views/layouts/rademade_admin.html.erb +13 -4
  130. data/app/views/rademade_admin/_blocks/_header.html.erb +35 -28
  131. data/app/views/rademade_admin/_blocks/_menu.html.erb +20 -23
  132. data/app/views/rademade_admin/_blocks/_on_page_select.html.erb +15 -0
  133. data/app/views/rademade_admin/_blocks/_pagination.html.erb +1 -18
  134. data/app/views/rademade_admin/_blocks/_sub_menu.html.erb +3 -3
  135. data/app/views/rademade_admin/_blocks/form/_control.html.erb +3 -0
  136. data/app/views/rademade_admin/_blocks/form/_lang_panel.html.erb +19 -0
  137. data/app/views/rademade_admin/_blocks/sub_menu/_link.html.erb +6 -5
  138. data/app/views/rademade_admin/_blocks/table/_head.html.erb +13 -0
  139. data/app/views/rademade_admin/_layouts/inner.html.erb +21 -33
  140. data/app/views/rademade_admin/_layouts/inner/form.html.erb +6 -13
  141. data/app/views/rademade_admin/_layouts/inner/index_table.html.erb +31 -55
  142. data/app/views/rademade_admin/_layouts/inner/related_index_table.html.erb +26 -54
  143. data/app/views/rademade_admin/abstract/_form.html.erb +6 -9
  144. data/app/views/rademade_admin/abstract/edit.html.erb +3 -8
  145. data/app/views/rademade_admin/abstract/index.html.erb +38 -67
  146. data/app/views/rademade_admin/abstract/new.html.erb +3 -8
  147. data/app/views/rademade_admin/abstract/related.html.erb +48 -0
  148. data/app/views/rademade_admin/dashboard/index.html.erb +4 -5
  149. data/app/views/rademade_admin/dashboard/login.html.erb +19 -30
  150. data/config/initializers/carrier_wave/mongoid.rb +48 -0
  151. data/config/initializers/ckeditor.rb +3 -0
  152. data/config/initializers/kaminari_route_proxy.rb +16 -0
  153. data/config/initializers/simple_form.rb +147 -0
  154. data/config/initializers/simple_form/rademade_component.rb +9 -0
  155. data/config/initializers/simple_form/wrappers.rb +28 -0
  156. data/config/locales/rademade_admin.en.yml +28 -0
  157. data/config/locales/simple_form.en.yml +26 -0
  158. data/config/routes.rb +1 -2
  159. data/lib/rademade_admin.rb +7 -5
  160. data/lib/rademade_admin/bower/performer.rb +1 -1
  161. data/lib/rademade_admin/breadcrumbs/render/rademade.rb +31 -0
  162. data/lib/rademade_admin/engine.rb +2 -2
  163. data/lib/rademade_admin/input/related_select_input/model_data.rb +40 -0
  164. data/lib/rademade_admin/input/related_select_input/related_list.rb +60 -0
  165. data/lib/rademade_admin/model/adapter/data.rb +119 -0
  166. data/lib/rademade_admin/model/adapter/data/active_record.rb +109 -0
  167. data/lib/rademade_admin/model/adapter/data/mongoid.rb +77 -0
  168. data/{app/services/search/query_adapter/abstract.rb → lib/rademade_admin/model/adapter/query.rb} +15 -5
  169. data/lib/rademade_admin/model/adapter/query/active_record.rb +50 -0
  170. data/lib/rademade_admin/model/adapter/query/mongoid.rb +57 -0
  171. data/lib/rademade_admin/model/configuration.rb +43 -16
  172. data/lib/rademade_admin/model/configuration/field_label.rb +16 -0
  173. data/lib/rademade_admin/model/configuration/fields.rb +47 -21
  174. data/lib/rademade_admin/model/configuration/fields_labels.rb +31 -0
  175. data/lib/rademade_admin/model/configuration/form_field.rb +27 -0
  176. data/lib/rademade_admin/model/configuration/form_fields.rb +18 -0
  177. data/lib/rademade_admin/model/configuration/list_field.rb +21 -0
  178. data/lib/rademade_admin/model/configuration/list_fields.rb +18 -0
  179. data/lib/rademade_admin/model/graph.rb +9 -9
  180. data/lib/rademade_admin/model/info.rb +53 -68
  181. data/lib/rademade_admin/model/info/data_item.rb +130 -0
  182. data/lib/rademade_admin/model/info/data_items.rb +130 -0
  183. data/lib/rademade_admin/model/info/field.rb +39 -0
  184. data/lib/rademade_admin/model/info/fields.rb +87 -0
  185. data/lib/rademade_admin/model/info/relation.rb +49 -0
  186. data/lib/rademade_admin/model/info/relations.rb +40 -0
  187. data/lib/rademade_admin/model/info/uploader.rb +16 -0
  188. data/lib/rademade_admin/model/info/uploaders.rb +35 -0
  189. data/lib/rademade_admin/model/reflection.rb +38 -9
  190. data/lib/rademade_admin/routing/mapper.rb +9 -5
  191. data/lib/rademade_admin/search/searcher.rb +22 -0
  192. data/lib/rademade_admin/sortable.rb +1 -0
  193. data/lib/rademade_admin/uploader/photo.rb +1 -0
  194. data/lib/rademade_admin/user.rb +7 -6
  195. data/lib/rademade_admin/version.rb +1 -1
  196. data/lib/tasks/rademade_bower_install.rake +10 -2
  197. data/lib/templates/erb/scaffold/_form.html.erb +13 -0
  198. metadata +195 -109
  199. data/app/assets/javascripts/rademade_admin/app/common/relation-list.coffee +0 -109
  200. data/app/assets/javascripts/rademade_admin/app/form-popup/collection.coffee +0 -20
  201. data/app/assets/javascripts/rademade_admin/app/form-popup/model.coffee +0 -4
  202. data/app/assets/javascripts/rademade_admin/detail_admin/theme.js +0 -56
  203. data/app/assets/javascripts/rademade_admin/form/form-ajax-submit.coffee +0 -157
  204. data/app/assets/stylesheets/rademade_admin.scss.erb +0 -19
  205. data/app/helpers/rademade_admin/name_helper.rb +0 -18
  206. data/app/helpers/rademade_admin/upload_preview_helper.rb +0 -60
  207. data/app/inputs/rademade_admin/admin_file_input.rb +0 -71
  208. data/app/inputs/rademade_admin/admin_select_input.rb +0 -82
  209. data/app/inputs/rademade_admin/admin_textarea_input.rb +0 -6
  210. data/app/inputs/rademade_admin/boolean_input.rb +0 -14
  211. data/app/services/form_builder.rb +0 -4
  212. data/app/services/search/query_adapter/active_record.rb +0 -45
  213. data/app/services/search/query_adapter/mongoid.rb +0 -51
  214. data/app/services/search/searcher.rb +0 -20
  215. data/app/views/rademade_admin/_blocks/_form_control.html.erb +0 -5
  216. data/app/views/rademade_admin/abstract/related_index.html.erb +0 -85
  217. data/config/initializers/devise.rb +0 -251
  218. data/config/initializers/formtastic.rb +0 -13
  219. data/lib/rademade_admin/model/data_adapter.rb +0 -64
  220. data/lib/rademade_admin/model/data_adapter/active_record.rb +0 -59
  221. data/lib/rademade_admin/model/data_adapter/mongoid.rb +0 -54
  222. data/lib/rademade_admin/model/reflection/data.rb +0 -48
  223. data/lib/rademade_admin/model/reflection/uploader.rb +0 -18
@@ -0,0 +1,42 @@
1
+ class @FormValidation extends Backbone.View
2
+
3
+ validationObject = undefined
4
+
5
+ initialize : (options) ->
6
+ @validationObject = options.validationObject
7
+
8
+ displayFieldErrors : (errors) ->
9
+ [messages, globalMessages] = @_collectErrorMessages(errors)
10
+ @_showErrorMessages(messages)
11
+ @_showGlobalErrorMessages(globalMessages)
12
+ false
13
+
14
+ displayGlobalErrors : (errors) ->
15
+ errorMessage = ''
16
+ _.each errors, (error) ->
17
+ errorMessage += "<p>#{error}</p>"
18
+ window.notifier.notify errorMessage
19
+
20
+ _collectErrorMessages : (errors) ->
21
+ messages = {}
22
+ globalMessages = []
23
+
24
+ $.each errors, (field, message) ->
25
+ name = "data[#{field}]"
26
+ if $("[name='#{name}']").length > 0
27
+ messages[name] = message
28
+ else
29
+ _.each message, (subMessage) ->
30
+ globalMessages.push "#{field} #{subMessage}"
31
+
32
+ [messages, globalMessages]
33
+
34
+ _showErrorMessages : (messages) ->
35
+ unless $.isEmptyObject(messages)
36
+ try
37
+ @validationObject.showErrors messages
38
+ catch e
39
+ @displayGlobalErrors messages
40
+
41
+ _showGlobalErrorMessages : (messages) ->
42
+ @displayGlobalErrors(messages) unless messages.length is 0
@@ -0,0 +1,62 @@
1
+ class @Form extends Backbone.View
2
+
3
+ sending = false
4
+ formValidation = undefined
5
+ formAjax = undefined
6
+
7
+ initValidationObject : () ->
8
+ @formValidation = new FormValidation
9
+ validationObject : @$el.validate @getValidationData()
10
+
11
+ initFormAjax : () ->
12
+ @formAjax = new FormAjax
13
+ el : @$el
14
+ @formAjax.on('ajax-start', @_onAjaxStart)
15
+ .on('ajax-done', @_onAjaxDone)
16
+ .on('ajax-fail', @_onAjaxFail)
17
+ .on('ajax-finish', @_onAjaxFinish)
18
+
19
+ getValidationData : () ->
20
+ highlight : (element) ->
21
+ $(element).parent().removeClass('success').addClass 'error'
22
+
23
+ unhighlight : (element) ->
24
+ $(element).parent().removeClass('error').addClass 'success'
25
+
26
+ submitHandler : () =>
27
+ return if @sending
28
+ lazySubmitHandler = () =>
29
+ @formAjax.submitHandler()
30
+ if @handlerExist('ajax-before-submit')
31
+ @trigger('ajax-before-submit', [ lazySubmitHandler ])
32
+ else
33
+ lazySubmitHandler.call()
34
+ return false
35
+
36
+ handlerExist : (name) ->
37
+ jQuery._data(@el).events[name]
38
+
39
+ trigger : () ->
40
+ @$el.triggerHandler.apply(@$el, arguments)
41
+
42
+ _onAjaxStart : () =>
43
+ @sending = true
44
+
45
+ _onAjaxDone : (data) =>
46
+ @trigger 'ajax-submit-done', [data]
47
+
48
+ _onAjaxFail : (data) =>
49
+ @trigger 'ajax-submit-fail', [data]
50
+ @formValidation.displayFieldErrors(data.errors)
51
+
52
+ _onAjaxFinish : (data) =>
53
+ @trigger 'ajax-submit-always', [data]
54
+ @sending = false
55
+
56
+
57
+ Form.init = ($el) ->
58
+ form = new Form
59
+ el : $el
60
+ form.initValidationObject()
61
+ form.initFormAjax()
62
+ form
@@ -1,12 +1,14 @@
1
- CKEDITOR.config.toolbar = [
2
- { name: 'document', groups: [ 'mode' ], items: [ 'Source' ] },
3
- { name: 'editing', groups: [ 'find' ], items: [ 'Find', 'Replace' ] },
4
- { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Underline', 'Strike', '-', 'RemoveFormat' ] },
5
- { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl' ] },
6
- '/',
7
- { name: 'links', items: [ 'Link', 'Unlink' ] },
8
- { name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'SpecialChar' ] },
9
- { name: 'styles', items: [ 'Styles', 'Format', 'Font', 'FontSize' ] },
10
- { name: 'colors', items: [ 'TextColor', 'BGColor' ] },
11
- { name: 'tools', items: [ 'Maximize' ] }
12
- ];
1
+ if (CKEDITOR && CKEDITOR.config) {
2
+ CKEDITOR.config.language = 'en';
3
+ CKEDITOR.config.toolbar = [
4
+ { name: 'document', groups: [ 'mode' ], items: [ 'Source' ] },
5
+ { name: 'editing', groups: [ 'find' ], items: [ 'Find', 'Replace' ] },
6
+ { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Underline', 'Strike', '-', 'RemoveFormat' ] },
7
+ { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl' ] },
8
+ '/',
9
+ { name: 'links', items: [ 'Link', 'Unlink' ] },
10
+ { name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'SpecialChar' ] },
11
+ { name: 'styles', items: [ 'Styles', 'Format', 'Font', 'FontSize' ] },
12
+ { name: 'colors', items: [ 'TextColor', 'BGColor' ] }
13
+ ];
14
+ }
@@ -0,0 +1,96 @@
1
+ /*
2
+ *= require jquery-fileupload/css/jquery.fileupload-ui
3
+ *= require select2/select2
4
+ *= require magnific-popup/dist/magnific-popup
5
+ *= require jquery-ui/themes/base/core
6
+ *= require jquery-ui/themes/base/slider
7
+ *= require jquery-ui/themes/base/datepicker
8
+ *= require uniform/themes/default/css/uniform.default
9
+ *= require jquery-timepicker/dist/jquery-ui-timepicker-addon
10
+ */
11
+
12
+ /******************/
13
+ /** compass main **/
14
+ /******************/
15
+
16
+ @import compass
17
+ @import compass/reset
18
+
19
+
20
+ /******************/
21
+ /** mixins **/
22
+ /******************/
23
+
24
+ @import rademade_admin/mixins/clear
25
+ @import rademade_admin/mixins/fonts
26
+ /*@import rademade_admin/mixins/sprite*/
27
+ @import rademade_admin/mixins/text-overflow
28
+ @import rademade_admin/mixins/user-select
29
+
30
+ /******************/
31
+ /** variables **/
32
+ /******************/
33
+
34
+ @import rademade_admin/var/colors
35
+ @import rademade_admin/var/width
36
+
37
+
38
+ /******************/
39
+ /** libraries **/
40
+ /******************/
41
+
42
+ @import rademade_admin/lib/glyphicon
43
+ @import rademade_admin/lib/uploader
44
+ @import rademade_admin/lib/datepicker
45
+ @import rademade_admin/lib/notifier
46
+
47
+ /******************/
48
+ /** base **/
49
+ /******************/
50
+
51
+ @import rademade_admin/base/main
52
+
53
+
54
+ /******************/
55
+ /** blocks **/
56
+ /******************/
57
+
58
+ @import rademade_admin/blocks/header/logo
59
+ @import rademade_admin/blocks/header/search
60
+ @import rademade_admin/blocks/header/menu
61
+
62
+ @import rademade_admin/blocks/page/content/main
63
+ @import rademade_admin/blocks/page/headline/main
64
+ @import rademade_admin/blocks/page/menu/main
65
+
66
+ @import rademade_admin/blocks/buttons/main
67
+
68
+ @import rademade_admin/blocks/form/input
69
+ @import rademade_admin/blocks/form/label
70
+ @import rademade_admin/blocks/form/select
71
+ @import rademade_admin/blocks/form/select2
72
+ @import rademade_admin/blocks/form/table
73
+ @import rademade_admin/blocks/form/texarea
74
+
75
+
76
+ /******************/
77
+ /** modules **/
78
+ /******************/
79
+
80
+ @import rademade_admin/modules/header/main
81
+
82
+ @import rademade_admin/modules/main-menu/main
83
+
84
+ @import rademade_admin/modules/page/main
85
+
86
+ @import rademade_admin/modules/breadcrumbs/main
87
+
88
+ @import rademade_admin/modules/login/main
89
+
90
+ @import rademade_admin/modules/form/main
91
+
92
+ @import rademade_admin/modules/popup/new
93
+
94
+ @import rademade_admin/modules/errors/error
95
+
96
+ @import rademade_admin/modules/pagination/main
@@ -0,0 +1,71 @@
1
+ html,
2
+ body
3
+ height: 100%
4
+ min-height: 100%
5
+ body
6
+ font-size: 12px
7
+ color: #2c4042
8
+ background: #34495e
9
+ +arial
10
+
11
+ a
12
+ text-decoration: none
13
+ outline: none
14
+
15
+ b,
16
+ strong
17
+ font-weight: 700
18
+
19
+ .clear
20
+ clear: both
21
+ float: none !important
22
+
23
+ .wrapper
24
+ min-width: 900px
25
+ height: 100%
26
+ overflow-x: hidden
27
+ background: #34495e
28
+
29
+ .fix
30
+ min-width: 900px
31
+ padding: 0 0 0 15px
32
+ margin: 0 auto
33
+
34
+ .fl-l
35
+ float: left
36
+
37
+ .fl-r
38
+ float: right
39
+
40
+ .hide
41
+ display: none !important
42
+
43
+ .ico
44
+ display: inline-block
45
+ position: absolute
46
+
47
+ #overlay
48
+ display: none
49
+ position: fixed
50
+ top: 0
51
+ left: 0
52
+ width: 100%
53
+ height: 100%
54
+ background-color: rgba(0, 0, 0, 0.7)
55
+ z-index: 998
56
+
57
+ input[type="text"],
58
+ input[type="password"],
59
+ input[type="email"]
60
+ margin: 0
61
+ outline: 0
62
+
63
+ input[type="checkbox"]
64
+ margin: 0
65
+ padding: 0
66
+
67
+ textarea
68
+ margin: 0
69
+ padding: 0
70
+ outline: 0
71
+ resize: none
@@ -0,0 +1,81 @@
1
+ .btn
2
+ display: inline-block
3
+ margin: 0
4
+ padding: 6px 12px
5
+ font-size: 14px
6
+ font-weight: 400
7
+ color: #fff
8
+ text-align: center
9
+ cursor: pointer
10
+ border: 1px solid transparent
11
+ +border-radius(4px)
12
+ +user-select
13
+
14
+ .blue-btn
15
+ background-color: #428bca
16
+ border-color: #357ebd
17
+ &:hover
18
+ background-color: #3071a9
19
+ border-color: #285e8e
20
+
21
+ .green-btn
22
+ background-color: #5cb85c
23
+ border-color: #4cae4c
24
+ &:hover
25
+ background-color: #449d44
26
+ border-color: #398439
27
+
28
+ .l-blue-btn
29
+ background-color: #5bc0de
30
+ border-color: #46b8da
31
+ &:hover
32
+ background-color: #31b0d5
33
+ border-color: #269abc
34
+
35
+ .yellow-btn
36
+ background-color: #f0ad4e
37
+ border-color: #eea236
38
+ &:hover
39
+ background-color: #ec971f
40
+ border-color: #d58512
41
+
42
+ .red-btn
43
+ background-color: #c9302c
44
+ border-color: #ac2925
45
+ &:hover
46
+ background-color: #c9302c
47
+ border-color: #ac2925
48
+
49
+ .r-margin
50
+ margin-right: 20px
51
+
52
+ .btn-sep
53
+ margin: 0 10px
54
+ font-size: 12px
55
+ line-height: 34px
56
+
57
+ .cancel-btn
58
+ line-height: 34px
59
+ font-size: 14px
60
+ color: #46b8da
61
+ border-bottom: 1px solid transparentize(#46b8da, 0.6)
62
+ &:hover
63
+ border-bottom: 1px solid transparent
64
+
65
+ .related-link
66
+ line-height: 30px
67
+ font-size: 14px
68
+ color: #46b8da
69
+ border-bottom: 1px solid transparentize(#46b8da, 0.6)
70
+ &:hover
71
+ border-bottom: 1px solid transparent
72
+
73
+ .login-btn
74
+ padding: 9px 12px
75
+ width: 100%
76
+ font-size: 18px
77
+
78
+ .select-btn
79
+ padding: 4px 12px
80
+
81
+ .uploader-input-file
@@ -0,0 +1,29 @@
1
+ .form-box
2
+ .input-holder
3
+ float: left
4
+ input[type="checkbox"]
5
+ margin-top: 7px
6
+ width: 20px
7
+ height: 20px
8
+
9
+ input[type="text"],
10
+ input[type="email"],
11
+ input[type="password"],
12
+ input[type="tel"]
13
+ display: block
14
+ width: 100%
15
+ height: 34px
16
+ padding: 6px 12px
17
+ font-size: 14px
18
+ color: #555
19
+ background-color: #fff
20
+ background-image: none
21
+ border: 1px solid #ccc
22
+ +box-sizing(border-box)
23
+ +border-radius(4px)
24
+ +box-shadow(inset 0 1px 1px rgba(0,0,0,.075))
25
+ +transition(border-color ease-in-out .15s,box-shadow ease-in-out .15s)
26
+ &:focus
27
+ border-color: #66afe9
28
+ outline: 0
29
+ +box-shadow(inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6))