fullstack-admin 0.1.23 → 0.1.24

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.23
1
+ 0.1.24
@@ -0,0 +1,18 @@
1
+ /*
2
+ *= require support/base
3
+ *= require support/bootstrap
4
+ *= require support/forms
5
+ *= require support/ajax_loading
6
+ *= require support/uploads
7
+ */
8
+
9
+ @media all and (min-width:980px) {
10
+ body {
11
+ position: relative;
12
+ padding-top: 68px;
13
+ }
14
+ }
15
+
16
+ #left-aside .nav {
17
+ padding-bottom: 180px;
18
+ }
@@ -48,13 +48,13 @@ module AdminFormHelper
48
48
  options = args.extract_options!
49
49
 
50
50
  only_attributes = options[:only] || []
51
-
52
- except_attributes = options[:except] || model.protected_attributes.to_a + %W(created_at updated_at slug slugs lat lng position)
51
+ except_arg = options[:except] || []
52
+ except_attributes = except_arg + model.protected_attributes.to_a + %W(created_at updated_at slug slugs lat lng position)
53
53
 
54
54
  only_attributes.map! {|a| :"#{a}"}
55
55
  except_attributes.map! {|a| :"#{a}"}
56
56
 
57
- columns = model.attribute_names.map! {|a| :"#{a}"}
57
+ columns = model.schema.hierarchy_field_names.map! {|a| :"#{a}"}
58
58
 
59
59
  if only_attributes.any?
60
60
  columns = columns.select {|k| only_attributes.include?(k)}
@@ -83,7 +83,18 @@ module AdminFormHelper
83
83
  end
84
84
  else
85
85
 
86
- buff << @target.input(k)
86
+ if field = model.schema.hierarchy_fields[k]
87
+ if field.options[:markup]
88
+ buff << @target.input(k, :as => :markup)
89
+ elsif field.options[:simple_markup]
90
+ buff << @target.input(k, :as => :simple_markup)
91
+ else
92
+ buff << @target.input(k)
93
+ end
94
+ else
95
+ buff << @target.input(k)
96
+ end
97
+
87
98
  end
88
99
 
89
100
  }
@@ -0,0 +1,58 @@
1
+ # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
+
3
+ en:
4
+ errors:
5
+ messages:
6
+ expired: "has expired, please request a new one"
7
+ not_found: "not found"
8
+ already_confirmed: "was already confirmed, please try signing in"
9
+ not_locked: "was not locked"
10
+ not_saved:
11
+ one: "1 error prohibited this %{resource} from being saved:"
12
+ other: "%{count} errors prohibited this %{resource} from being saved:"
13
+
14
+ devise:
15
+ failure:
16
+ already_authenticated: 'You are already signed in.'
17
+ unauthenticated: 'You need to sign in or sign up before continuing.'
18
+ unconfirmed: 'You have to confirm your account before continuing.'
19
+ locked: 'Your account is locked.'
20
+ invalid: 'Invalid email or password.'
21
+ invalid_token: 'Invalid authentication token.'
22
+ timeout: 'Your session expired, please sign in again to continue.'
23
+ inactive: 'Your account was not activated yet.'
24
+ sessions:
25
+ signed_in: 'Signed in successfully.'
26
+ signed_out: 'Signed out successfully.'
27
+ passwords:
28
+ send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes.'
29
+ updated: 'Your password was changed successfully. You are now signed in.'
30
+ updated_not_active: 'Your password was changed successfully.'
31
+ send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
32
+ no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
33
+ confirmations:
34
+ send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.'
35
+ send_paranoid_instructions: 'If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes.'
36
+ confirmed: 'Your account was successfully confirmed. You are now signed in.'
37
+ registrations:
38
+ signed_up: 'Welcome! You have signed up successfully.'
39
+ signed_up_but_unconfirmed: 'A message with a confirmation link has been sent to your email address. Please open the link to activate your account.'
40
+ signed_up_but_inactive: 'You have signed up successfully. However, we could not sign you in because your account is not yet activated.'
41
+ signed_up_but_locked: 'You have signed up successfully. However, we could not sign you in because your account is locked.'
42
+ updated: 'You updated your account successfully.'
43
+ update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
44
+ destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.'
45
+ unlocks:
46
+ send_instructions: 'You will receive an email with instructions about how to unlock your account in a few minutes.'
47
+ unlocked: 'Your account has been unlocked successfully. Please sign in to continue.'
48
+ send_paranoid_instructions: 'If your account exists, you will receive an email with instructions about how to unlock it in a few minutes.'
49
+ omniauth_callbacks:
50
+ success: 'Successfully authenticated from %{kind} account.'
51
+ failure: 'Could not authenticate you from %{kind} because "%{reason}".'
52
+ mailer:
53
+ confirmation_instructions:
54
+ subject: 'Confirmation instructions'
55
+ reset_password_instructions:
56
+ subject: 'Reset password instructions'
57
+ unlock_instructions:
58
+ subject: 'Unlock Instructions'
@@ -0,0 +1,51 @@
1
+ en:
2
+ devise:
3
+ mailer:
4
+ confirmation_instructions:
5
+ subject: "Confirmation instructions"
6
+ greeting: "Welcome %{recepient}!"
7
+ instruction: "You can confirm your account email through the link below:"
8
+ action: "Confirm my account"
9
+ reset_password_instructions:
10
+ subject: "Reset password instructions"
11
+ greeting: "Hello %{recepient}!"
12
+ instruction: "Someone has requested a link to change your password, and you can do this through the link below."
13
+ action: "Change my password"
14
+ instruction_2: "If you didn't request this, please ignore this email."
15
+ instruction_3: "Your password won't change until you access the link above and create a new one."
16
+ unlock_instructions:
17
+ subject: "Unlock Instructions"
18
+ greeting: "Hello %{recepient}!"
19
+ message: "Your account has been locked due to an excessive amount of unsuccessful sign in attempts."
20
+ instruction: "Click the link below to unlock your account:"
21
+ action: "Unlock my account"
22
+ confirmations:
23
+ new:
24
+ resend_confirmation_instructions: "Resend confirmation instructions"
25
+ passwords:
26
+ new:
27
+ forgot_your_password: "Forgot your password?"
28
+ send_me_reset_password_instructions: "Send me reset password instructions"
29
+ registrations:
30
+ edit:
31
+ title: "Edit %{resource}"
32
+ leave_blank_if_you_don_t_want_to_change_it: "leave blank if you dont want to change it"
33
+ we_need_your_current_password_to_confirm_your_changes: "we need your current password to confirm your changes"
34
+ cancel_my_account: "Cancel my account"
35
+ are_you_sure: "Are you sure?"
36
+ new:
37
+ sign_up: "Sign up"
38
+ sessions:
39
+ new:
40
+ sign_in: "Sign in"
41
+ shared:
42
+ links:
43
+ didn_t_receive_confirmation_instructions: "Didn't receive confirmation instructions?"
44
+ didn_t_receive_unlock_instructions: "Didn't receive unlock instructions?"
45
+ forgot_your_password: "Forgot your password?"
46
+ sign_in: "Sign in"
47
+ sign_up: "Sign up"
48
+ sign_in_with_provider: "Sign in with %{provider}"
49
+ unlocks:
50
+ new:
51
+ resend_unlock_instructions: "Resend unlock instructions"
@@ -0,0 +1,52 @@
1
+ it:
2
+ devise:
3
+ mailer:
4
+ confirmation_instructions:
5
+ subject: 'Istruzioni per la conferma'
6
+ greeting: 'Benvenuto %{recepient}!'
7
+ instruction: 'Puoi confermare il tuo account cliccando sul link qui sotto:'
8
+ action: 'Conferma il mio account'
9
+ reset_password_instructions:
10
+ subject: 'Istruzioni per resettare la password'
11
+ greeting: 'Ciao %{recepient}!'
12
+ instruction: 'Qualcuno ha richiesto di resettare la tua password, se lo vuoi davvero puoi farlo cliccando sul link qui sotto.'
13
+ action: 'Cambia la mia password'
14
+ instruction_2: "Se non sei stato tu ad effettuare questa richiesta puoi ignorare questa mail."
15
+ instruction_3: "La tua password non cambierà finchè non accederai al link sopra."
16
+ unlock_instructions:
17
+ subject: 'Istruzioni per lo sblocco'
18
+ greeting: 'Ciao %{recepient}!'
19
+ message: 'Il tuo account è stato bloccato a seguito di un numero eccessivo di tentativi di accesso falliti.'
20
+ instruction: 'Clicca sul link qui sotto per sbloccare il tuo account:'
21
+ action: "Sblocca il mio account"
22
+ confirmations:
23
+ new:
24
+ resend_confirmation_instructions: "Invia di nuovo le istruzioni per la conferma"
25
+ passwords:
26
+ new:
27
+ forgot_your_password: "Password dimenticata?"
28
+ send_me_reset_password_instructions: "Inviami le istruzioni per resettare la password"
29
+ registrations:
30
+ edit:
31
+ title: "Modifica %{resource}"
32
+ leave_blank_if_you_don_t_want_to_change_it: "lascia in bianco se non vuoi cambiarla"
33
+ we_need_your_current_password_to_confirm_your_changes: "abbiamo bisogno della tua password attuale per confermare i cambiamenti"
34
+ cancel_my_account: "Rimuovi il mio account"
35
+ are_you_sure: "Sei sicuro?"
36
+ new:
37
+ sign_up: "Registrati"
38
+ sessions:
39
+ new:
40
+ sign_in: "Accedi"
41
+ shared:
42
+ links:
43
+ forgot_your_password: "Password dimenticata?"
44
+ sign_up: "Registrati"
45
+ sign_in: "Accedi"
46
+ sign_in_with_provider: "Accedi con %{provider}"
47
+ didn_t_receive_confirmation_instructions: "Non hai ricevuto le istruzioni per la conferma?"
48
+ didn_t_receive_unlock_instructions: "Non hai ricevuto le istruzioni per lo sblocco?"
49
+ unlocks:
50
+ new:
51
+ resend_unlock_instructions: "Invia di nuovo le istruzioni per lo sblocco"
52
+
@@ -0,0 +1,9 @@
1
+ en:
2
+ views:
3
+ pagination:
4
+ first: "&laquo;"
5
+ last: "&raquo;"
6
+ previous: "&lsaquo;"
7
+ next: "&rsaquo;"
8
+ truncate: "..."
9
+
@@ -0,0 +1,9 @@
1
+ it:
2
+ views:
3
+ pagination:
4
+ first: "&laquo;"
5
+ last: "&raquo;"
6
+ previous: "&lsaquo;"
7
+ next: "&rsaquo;"
8
+ truncate: "..."
9
+
@@ -44,4 +44,16 @@ it:
44
44
  seo_name_contains: "Nome SEO"
45
45
  key_contains: "Chiave"
46
46
  claim_contains: "Claim"
47
- email_contains: "Email"
47
+ email_contains: "Email"
48
+ edition: "Edizione"
49
+ lesson: "Lezione"
50
+ private: "Privato"
51
+ place: "Locale"
52
+ starts_on: "Inizia il"
53
+ starts_at: "Inizio"
54
+ role: "Ruolo"
55
+ bio: "Biografia"
56
+ speaker: "Relatore"
57
+ learning_module: "Modulo didattico"
58
+ lecture_room: "Classe"
59
+
@@ -14,7 +14,7 @@ it:
14
14
  videogalleries: "Videogallery"
15
15
  photo: "Foto"
16
16
  photos: "Foto"
17
- place: "Locali"
17
+ place: "Locale"
18
18
  places: "Locali"
19
19
  deal: "Offerta"
20
20
  deals: "Offerte"
@@ -56,6 +56,26 @@ it:
56
56
  dealers: "Commercianti"
57
57
  link: "Link"
58
58
  links: "Link"
59
-
59
+ event: "Evento"
60
+ events: "Eventi"
61
+ edition: "Edizione"
62
+ editions: "Edizioni"
63
+ speaker: "Relatore"
64
+ speakers: "Relatori"
65
+ lecture_room: "Classe"
66
+ lecture_rooms: "Classi"
67
+ lesson: "Lezione"
68
+ lessons: "Lezioni"
69
+ post: "Post"
70
+ posts: "Post"
71
+ blog: "Blog"
72
+ blogs: "Blogs"
73
+ learning_module: "Modulo didattico"
74
+ learning_modules: "Moduli didattici"
75
+ attachment: "Allegato"
76
+ attachments: "Allegati"
77
+ texts: "Testi"
78
+ text: "Testo"
79
+
60
80
 
61
81
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fullstack-admin"
8
- s.version = "0.1.23"
8
+ s.version = "0.1.24"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mcasimir"]
@@ -937,6 +937,7 @@ Gem::Specification.new do |s|
937
937
  "app/assets/javascripts/support/pickers.js.coffee",
938
938
  "app/assets/javascripts/support/plupload.js.coffee",
939
939
  "app/assets/javascripts/support/uploads.js.coffee",
940
+ "app/assets/stylesheets/admin/base.css",
940
941
  "app/assets/stylesheets/support/ajax_loading.css",
941
942
  "app/assets/stylesheets/support/base.css",
942
943
  "app/assets/stylesheets/support/bootstrap-customizable-responsive.less",
@@ -990,6 +991,9 @@ Gem::Specification.new do |s|
990
991
  "app/views/admin/base/update.js.coffee",
991
992
  "app/views/layouts/admin.html.erb",
992
993
  "config/initializers/formtastic_bootstrap_timeish_hack.rb",
994
+ "config/locales/devise.en.yml",
995
+ "config/locales/devise.views.en.yml",
996
+ "config/locales/devise.views.it.yml",
993
997
  "config/locales/en.yml",
994
998
  "config/locales/groups.it.yml",
995
999
  "config/locales/iso3166.da.yml",
@@ -999,6 +1003,8 @@ Gem::Specification.new do |s|
999
1003
  "config/locales/iso3166.it.yml",
1000
1004
  "config/locales/iso3166.ru.yml",
1001
1005
  "config/locales/it.yml",
1006
+ "config/locales/kaminari.en.yml",
1007
+ "config/locales/kaminari.it.yml",
1002
1008
  "config/locales/labels.it.yml",
1003
1009
  "config/locales/resources.it.yml",
1004
1010
  "config/routes.rb",
@@ -52,10 +52,6 @@ eos
52
52
 
53
53
  end
54
54
 
55
- def english_localizations
56
- generate "fullstack:admin:locale en"
57
- end
58
-
59
55
 
60
56
  def append_routes
61
57
  src = <<-eos
@@ -4,7 +4,7 @@ module Fullstack
4
4
  source_root File.expand_path('../../../../../locales', __FILE__)
5
5
 
6
6
  def install
7
- create_file Rails.root.join("config", "locales", "fullstack.admin.#{name}.yml")
7
+ generate "fullstack:locale #{name}"
8
8
  end
9
9
 
10
10
  end
@@ -1,14 +1,4 @@
1
1
  /*
2
- *= require support/base
3
- *= require support/bootstrap
4
- *= require support/forms
5
- *= require support/ajax_loading
6
- *= require support/uploads
7
- */
2
+ *= require admin/base
3
+ */
8
4
 
9
- @media all and (min-width:980px) {
10
- body {
11
- position: relative;
12
- padding-top: 68px;
13
- }
14
- }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fullstack-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23
4
+ version: 0.1.24
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -1195,6 +1195,7 @@ files:
1195
1195
  - app/assets/javascripts/support/pickers.js.coffee
1196
1196
  - app/assets/javascripts/support/plupload.js.coffee
1197
1197
  - app/assets/javascripts/support/uploads.js.coffee
1198
+ - app/assets/stylesheets/admin/base.css
1198
1199
  - app/assets/stylesheets/support/ajax_loading.css
1199
1200
  - app/assets/stylesheets/support/base.css
1200
1201
  - app/assets/stylesheets/support/bootstrap-customizable-responsive.less
@@ -1248,6 +1249,9 @@ files:
1248
1249
  - app/views/admin/base/update.js.coffee
1249
1250
  - app/views/layouts/admin.html.erb
1250
1251
  - config/initializers/formtastic_bootstrap_timeish_hack.rb
1252
+ - config/locales/devise.en.yml
1253
+ - config/locales/devise.views.en.yml
1254
+ - config/locales/devise.views.it.yml
1251
1255
  - config/locales/en.yml
1252
1256
  - config/locales/groups.it.yml
1253
1257
  - config/locales/iso3166.da.yml
@@ -1257,6 +1261,8 @@ files:
1257
1261
  - config/locales/iso3166.it.yml
1258
1262
  - config/locales/iso3166.ru.yml
1259
1263
  - config/locales/it.yml
1264
+ - config/locales/kaminari.en.yml
1265
+ - config/locales/kaminari.it.yml
1260
1266
  - config/locales/labels.it.yml
1261
1267
  - config/locales/resources.it.yml
1262
1268
  - config/routes.rb
@@ -1315,7 +1321,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
1315
1321
  version: '0'
1316
1322
  segments:
1317
1323
  - 0
1318
- hash: -4236932170185209226
1324
+ hash: -3131740963079183107
1319
1325
  required_rubygems_version: !ruby/object:Gem::Requirement
1320
1326
  none: false
1321
1327
  requirements: