thecore_ui_rails_admin 2.1.3 → 2.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/rails_admin/custom/ckeditor_ajax.js.coffee +7 -0
  3. data/app/assets/javascripts/rails_admin/custom/timer.js +135 -0
  4. data/app/assets/javascripts/rails_admin/custom/ui.js +115 -0
  5. data/app/assets/javascripts/rails_admin/ra.widgets.coffee +233 -0
  6. data/app/assets/stylesheets/rails_admin/custom/flashing.scss +28 -0
  7. data/app/assets/stylesheets/rails_admin/custom/theming.scss +199 -0
  8. data/app/assets/stylesheets/rails_admin/custom/togglable-sidebar.scss +112 -0
  9. data/app/views/contact_mailer/contact_message.html.erb +5 -0
  10. data/app/views/devise/confirmations/new.html.erb +16 -0
  11. data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  12. data/app/views/devise/mailer/password_change.html.erb +5 -0
  13. data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  14. data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  15. data/app/views/devise/menu/_login_items.html.erb +7 -0
  16. data/app/views/devise/passwords/edit.html.erb +25 -0
  17. data/app/views/devise/passwords/new.html.erb +18 -0
  18. data/app/views/devise/registrations/edit.html.erb +45 -0
  19. data/app/views/devise/registrations/new.html.erb +29 -0
  20. data/app/views/devise/sessions/new.html.erb +28 -0
  21. data/app/views/devise/shared/_links.html.erb +25 -0
  22. data/app/views/devise/unlocks/new.html.erb +16 -0
  23. data/app/views/home/index.html.erb +5 -0
  24. data/app/views/kaminari/_first_page.html.erb +3 -0
  25. data/app/views/kaminari/_gap.html.erb +3 -0
  26. data/app/views/kaminari/_last_page.html.erb +3 -0
  27. data/app/views/kaminari/_next_page.html.erb +3 -0
  28. data/app/views/kaminari/_page.html.erb +9 -0
  29. data/app/views/kaminari/_paginator.html.erb +15 -0
  30. data/app/views/kaminari/_prev_page.html.erb +3 -0
  31. data/app/views/layouts/_footer.html.erb +3 -0
  32. data/app/views/layouts/_messages.html.erb +9 -0
  33. data/app/views/layouts/_navigation.html.erb +20 -0
  34. data/app/views/layouts/_navigation_links.html.erb +7 -0
  35. data/app/views/layouts/mailer.html.erb +6 -0
  36. data/app/views/layouts/mailer.text.erb +1 -0
  37. data/app/views/layouts/rails_admin/_navigation.html.haml +13 -0
  38. data/app/views/layouts/rails_admin/_secondary_navigation.html.haml +3 -0
  39. data/app/views/layouts/rails_admin/_sidebar_navigation.html.haml +4 -0
  40. data/app/views/layouts/rails_admin/_user_navigation.html.haml +7 -0
  41. data/app/views/layouts/rails_admin/application.html.haml +59 -0
  42. data/app/views/layouts/rails_admin/pjax.html.haml +25 -0
  43. data/app/views/layouts/thecore.html.erb +42 -0
  44. data/app/views/pages/contact.html.erb +54 -0
  45. data/app/views/pages/home.html.erb +2 -0
  46. data/app/views/pages/inside.html.erb +4 -0
  47. data/app/views/rails_admin/main/_card.html.haml +17 -0
  48. data/app/views/rails_admin/main/_modal_interaction.html.erb +53 -0
  49. data/app/views/rails_admin/main/dashboard.html.haml +25 -0
  50. data/app/views/rails_admin/main/index.html.haml +90 -0
  51. data/app/views/shared/_flash.html.erb +10 -0
  52. data/app/views/users/confirmations/new.html.erb +16 -0
  53. data/app/views/users/mailer/confirmation_instructions.html.erb +5 -0
  54. data/app/views/users/mailer/password_change.html.erb +3 -0
  55. data/app/views/users/mailer/reset_password_instructions.html.erb +8 -0
  56. data/app/views/users/mailer/unlock_instructions.html.erb +7 -0
  57. data/app/views/users/passwords/edit.html.erb +19 -0
  58. data/app/views/users/passwords/new.html.erb +15 -0
  59. data/app/views/users/registrations/edit.html.erb +27 -0
  60. data/app/views/users/registrations/new.html.erb +17 -0
  61. data/app/views/users/sessions/new.html.erb +37 -0
  62. data/app/views/users/shared/_links.html.erb +26 -0
  63. data/app/views/users/unlocks/new.html.erb +16 -0
  64. data/config/initializers/rails_admin.rb +49 -0
  65. data/config/initializers/thecore_concern.rb +125 -0
  66. data/config/locales/en.index_cards.custom.yml +8 -0
  67. data/config/locales/en.main.yml +27 -0
  68. data/config/locales/en.rails_admin.yml +34 -0
  69. data/config/locales/en.rollincode.yml +5 -0
  70. data/config/locales/it.index_cards.custom.yml +20 -0
  71. data/config/locales/it.main.yml +27 -0
  72. data/config/locales/it.rails_admin.yml +4 -0
  73. data/config/locales/it.rollincode.yml +5 -0
  74. data/config/routes.rb +10 -0
  75. data/lib/thecore_ui_rails_admin.rb +3 -0
  76. data/lib/thecore_ui_rails_admin/engine.rb +7 -0
  77. data/lib/thecore_ui_rails_admin/version.rb +1 -1
  78. metadata +88 -2
@@ -0,0 +1,28 @@
1
+ .flash {
2
+ -moz-animation: flash 1s ease-out;
3
+ -moz-animation-iteration-count: 1;
4
+
5
+ -webkit-animation: flash 1s ease-out;
6
+ -webkit-animation-iteration-count: 1;
7
+
8
+ -ms-animation: flash 1s ease-out;
9
+ -ms-animation-iteration-count: 1;
10
+ }
11
+
12
+ @-webkit-keyframes flash {
13
+ 0% { background-color: none; }
14
+ 50% { background-color: #fbf8b2; }
15
+ 100% { background-color: none; }
16
+ }
17
+
18
+ @-moz-keyframes flash {
19
+ 0% { background-color: none; }
20
+ 50% { background-color: #fbf8b2; }
21
+ 100% { background-color: none; }
22
+ }
23
+
24
+ @-ms-keyframes flash {
25
+ 0% { background-color: none; }
26
+ 50% { background-color: #fbf8b2; }
27
+ 100% { background-color: none; }
28
+ }
@@ -0,0 +1,199 @@
1
+ @import "selectize";
2
+ @import "selectize.bootstrap3";
3
+ @import "togglable-sidebar";
4
+ @import "flashing";
5
+ // Froala
6
+ @import "froala_editor.min";
7
+ @import "froala_style.min";
8
+ // @import "font-awesome-sprockets";
9
+ // @import 'font-awesome';
10
+ // @import 'plugins/char_counter.min.css';
11
+ // @import 'plugins/colors.min.css';
12
+ // @import 'plugins/lists.min.css';
13
+ // @import 'plugins/line_breaker.min.css';
14
+ // @import 'plugins/special_characters.min.css';
15
+
16
+ // @import 'rails_admin/bootstrap/_variables';
17
+ // @import "rails_admin/bootstrap-datetimepicker-build";
18
+
19
+ $RAprimary: #1c2c41;
20
+ $RAgreen: #37BC9B;
21
+ $RAblue: #3BAFDA;
22
+ $RAred: #E9573F;
23
+ $RAyellow: #F6BB42;
24
+
25
+ body {
26
+ background: rgb(59, 78, 89);
27
+ }
28
+
29
+ .page-header.dashboard {
30
+ border-color: $RAprimary;
31
+ }
32
+
33
+ .breadcrumb {
34
+ background: $RAblue;
35
+ .false a, .false:before {
36
+ color: darken($RAblue, 30%) !important;
37
+ }
38
+ .active, .active:before {
39
+ color: #FFF;
40
+ }
41
+ }
42
+
43
+ .table-striped {
44
+ border-top-color: $RAblue;
45
+ .links ul li {
46
+ padding-right: 0;
47
+ a {
48
+ border-radius: 50%;
49
+ }
50
+ }
51
+ }
52
+
53
+ .content {
54
+ margin: 0px 0 15px 0;
55
+ padding: 8px;
56
+ background: rgb(59, 78, 89);
57
+ &.dashboard {
58
+ background: rgb(59, 78, 89);
59
+ }
60
+ .page-header {
61
+ display: none;
62
+ }
63
+ }
64
+
65
+ a.delete {
66
+ color: #FFF;
67
+ }
68
+
69
+ .box {
70
+ padding: 15px;
71
+ margin-bottom: 30px;
72
+ border: 1px solid $RAprimary;
73
+ position: relative;
74
+ min-height: 170px;
75
+ transition: all 0.3s ease;
76
+ color: rgba(255,255,255,0.7);
77
+ overflow: hidden;
78
+ &:hover, &:focus {
79
+ border-color: #FFF;
80
+ .icon-bg {
81
+ transform: scale(1.5) rotate(20deg);
82
+ }
83
+ }
84
+ p {
85
+ min-height: 30px;
86
+ font-size: 15px;
87
+ font-weight: 600;
88
+ a.btn {
89
+ border-radius: 3px;
90
+ color: rgba(255,255,255,0.7) !important;
91
+ display: inline-block;
92
+ margin-bottom: 0;
93
+ font-weight: normal;
94
+ text-align: center;
95
+ vertical-align: middle;
96
+ cursor: pointer;
97
+ background-color: rgba(0, 0, 0, 0.19);
98
+ border: 1px solid transparent;
99
+ white-space: nowrap;
100
+ padding: 6px 12px;
101
+ font-size: 14px;
102
+ line-height: 1.42857143;
103
+ border-radius: 4px;
104
+ -webkit-user-select: none;
105
+ -moz-user-select: none;
106
+ -ms-user-select: none;
107
+ user-select: none;
108
+ }
109
+ }
110
+ strong {
111
+ font-size: 36px;
112
+ font-weight: 600;
113
+ }
114
+ .icon-bg {
115
+ position: absolute;
116
+ right: 0;
117
+ bottom: 0;
118
+ font-size: 100px;
119
+ color: #000;
120
+ opacity: 0.08;
121
+ filter: alpha(opacity=8);
122
+ transition: all 1s ease;
123
+ }
124
+ &.bg-info {
125
+ background-color: $RAblue;
126
+ }
127
+ &.bg-success {
128
+ background-color: $RAgreen;
129
+ }
130
+ &.bg-warning {
131
+ background-color: $RAyellow;
132
+ }
133
+ &.bg-danger {
134
+ background-color: $RAred;
135
+ }
136
+ }
137
+
138
+ /* User sign in and sign forms. */
139
+ .border-form-div {
140
+ max-width: 300px;
141
+ padding: 19px 29px 29px;
142
+ margin: 0 auto 20px;
143
+ background-color: #fff;
144
+ border: 1px solid #e5e5e5;
145
+ -webkit-border-radius: 5px;
146
+ -moz-border-radius: 5px;
147
+ border-radius: 5px;
148
+ -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
149
+ -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
150
+ box-shadow: 0 1px 2px rgba(0,0,0,.05);
151
+ }
152
+ .border-form-div .form-signin-heading,
153
+ .border-form-div .checkbox {
154
+ margin-bottom: 10px;
155
+ }
156
+ .border-form-div input[type="text"],
157
+ .border-form-div input[type="email"],
158
+ .border-form-div input[type="password"] {
159
+ font-size: 16px;
160
+ height: auto;
161
+ margin-bottom: 15px;
162
+ padding: 7px 9px;
163
+ }
164
+
165
+ #sidebar-collapse {
166
+ background-color: transparent;
167
+ background-image: none;
168
+ border: 1px solid transparent;
169
+ color: #888;
170
+ }
171
+ #sidebar-collapse:focus {
172
+ outline: 0;
173
+ }
174
+ #sidebar-collapse:hover {
175
+ color: white;
176
+ }
177
+
178
+ .exit-button {
179
+ padding-top: 9px;
180
+ padding-bottom: 9px;
181
+ margin-top: 8px;
182
+ margin-bottom: 8px;
183
+ margin-right: 7px;
184
+ }
185
+
186
+ #app-name {
187
+ font-size: 2em;
188
+ color: #888;
189
+ font-family: 'Raleway', sans-serif;
190
+ word-wrap: normal;
191
+ }
192
+ #app-name:hover {
193
+ color: white;
194
+ text-decoration: none;
195
+ }
196
+
197
+ body.rails_admin {
198
+ padding-top: 0px;
199
+ }
@@ -0,0 +1,112 @@
1
+ /* Toggle Styles */
2
+
3
+ #wrapper {
4
+ padding-left: 0;
5
+ -webkit-transition: all 0.5s ease;
6
+ -moz-transition: all 0.5s ease;
7
+ -o-transition: all 0.5s ease;
8
+ transition: all 0.5s ease;
9
+ }
10
+ #wrapper.toggled {
11
+ padding-left: 250px;
12
+ }
13
+ #sidebar-wrapper {
14
+ z-index: 100;
15
+ position: fixed;
16
+ left: 250px;
17
+ width: 0;
18
+ height: 100%;
19
+ margin-left: -250px;
20
+ overflow-y: auto;
21
+ background: #000;
22
+ -webkit-transition: all 0.5s ease;
23
+ -moz-transition: all 0.5s ease;
24
+ -o-transition: all 0.5s ease;
25
+ transition: all 0.5s ease;
26
+ }
27
+ #wrapper.toggled #sidebar-wrapper {
28
+ width: 250px;
29
+ }
30
+ #page-content-wrapper {
31
+ z-index: 150;
32
+ width: 100%;
33
+ position: absolute;
34
+ padding: 15px;
35
+ background-color: rgb(59,78,89);
36
+ min-height: 100vh;
37
+ }
38
+ #wrapper.toggled #page-content-wrapper {
39
+ position: absolute;
40
+ margin-right: -250px;
41
+ background-color: rgb(59,78,89);
42
+ }
43
+ /* Sidebar Styles */
44
+
45
+ .sidebar-nav {
46
+ position: absolute;
47
+ top: 0;
48
+ width: 250px;
49
+ margin: 0;
50
+ padding: 0;
51
+ list-style: none;
52
+ }
53
+ .sidebar-nav li {
54
+ text-indent: 20px;
55
+ line-height: 40px;
56
+ }
57
+ .sidebar-nav li a {
58
+ display: block;
59
+ text-decoration: none;
60
+ color: #999999;
61
+ }
62
+ .sidebar-nav li a:hover {
63
+ text-decoration: none;
64
+ color: #fff;
65
+ background: rgba(255, 255, 255, 0.2);
66
+ }
67
+ .sidebar-nav li a:active,
68
+ .sidebar-nav li a:focus {
69
+ text-decoration: none;
70
+ }
71
+ .sidebar-nav > .sidebar-brand {
72
+ height: 65px;
73
+ font-size: 18px;
74
+ line-height: 60px;
75
+ }
76
+ .sidebar-nav > .sidebar-brand a {
77
+ color: #999999;
78
+ }
79
+ .sidebar-nav > .sidebar-brand a:hover {
80
+ color: #fff;
81
+ background: none;
82
+ }
83
+
84
+ body.rails_admin .sidebar-nav {
85
+ top: 0px;
86
+ }
87
+ // @media(min-width:768px) {
88
+ // #wrapper {
89
+ // padding-left: 250px;
90
+ // }
91
+ // #wrapper.toggled {
92
+ // padding-left: 0;
93
+ // }
94
+ // #sidebar-wrapper {
95
+ // width: 250px;
96
+ // z-index: 10000;
97
+ // }
98
+ // #wrapper.toggled #sidebar-wrapper {
99
+ // width: 0;
100
+ // z-index: 10000;
101
+ // }
102
+ // #page-content-wrapper {
103
+ // padding: 20px;
104
+ // position: absolute;
105
+ // z-index: 20000;
106
+ // }
107
+ // #wrapper.toggled #page-content-wrapper {
108
+ // position: absolute;
109
+ // margin-right: 0;
110
+ // z-index: 20000;
111
+ // }
112
+ // }
@@ -0,0 +1,5 @@
1
+ <p><%=t "contact_mailer.message.domain", domain: ENV["DOMAIN"] %>:</p>
2
+ <p>--------------</p>
3
+ <p><%=t "contact_mailer.message.from", name: @name, email: @email %></p>
4
+ <p>--------------</p>
5
+ <%= sanitize(line_break(@message), tags: %w(br)) %>
@@ -0,0 +1,16 @@
1
+ <h2><%=t("devise.confirmations.new.resend_confirmation_instructions")</h2>
2
+
3
+ <%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
4
+ <%= devise_error_messages! %>
5
+
6
+ <div class="field">
7
+ <%= f.label :email %><br />
8
+ <%= f.email_field :email, autofocus: true, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
9
+ </div>
10
+
11
+ <div class="actions">
12
+ <%= f.submit t("devise.confirmations.new.resend_confirmation_instructions") %>
13
+
14
+ <%= render "devise/shared/links" %>
15
+ </div>
16
+ <% end %>
@@ -0,0 +1,5 @@
1
+ <p><%=t "devise.mailer.confirmation_instructions.greeting", recipient: @email %></p>
2
+
3
+ <p><%=t "devise.mailer.confirmation_instructions.instruction"%></p>
4
+
5
+ <p><%= link_to t("devise.mailer.confirmation_instructions.action"), confirmation_url(@resource, confirmation_token: @token) %></p>
@@ -0,0 +1,5 @@
1
+ <p><%=t "devise.mailer.password_changed_instructions.greeting", recipient: @resource.email %></p>
2
+
3
+ <p><%=t "devise.mailer.password_changed_instructions.instruction"%></p>
4
+
5
+ <p><%=t "devise.mailer.password_changed_instructions.instruction_2"%></p>
@@ -0,0 +1,8 @@
1
+ <p><%=t "devise.mailer.reset_password_instructions.greeting", recipient: @resource.email %></p>
2
+
3
+ <p><%=t "devise.mailer.reset_password_instructions.instruction"%></p>
4
+
5
+ <p><%= link_to t("devise.mailer.reset_password_instructions.action"), edit_password_url(@resource, reset_password_token: @token) %></p>
6
+
7
+ <p><%=t "devise.mailer.reset_password_instructions.instruction_2"%></p>
8
+ <p><%=t "devise.mailer.reset_password_instructions.instruction_3"%></p>
@@ -0,0 +1,7 @@
1
+ <p><%=t "devise.mailer.unlock_instructions.greeting", recipient: @resource.email %></p>
2
+
3
+ <p><%=t "devise.mailer.unlock_instructions.message" %></p>
4
+
5
+ <p><%=t "devise.mailer.unlock_instructions.instruction" %></p>
6
+
7
+ <p><%= link_to t("devise.mailer.unlock_instructions.action"), unlock_url(@resource, unlock_token: @token) %></p>
@@ -0,0 +1,7 @@
1
+ <% if user_signed_in? %>
2
+ <li>
3
+ <%= link_to destroy_user_session_path, :method => :delete do %>
4
+ <i class="fa fa-sign-out"></i> <%=t("devise.shared.links.sign_out")%>
5
+ <% end %>
6
+ </li>
7
+ <% end %>
@@ -0,0 +1,25 @@
1
+ <div class="col-md-4 col-md-offset-4">
2
+ <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
3
+ <%= devise_error_messages! %>
4
+ <%= f.hidden_field :reset_password_token %>
5
+
6
+ <div class="field">
7
+ <%= f.label :password, t("devise.passwords.edit.new_password") %><br />
8
+ <% if @minimum_password_length %>
9
+ <em>(<%= @minimum_password_length %> characters minimum)</em><br />
10
+ <% end %>
11
+ <%= f.password_field :password, autofocus: true, autocomplete: "off", :class => "form-control" %>
12
+ </div>
13
+
14
+ <div class="field">
15
+ <%= f.label :password_confirmation, "Confirm new password" %><br />
16
+ <%= f.password_field :password_confirmation, autocomplete: "off", :class => "form-control" %>
17
+ </div>
18
+
19
+ <div class="actions">
20
+ <%= f.submit t("devise.passwords.edit.change_my_password"), :class => "btn btn-warning" %>
21
+
22
+ <%= render "devise/shared/links" %>
23
+ </div>
24
+ <% end %>
25
+ </div>
@@ -0,0 +1,18 @@
1
+ <div class="col-md-4 col-md-offset-4">
2
+ <h2><%=t("devise.shared.links.forgot_your_password")%></h2>
3
+
4
+ <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
5
+ <%= devise_error_messages! %>
6
+
7
+ <div class="field">
8
+ <%= f.label :username %><br />
9
+ <%= f.email_field :username, autofocus: true, :class => "form-control" %>
10
+ </div>
11
+
12
+ <div class="actions">
13
+ <%= f.submit t("devise.confirmations.new.resend_confirmation_instructions"), :class => "btn btn-warning" %>
14
+
15
+ <%= render "devise/shared/links" %>
16
+ </div>
17
+ <% end %>
18
+ </div>