carnival_devise_views 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. data/Gemfile +4 -0
  2. data/LICENSE.txt +22 -0
  3. data/README.md +41 -0
  4. data/Rakefile +2 -0
  5. data/app/assets/images/fonts/opensans-regular-webfont.eot +0 -0
  6. data/app/assets/images/fonts/opensans-regular-webfont.svg +252 -0
  7. data/app/assets/images/fonts/opensans-regular-webfont.ttf +0 -0
  8. data/app/assets/images/fonts/opensans-regular-webfont.woff +0 -0
  9. data/app/assets/images/fonts/opensans-semibold-webfont.eot +0 -0
  10. data/app/assets/images/fonts/opensans-semibold-webfont.svg +251 -0
  11. data/app/assets/images/fonts/opensans-semibold-webfont.ttf +0 -0
  12. data/app/assets/images/fonts/opensans-semibold-webfont.woff +0 -0
  13. data/app/assets/images/fonts/up-not.png +0 -0
  14. data/app/assets/stylesheets/carnival_devise_views.css +255 -0
  15. data/app/assets/stylesheets/carnival_devise_views.sass +212 -0
  16. data/app/views/erb/devise/confirmations/new.html.erb +12 -0
  17. data/app/views/erb/devise/mailer/confirmation_instructions.html.erb +5 -0
  18. data/app/views/erb/devise/mailer/reset_password_instructions.html.erb +8 -0
  19. data/app/views/erb/devise/mailer/unlock_instructions.html.erb +7 -0
  20. data/app/views/erb/devise/passwords/edit.html.erb +16 -0
  21. data/app/views/erb/devise/passwords/new.html.erb +12 -0
  22. data/app/views/erb/devise/registrations/edit.html.erb +29 -0
  23. data/app/views/erb/devise/registrations/new.html.erb +18 -0
  24. data/app/views/erb/devise/sessions/new.html.erb +21 -0
  25. data/app/views/erb/devise/shared/_links.html.erb +24 -0
  26. data/app/views/haml/devise/confirmations/new.html.haml +9 -0
  27. data/app/views/haml/devise/mailer/confirmation_instructions.html.haml +8 -0
  28. data/app/views/haml/devise/mailer/reset_password_instructions.html.haml +14 -0
  29. data/app/views/haml/devise/mailer/unlock_instructions.html.haml +11 -0
  30. data/app/views/haml/devise/passwords/edit.html.haml +14 -0
  31. data/app/views/haml/devise/passwords/new.html.haml +11 -0
  32. data/app/views/haml/devise/registrations/edit.html.haml +33 -0
  33. data/app/views/haml/devise/registrations/new.html.haml +17 -0
  34. data/app/views/haml/devise/sessions/new.html.haml +13 -0
  35. data/app/views/haml/devise/shared/_links.html.haml +14 -0
  36. data/app/views/haml/devise/unlocks/new.html.erb +12 -0
  37. data/config/locales/en.yml +42 -0
  38. data/config/locales/pt-BR.yml +42 -0
  39. data/lib/carnival_devise_views.rb +5 -0
  40. data/lib/carnival_devise_views/version.rb +3 -0
  41. data/lib/generators/carnival_devise_views/install_generator.rb +45 -0
  42. metadata +46 -6
@@ -0,0 +1,12 @@
1
+ <h2><%= t("carnival_devise.confirmations.new") %></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><%= f.label :email %><br />
7
+ <%= f.email_field :email, :autofocus => true %></div>
8
+
9
+ <div><%= f.submit t("carnival_devise.confirmations.new") %></div>
10
+ <% end %>
11
+
12
+ <%= render "devise/shared/links" %>
@@ -0,0 +1,5 @@
1
+ <p><%= t('carnival_devise.mailer.welcome') %> <%= @email %>!</p>
2
+
3
+ <p><%= t('carnival_devise.mailer.confirm_message') %>:</p>
4
+
5
+ <p><%= link_to t('carnival_devise.mailer.confirm_account'), confirmation_url(@resource, :confirmation_token => @token) %></p>
@@ -0,0 +1,8 @@
1
+ <p><%= t('carnival_devise.mailer.hello') %> <%= @resource.email %>!</p>
2
+
3
+ <p><%= t('carnival_devise.mailer.change_message') %>.</p>
4
+
5
+ <p><%= link_to t('carnival_devise.mailer.change'), edit_password_url(@resource, :reset_password_token => @token) %></p>
6
+
7
+ <p><%= t('carnival_devise.mailer.ignore') %>.</p>
8
+ <p><%= t('carnival_devise.mailer.wont_change') %>.</p>
@@ -0,0 +1,7 @@
1
+ <p><%= t('carnival_devise.mailer.hello') %> <%= @resource.email %>!</p>
2
+
3
+ <p><%= t('carnival_devise.mailer.attempts') %>.</p>
4
+
5
+ <p><%= t('carnival_devise.mailer.unlock_message') %>:</p>
6
+
7
+ <p><%= link_to t('carnival_devise.mailer.unlock'), unlock_url(@resource, :unlock_token => @token) %></p>
@@ -0,0 +1,16 @@
1
+ <h2><%= t('carnival_devise.passwords.change_message') %></h2>
2
+
3
+ <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
4
+ <%= devise_error_messages! %>
5
+ <%= f.hidden_field :reset_password_token %>
6
+
7
+ <div><%= f.label :password, t('carnival_devise.passwords.new') %><br />
8
+ <%= f.password_field :password, :autofocus => true %></div>
9
+
10
+ <div><%= f.label :password_confirmation, t('carnival_devise.passwords.confirm') %><br />
11
+ <%= f.password_field :password_confirmation %></div>
12
+
13
+ <div><%= f.submit t('carnival_devise.passwords.change') %></div>
14
+ <% end %>
15
+
16
+ <%= render "devise/shared/links" %>
@@ -0,0 +1,12 @@
1
+ <h2><%= t('carnival_devise.passwords.forgot') %>?</h2>
2
+
3
+ <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %>
4
+ <%= devise_error_messages! %>
5
+
6
+ <div><%= f.label :email %><br />
7
+ <%= f.email_field :email, :autofocus => true %></div>
8
+
9
+ <div><%= f.submit t('carnival_devise.passwords.send_reset_instructions') %></div>
10
+ <% end %>
11
+
12
+ <%= render "devise/shared/links" %>
@@ -0,0 +1,29 @@
1
+ <h2><%= t('carnival_devise.registrations.edit') %> <%= resource_name.to_s.humanize %></h2>
2
+
3
+ <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
4
+ <%= devise_error_messages! %>
5
+
6
+ <div><%= f.label :email %><br />
7
+ <%= f.email_field :email, :autofocus => true %></div>
8
+
9
+ <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
10
+ <div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
11
+ <% end %>
12
+
13
+ <div><%= f.label :password %> <i>( <%= t('carnival_devise.registrations.blank_message') %> )</i><br />
14
+ <%= f.password_field :password, :autocomplete => "off" %></div>
15
+
16
+ <div><%= f.label :password_confirmation %><br />
17
+ <%= f.password_field :password_confirmation %></div>
18
+
19
+ <div><%= f.label :current_password %> <i>( <%= t('carnival_devise.registrations.confirm') %> )</i><br />
20
+ <%= f.password_field :current_password %></div>
21
+
22
+ <div><%= f.submit t('carnival_devise.registrations.update') %></div>
23
+ <% end %>
24
+
25
+ <h3><%= t('carnival_devise.registrations.cancel') %></h3>
26
+
27
+ <p>Unhappy? <%= button_to t('carnival_devise.registrations.cancel') , registration_path(resource_name), :data => { :confirm => "Are you sure?" }, :method => :delete %></p>
28
+
29
+ <%= link_to t('carnival_devise.back'), :back %>
@@ -0,0 +1,18 @@
1
+ <h2><%= t('carnival_devise.sign_up') %></h2>
2
+
3
+ <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
4
+ <%= devise_error_messages! %>
5
+
6
+ <div><%= f.label :email %><br />
7
+ <%= f.email_field :email, :autofocus => true %></div>
8
+
9
+ <div><%= f.label :password %><br />
10
+ <%= f.password_field :password %></div>
11
+
12
+ <div><%= f.label :password_confirmation %><br />
13
+ <%= f.password_field :password_confirmation %></div>
14
+
15
+ <div><%= f.submit t('carnival_devise.sign_up') %></div>
16
+ <% end %>
17
+
18
+ <%= render "devise/shared/links" %>
@@ -0,0 +1,21 @@
1
+ <div class="login-container">
2
+ <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
3
+ <h2>Efetuar login</h2>
4
+ <div>
5
+ <%= f.email_field :email, :autofocus => true, :placeholder => t('carnival_devise.new.email') %>
6
+ </div>
7
+ <div>
8
+ <%= f.password_field :password, :placeholder => t('carnival_devise.new.password') %>
9
+ </div>
10
+ <div>
11
+ <%= f.submit t('carnival_devise.new.login_btn'), :class => "button" %>
12
+ </div>
13
+ <% if devise_mapping.rememberable? %>
14
+ <div>
15
+ <%= f.check_box :remember_me %>
16
+ <%= f.label t('carnival_devise.new.remember_me') %>
17
+ </div>
18
+ <% end %>
19
+ <%= render "devise/shared/links" %>
20
+ <% end %>
21
+ </div>
@@ -0,0 +1,24 @@
1
+ <% if controller_name != 'sessions' %>
2
+ <div class="sign_in">
3
+ <%= link_to t('carnival_devise.shared.enter'), new_session_path(resource_name) %>
4
+ </div>
5
+ <% end %>
6
+ <% if devise_mapping.registerable? && controller_name != 'registrations' %>
7
+ <div class="sign_up">
8
+ <%= link_to t('carnival_devise.shared.register'), new_registration_path(resource_name) %>
9
+ </div>
10
+ <% end %>
11
+ <% if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
12
+ <div class="forgot_password">
13
+ <%= link_to t('carnival_devise.shared.forgot'), new_password_path(resource_name) %>
14
+ </div>
15
+ <% end %>
16
+ <% if devise_mapping.omniauthable? %>
17
+ <div class="oauth">
18
+ <% resource_class.omniauth_providers.each do |provider| %>
19
+ <div class="<%= provider %>">
20
+ <%= link_to "#{t('carnival_devise.shared.omni')} #{provider.to_s.titleize}", admin_user_omniauth_authorize_path(provider: provider) %>
21
+ </div>
22
+ <% end %>
23
+ </div>
24
+ <% end %>
@@ -0,0 +1,9 @@
1
+ %h2= t("carnival_devise.confirmations.new")
2
+ = form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f|
3
+ = devise_error_messages!
4
+ %div
5
+ = f.label :email
6
+ %br/
7
+ = f.email_field :email, :autofocus => true
8
+ %div= f.submit t("carnival_devise.confirmations.new")
9
+ = render "devise/shared/links
@@ -0,0 +1,8 @@
1
+ %p
2
+ = t('carnival_devise.mailer.welcome')
3
+ = @email
4
+ \!
5
+ %p
6
+ = t('carnival_devise.mailer.confirm_message')
7
+ \:
8
+ %p= link_to t('carnival_devise.mailer.confirm_account'), confirmation_url(@resource, :confirmation_token => @token)
@@ -0,0 +1,14 @@
1
+ %p
2
+ = t('carnival_devise.mailer.hello')
3
+ = @resource.email
4
+ \!
5
+ %p
6
+ = t('carnival_devise.mailer.change_message')
7
+ \.
8
+ %p= link_to t('carnival_devise.mailer.change'), edit_password_url(@resource, :reset_password_token => @token)
9
+ %p
10
+ = t('carnival_devise.mailer.ignore')
11
+ \.
12
+ %p
13
+ = t('carnival_devise.mailer.wont_change')
14
+ \.
@@ -0,0 +1,11 @@
1
+ %p
2
+ = t('carnival_devise.mailer.hello')
3
+ = @resource.email
4
+ \!
5
+ %p
6
+ = t('carnival_devise.mailer.attempts')
7
+ \.
8
+ %p
9
+ = t('carnival_devise.mailer.unlock_message')
10
+ \:
11
+ %p= link_to t('carnival_devise.mailer.unlock'), unlock_url(@resource, :unlock_token => @token)
@@ -0,0 +1,14 @@
1
+ %h2= t('carnival_devise.passwords.change_message')
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
+ %div
6
+ = f.label :password, t('carnival_devise.passwords.new')
7
+ %br/
8
+ = f.password_field :password, :autofocus => true
9
+ %div
10
+ = f.label :password_confirmation, t('carnival_devise.passwords.confirm')
11
+ %br/
12
+ = f.password_field :password_confirmation
13
+ %div= f.submit t('carnival_devise.passwords.change')
14
+ = render "devise/shared/links"
@@ -0,0 +1,11 @@
1
+ %h2
2
+ = t('carnival_devise.passwords.forgot')
3
+ ?
4
+ = form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f|
5
+ = devise_error_messages!
6
+ %div
7
+ = f.label :email
8
+ %br/
9
+ = f.email_field :email, :autofocus => true
10
+ %div= f.submit t('carnival_devise.passwords.send_reset_instructions')
11
+ = render "devise/shared/links"
@@ -0,0 +1,33 @@
1
+ %h2
2
+ = t('carnival_devise.registrations.edit')
3
+ = resource_name.to_s.humanize
4
+ = form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f|
5
+ = devise_error_messages!
6
+ %div
7
+ = f.label :email
8
+ %br/
9
+ = f.email_field :email, :autofocus => true
10
+ - if devise_mapping.confirmable? && resource.pending_reconfirmation?
11
+ %div
12
+ Currently waiting confirmation for: #{resource.unconfirmed_email}
13
+ %div
14
+ = f.label :password
15
+ %i
16
+ ( #{t('carnival_devise.registrations.blank_message')} )
17
+ %br/
18
+ = f.password_field :password, :autocomplete => "off"
19
+ %div
20
+ = f.label :password_confirmation
21
+ %br/
22
+ = f.password_field :password_confirmation
23
+ %div
24
+ = f.label :current_password
25
+ %i
26
+ ( #{t('carnival_devise.registrations.confirm')} )
27
+ %br/
28
+ = f.password_field :current_password
29
+ %div= f.submit t('carnival_devise.registrations.update')
30
+ %h3= t('carnival_devise.registrations.cancel')
31
+ %p
32
+ Unhappy? #{button_to t('carnival_devise.registrations.cancel') , registration_path(resource_name), :data => { :confirm => "Are you sure?" }, :method => :delete}
33
+ = link_to t('carnival_devise.back'), :back
@@ -0,0 +1,17 @@
1
+ %h2= t('carnival_devise.sign_up')
2
+ = form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f|
3
+ = devise_error_messages!
4
+ %div
5
+ = f.label :email
6
+ %br/
7
+ = f.email_field :email, :autofocus => true
8
+ %div
9
+ = f.label :password
10
+ %br/
11
+ = f.password_field :password
12
+ %div
13
+ = f.label :password_confirmation
14
+ %br/
15
+ = f.password_field :password_confirmation
16
+ %div= f.submit t('carnival_devise.sign_up')
17
+ = render "devise/shared/links"
@@ -0,0 +1,13 @@
1
+ .login-container
2
+ = form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
3
+ %h2 Efetuar login
4
+ %div
5
+ = f.email_field :email, :autofocus => true, :placeholder => t('carnival_devise.new.email')
6
+ %div
7
+ = f.password_field :password, :placeholder => t('carnival_devise.new.password')
8
+ %div= f.submit t('carnival_devise.new.login_btn'), :class => "button"
9
+ - if devise_mapping.rememberable?
10
+ %div
11
+ = f.check_box :remember_me
12
+ = f.label t('carnival_devise.new.remember_me')
13
+ = render "devise/shared/links"
@@ -0,0 +1,14 @@
1
+ - if controller_name != 'sessions'
2
+ .sign_in
3
+ = link_to t('carnival_devise.shared.enter'), new_session_path(resource_name)
4
+ - if devise_mapping.registerable? && controller_name != 'registrations'
5
+ .sign_up
6
+ = link_to t('carnival_devise.shared.register'), new_registration_path(resource_name)
7
+ - if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations'
8
+ .forgot_password
9
+ = link_to t('carnival_devise.shared.forgot'), new_password_path(resource_name)
10
+ - if devise_mapping.omniauthable?
11
+ .oauth
12
+ - resource_class.omniauth_providers.each do |provider|
13
+ %div{class: provider}
14
+ = link_to "#{t('carnival_devise.shared.omni')} #{provider.to_s.titleize}", admin_user_omniauth_authorize_path(provider: provider)
@@ -0,0 +1,12 @@
1
+ <h2>Resend unlock instructions</h2>
2
+
3
+ <%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %>
4
+ <%= devise_error_messages! %>
5
+
6
+ <div><%= f.label :email %><br />
7
+ <%= f.email_field :email, :autofocus => true %></div>
8
+
9
+ <div><%= f.submit "Resend unlock instructions" %></div>
10
+ <% end %>
11
+
12
+ <%= render "devise/shared/links" %>
@@ -0,0 +1,42 @@
1
+ en:
2
+ carnival_devise:
3
+ confirmations:
4
+ new: Resend confirmation instructions
5
+ user: User
6
+ mailer:
7
+ welcome: Welcome
8
+ hello: Hello
9
+ confirm_message: You can confirm your email account the link below
10
+ confirm_account: Confirm my account
11
+ change_message: Someone has requested a link to change your password. You can do this through the link below
12
+ change: Change my Password
13
+ ignore: If you didn't request this, please ignore this email
14
+ wont_change: Your password won't change until you access the link above and create a new one
15
+ attempts: Your account has been locked due to an excessive number of unsuccessful sign in attempts
16
+ unlock_message: Click the link below to unlock your account
17
+ unlock: Unlock my account
18
+ passwords:
19
+ new: New password
20
+ confirm: Confirm new password
21
+ change_message: Change your password
22
+ forgot: Forgot your password
23
+ send_reset_instruction: Send me reset password instructions
24
+ change: Change my password
25
+ registrations:
26
+ edit: Edit
27
+ blank_message: leave blank if you don't want to change it
28
+ confirm: we need your current password to confirm your changes
29
+ update: Update
30
+ cancel: Cancel my account
31
+ back: Back
32
+ sign_up: Sign up
33
+ new:
34
+ email: Email
35
+ password: Password
36
+ login_btn: Login
37
+ remember_me: Remember me
38
+ shared:
39
+ enter: Enter
40
+ register: Register
41
+ forgot: Forgot my password
42
+ omni: Login with
@@ -0,0 +1,42 @@
1
+ pt-BR:
2
+ carnival_devise:
3
+ user: Usuário
4
+ confirmations:
5
+ new: Reenviar instruções de confirmação
6
+ mailer:
7
+ welcome: Bem Vindo
8
+ hello: Oi
9
+ confirm_message: Você pode confirmar a sua conta de email atravéd do link abaixo
10
+ confirm_account: Confirme a minha conta
11
+ change_message: Alguém solicitou um link para alterar a sua senha. Você pode fazer isso através do link abaixo
12
+ change: Mudar a minha senha
13
+ ignore: Se você não solicitou isso, Por favor ignorar esse email
14
+ wont_change: Sua senha não irá mudar até que você acesse o link abaixo e crie uma nova
15
+ attempts: Sua conta foi bloqueada devido a um numero excessivo de tentativas sem sucesso
16
+ unlock_message: Clique no link abaixo para desbloquear a sua conta
17
+ unlock: Desbloquear a minha conta
18
+ passwords:
19
+ new: Nova senha
20
+ confirm: Confime nova senha
21
+ change_message: Alterar sua senha
22
+ forgot: Esqueci minha senha
23
+ send_reset_instruction: Me envie as instruções de resetar senha
24
+ change: Alterar minha senha
25
+ registrations:
26
+ edit: Editar
27
+ blank_message: deixe em branco se você não quiser alterar isso
28
+ confirm: nós precisamos da sua senha atual para confirmar as mudanças
29
+ update: Atualizar
30
+ cancel: Cancelar minha conta
31
+ back: Voltar
32
+ sign_up: Sign up
33
+ new:
34
+ email: Email
35
+ password: Senha
36
+ login_btn: Entrar
37
+ remember_me: Permanecer conectado
38
+ shared:
39
+ enter: Entrar
40
+ register: Registrar
41
+ forgot: Esqueci minha senha
42
+ omni: Logar com
@@ -0,0 +1,5 @@
1
+ require "carnival_devise_views/version"
2
+
3
+ module CarnivalDeviseViews
4
+ # Your code goes here...
5
+ end