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.
- checksums.yaml +4 -4
- data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.svg +229 -0
- data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/images/rademade_admin/ico/btn-attach.png +0 -0
- data/app/assets/images/rademade_admin/logos/logo.png +0 -0
- data/app/assets/javascripts/rademade_admin.coffee +8 -4
- data/app/assets/javascripts/rademade_admin/app/app.coffee +2 -1
- data/app/assets/javascripts/rademade_admin/app/common/datetime-picker.coffee +7 -0
- data/app/assets/javascripts/rademade_admin/app/common/dnd-sort.coffee +23 -32
- data/app/assets/javascripts/rademade_admin/app/common/droplist.coffee +8 -0
- data/app/assets/javascripts/rademade_admin/app/common/lang-panel.coffee +6 -0
- data/app/assets/javascripts/rademade_admin/app/common/related-index.coffee +6 -9
- data/app/assets/javascripts/rademade_admin/app/common/sort-list.coffee +10 -14
- data/app/assets/javascripts/rademade_admin/app/common/uploader.coffee +3 -3
- data/app/assets/javascripts/rademade_admin/app/form-popup/initializer.coffee +24 -37
- data/app/assets/javascripts/rademade_admin/app/form-popup/view.coffee +32 -18
- data/app/assets/javascripts/rademade_admin/app/forms/remove.coffee +4 -3
- data/app/assets/javascripts/rademade_admin/app/select2/model.coffee +7 -0
- data/app/assets/javascripts/rademade_admin/app/select2/related/collection-view.coffee +35 -0
- data/app/assets/javascripts/rademade_admin/app/select2/related/collection.coffee +28 -0
- data/app/assets/javascripts/rademade_admin/app/select2/related/model.coffee +15 -0
- data/app/assets/javascripts/rademade_admin/app/select2/related/view.coffee +40 -0
- data/app/assets/javascripts/rademade_admin/app/select2/view.coffee +78 -0
- data/app/assets/javascripts/rademade_admin/form/form-ajax.coffee +48 -0
- data/app/assets/javascripts/rademade_admin/form/form-initializater.coffee +45 -0
- data/app/assets/javascripts/rademade_admin/form/form-validation.coffee +42 -0
- data/app/assets/javascripts/rademade_admin/form/form.coffee +62 -0
- data/app/assets/javascripts/rademade_admin/library/ckeditor/config.js +14 -12
- data/app/assets/stylesheets/{rademade_admin/bootstrap → old/-bootstrap}/bootstrap-overrides.css.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/bootstrap → old/-bootstrap}/main.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/chart-showcase.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/datatables.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/elements.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/error.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/form-showcase.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/form-wizard.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/gallery.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/grids.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/icons.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/index.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/layout.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/new-user.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/personal-info.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/popup.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/signin.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/tables.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/ui-elements.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/user-list.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/user-profile.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/web-app-icons.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/lib → old/-lib}/bootstrap.datepicker.css.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin/lib → old/-lib}/morris.css.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin → old}/base.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin → old}/edit.css +0 -0
- data/app/assets/stylesheets/{rademade_admin → old}/file-upload.scss.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin → old}/notifier.custom.css.erb +0 -0
- data/app/assets/stylesheets/{rademade_admin → old}/scaffolds.scss.erb +0 -0
- data/app/assets/stylesheets/rademade_admin.sass.erb +96 -0
- data/app/assets/stylesheets/rademade_admin/base/main.sass +71 -0
- data/app/assets/stylesheets/rademade_admin/blocks/buttons/main.sass +81 -0
- data/app/assets/stylesheets/rademade_admin/blocks/form/input.sass +29 -0
- data/app/assets/stylesheets/rademade_admin/blocks/form/label.sass +31 -0
- data/app/assets/stylesheets/rademade_admin/blocks/form/select.sass +26 -0
- data/app/assets/stylesheets/rademade_admin/blocks/form/select2.sass +67 -0
- data/app/assets/stylesheets/rademade_admin/blocks/form/table.sass +42 -0
- data/app/assets/stylesheets/rademade_admin/blocks/form/texarea.sass +20 -0
- data/app/assets/stylesheets/rademade_admin/blocks/header/_logo.sass +7 -0
- data/app/assets/stylesheets/rademade_admin/blocks/header/_menu.sass +80 -0
- data/app/assets/stylesheets/rademade_admin/blocks/header/_search.sass +37 -0
- data/app/assets/stylesheets/rademade_admin/blocks/page/content/_main.sass +11 -0
- data/app/assets/stylesheets/rademade_admin/blocks/page/headline/main.sass +44 -0
- data/app/assets/stylesheets/rademade_admin/blocks/page/menu/_main.sass +31 -0
- data/app/assets/stylesheets/rademade_admin/lib/datepicker.sass +373 -0
- data/app/assets/stylesheets/rademade_admin/lib/glyphicon.sass.erb +618 -0
- data/app/assets/stylesheets/rademade_admin/lib/notifier.css.erb +661 -0
- data/app/assets/stylesheets/rademade_admin/lib/uploader.sass +66 -0
- data/app/assets/stylesheets/rademade_admin/mixins/clear.sass +5 -0
- data/app/assets/stylesheets/rademade_admin/mixins/fonts.sass +8 -0
- data/app/assets/stylesheets/rademade_admin/mixins/sprite.sass +7 -0
- data/app/assets/stylesheets/rademade_admin/mixins/text-overflow.sass +6 -0
- data/app/assets/stylesheets/rademade_admin/mixins/user-select.sass +5 -0
- data/app/assets/stylesheets/rademade_admin/modules/breadcrumbs/main.sass +30 -0
- data/app/assets/stylesheets/rademade_admin/modules/errors/error.sass.erb +19 -0
- data/app/assets/stylesheets/rademade_admin/modules/form/main.sass +15 -0
- data/app/assets/stylesheets/rademade_admin/modules/header/main.sass +6 -0
- data/app/assets/stylesheets/rademade_admin/modules/login/_main.sass +79 -0
- data/app/assets/stylesheets/rademade_admin/modules/main-menu/main.sass +0 -0
- data/app/assets/stylesheets/rademade_admin/modules/page/main.sass +16 -0
- data/app/assets/stylesheets/rademade_admin/modules/pagination/main.sass +51 -0
- data/app/assets/stylesheets/rademade_admin/modules/popup/new.sass +18 -0
- data/app/assets/stylesheets/rademade_admin/var/colors.sass +0 -0
- data/app/assets/stylesheets/rademade_admin/var/images.sass +2 -0
- data/app/assets/stylesheets/rademade_admin/var/width.sass +13 -0
- data/app/controllers/rademade_admin/abstract_controller.rb +18 -2
- data/app/controllers/rademade_admin/application_controller.rb +1 -1
- data/app/controllers/rademade_admin/dashboard_controller.rb +1 -1
- data/app/controllers/rademade_admin/file_controller.rb +25 -0
- data/app/controllers/rademade_admin/model_controller.rb +66 -47
- data/app/controllers/rademade_admin/sessions_controller.rb +3 -3
- data/app/helpers/rademade_admin/field_helper.rb +21 -32
- data/app/helpers/rademade_admin/form_helper.rb +57 -27
- data/app/helpers/rademade_admin/menu_helper.rb +12 -5
- data/app/helpers/rademade_admin/uri_helper.rb +50 -62
- data/app/inputs/rademade_admin/date_time_input.rb +13 -0
- data/app/inputs/rademade_admin/file_input.rb +72 -0
- data/app/inputs/rademade_admin/related_select_input.rb +78 -0
- data/app/serializers/autocomplete/link_serializer.rb +6 -4
- data/app/services/linker.rb +8 -14
- data/app/services/login.rb +5 -3
- data/app/services/model_controller/breadcrumbs.rb +36 -0
- data/app/services/model_controller/instance_options.rb +7 -5
- data/app/services/model_controller/model_options.rb +10 -7
- data/app/services/model_controller/notifier.rb +10 -6
- data/app/services/model_controller/templates.rb +4 -3
- data/app/services/relation_service.rb +11 -0
- data/app/services/saver.rb +59 -24
- data/app/services/search/conditions/abstract.rb +15 -14
- data/app/services/search/conditions/autocomplete.rb +11 -9
- data/app/services/search/conditions/list.rb +6 -5
- data/app/services/search/conditions/related_list.rb +17 -13
- data/app/services/search/{conditions/part/where.rb → part/abstract.rb} +7 -9
- data/app/services/search/part/order.rb +17 -0
- data/app/services/search/part/where.rb +19 -0
- data/app/services/sortable_service.rb +27 -27
- data/app/services/template_service.rb +68 -0
- data/app/services/upload/preview_service.rb +86 -0
- data/app/views/layouts/rademade_admin.html.erb +13 -4
- data/app/views/rademade_admin/_blocks/_header.html.erb +35 -28
- data/app/views/rademade_admin/_blocks/_menu.html.erb +20 -23
- data/app/views/rademade_admin/_blocks/_on_page_select.html.erb +15 -0
- data/app/views/rademade_admin/_blocks/_pagination.html.erb +1 -18
- data/app/views/rademade_admin/_blocks/_sub_menu.html.erb +3 -3
- data/app/views/rademade_admin/_blocks/form/_control.html.erb +3 -0
- data/app/views/rademade_admin/_blocks/form/_lang_panel.html.erb +19 -0
- data/app/views/rademade_admin/_blocks/sub_menu/_link.html.erb +6 -5
- data/app/views/rademade_admin/_blocks/table/_head.html.erb +13 -0
- data/app/views/rademade_admin/_layouts/inner.html.erb +21 -33
- data/app/views/rademade_admin/_layouts/inner/form.html.erb +6 -13
- data/app/views/rademade_admin/_layouts/inner/index_table.html.erb +31 -55
- data/app/views/rademade_admin/_layouts/inner/related_index_table.html.erb +26 -54
- data/app/views/rademade_admin/abstract/_form.html.erb +6 -9
- data/app/views/rademade_admin/abstract/edit.html.erb +3 -8
- data/app/views/rademade_admin/abstract/index.html.erb +38 -67
- data/app/views/rademade_admin/abstract/new.html.erb +3 -8
- data/app/views/rademade_admin/abstract/related.html.erb +48 -0
- data/app/views/rademade_admin/dashboard/index.html.erb +4 -5
- data/app/views/rademade_admin/dashboard/login.html.erb +19 -30
- data/config/initializers/carrier_wave/mongoid.rb +48 -0
- data/config/initializers/ckeditor.rb +3 -0
- data/config/initializers/kaminari_route_proxy.rb +16 -0
- data/config/initializers/simple_form.rb +147 -0
- data/config/initializers/simple_form/rademade_component.rb +9 -0
- data/config/initializers/simple_form/wrappers.rb +28 -0
- data/config/locales/rademade_admin.en.yml +28 -0
- data/config/locales/simple_form.en.yml +26 -0
- data/config/routes.rb +1 -2
- data/lib/rademade_admin.rb +7 -5
- data/lib/rademade_admin/bower/performer.rb +1 -1
- data/lib/rademade_admin/breadcrumbs/render/rademade.rb +31 -0
- data/lib/rademade_admin/engine.rb +2 -2
- data/lib/rademade_admin/input/related_select_input/model_data.rb +40 -0
- data/lib/rademade_admin/input/related_select_input/related_list.rb +60 -0
- data/lib/rademade_admin/model/adapter/data.rb +119 -0
- data/lib/rademade_admin/model/adapter/data/active_record.rb +109 -0
- data/lib/rademade_admin/model/adapter/data/mongoid.rb +77 -0
- data/{app/services/search/query_adapter/abstract.rb → lib/rademade_admin/model/adapter/query.rb} +15 -5
- data/lib/rademade_admin/model/adapter/query/active_record.rb +50 -0
- data/lib/rademade_admin/model/adapter/query/mongoid.rb +57 -0
- data/lib/rademade_admin/model/configuration.rb +43 -16
- data/lib/rademade_admin/model/configuration/field_label.rb +16 -0
- data/lib/rademade_admin/model/configuration/fields.rb +47 -21
- data/lib/rademade_admin/model/configuration/fields_labels.rb +31 -0
- data/lib/rademade_admin/model/configuration/form_field.rb +27 -0
- data/lib/rademade_admin/model/configuration/form_fields.rb +18 -0
- data/lib/rademade_admin/model/configuration/list_field.rb +21 -0
- data/lib/rademade_admin/model/configuration/list_fields.rb +18 -0
- data/lib/rademade_admin/model/graph.rb +9 -9
- data/lib/rademade_admin/model/info.rb +53 -68
- data/lib/rademade_admin/model/info/data_item.rb +130 -0
- data/lib/rademade_admin/model/info/data_items.rb +130 -0
- data/lib/rademade_admin/model/info/field.rb +39 -0
- data/lib/rademade_admin/model/info/fields.rb +87 -0
- data/lib/rademade_admin/model/info/relation.rb +49 -0
- data/lib/rademade_admin/model/info/relations.rb +40 -0
- data/lib/rademade_admin/model/info/uploader.rb +16 -0
- data/lib/rademade_admin/model/info/uploaders.rb +35 -0
- data/lib/rademade_admin/model/reflection.rb +38 -9
- data/lib/rademade_admin/routing/mapper.rb +9 -5
- data/lib/rademade_admin/search/searcher.rb +22 -0
- data/lib/rademade_admin/sortable.rb +1 -0
- data/lib/rademade_admin/uploader/photo.rb +1 -0
- data/lib/rademade_admin/user.rb +7 -6
- data/lib/rademade_admin/version.rb +1 -1
- data/lib/tasks/rademade_bower_install.rake +10 -2
- data/lib/templates/erb/scaffold/_form.html.erb +13 -0
- metadata +195 -109
- data/app/assets/javascripts/rademade_admin/app/common/relation-list.coffee +0 -109
- data/app/assets/javascripts/rademade_admin/app/form-popup/collection.coffee +0 -20
- data/app/assets/javascripts/rademade_admin/app/form-popup/model.coffee +0 -4
- data/app/assets/javascripts/rademade_admin/detail_admin/theme.js +0 -56
- data/app/assets/javascripts/rademade_admin/form/form-ajax-submit.coffee +0 -157
- data/app/assets/stylesheets/rademade_admin.scss.erb +0 -19
- data/app/helpers/rademade_admin/name_helper.rb +0 -18
- data/app/helpers/rademade_admin/upload_preview_helper.rb +0 -60
- data/app/inputs/rademade_admin/admin_file_input.rb +0 -71
- data/app/inputs/rademade_admin/admin_select_input.rb +0 -82
- data/app/inputs/rademade_admin/admin_textarea_input.rb +0 -6
- data/app/inputs/rademade_admin/boolean_input.rb +0 -14
- data/app/services/form_builder.rb +0 -4
- data/app/services/search/query_adapter/active_record.rb +0 -45
- data/app/services/search/query_adapter/mongoid.rb +0 -51
- data/app/services/search/searcher.rb +0 -20
- data/app/views/rademade_admin/_blocks/_form_control.html.erb +0 -5
- data/app/views/rademade_admin/abstract/related_index.html.erb +0 -85
- data/config/initializers/devise.rb +0 -251
- data/config/initializers/formtastic.rb +0 -13
- data/lib/rademade_admin/model/data_adapter.rb +0 -64
- data/lib/rademade_admin/model/data_adapter/active_record.rb +0 -59
- data/lib/rademade_admin/model/data_adapter/mongoid.rb +0 -54
- data/lib/rademade_admin/model/reflection/data.rb +0 -48
- 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
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
+
}
|
data/app/assets/stylesheets/{rademade_admin/bootstrap → old/-bootstrap}/bootstrap-overrides.css.erb
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/datatables.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/elements.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/error.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/form-showcase.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/form-wizard.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/gallery.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/grids.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/icons.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/index.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/layout.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/new-user.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/personal-info.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/popup.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/signin.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/tables.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/ui-elements.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/user-list.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/user-profile.scss.erb
RENAMED
File without changes
|
data/app/assets/stylesheets/{rademade_admin/detail_admin → old/-detail_admin}/web-app-icons.scss.erb
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -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))
|