further foundation refactor
This commit is contained in:
@@ -8,5 +8,5 @@ $ ->
|
||||
relative_urls: false
|
||||
removed_menuitems: 'newdocument'
|
||||
$('.editor_basic').tinymce
|
||||
theme: 'simple'
|
||||
theme: 'modern'
|
||||
language: tinymce_language
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
ul.nav.nav-pills
|
||||
- if controller_name != 'sessions'
|
||||
li= link_to t('devise.sessions.button'), new_session_path(resource_name), class: [:devise, :btn]
|
||||
li= link_to t('devise.sessions.button'), new_session_path(resource_name), class: [:devise, :button]
|
||||
|
||||
- if devise_mapping.registerable? && controller_name != 'registrations'
|
||||
li= link_to t('devise.registrations.button'), new_registration_path(resource_name), class: [:devise, :btn]
|
||||
li= link_to t('devise.registrations.button'), new_registration_path(resource_name), class: [:devise, :button]
|
||||
|
||||
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
||||
li= link_to t('devise.sessions.forgot_your_password'), new_password_path(resource_name), class: [:devise, :btn]
|
||||
li= link_to t('devise.sessions.forgot_your_password'), new_password_path(resource_name), class: [:devise, :button]
|
||||
|
||||
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
||||
li= link_to t('devise.confirmations.did_not_receive_instructions_link'), new_confirmation_path(resource_name), class: [:devise, :btn]
|
||||
li= link_to t('devise.confirmations.did_not_receive_instructions_link'), new_confirmation_path(resource_name), class: [:devise, :button]
|
||||
|
||||
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
|
||||
li= link_to t('devise.unlocks.did_not_receive_instructions_link'), new_unlock_path(resource_name), class: [:devise, :btn]
|
||||
li= link_to t('devise.unlocks.did_not_receive_instructions_link'), new_unlock_path(resource_name), class: [:devise, :button]
|
||||
|
||||
- if devise_mapping.omniauthable?
|
||||
- resource_class.omniauth_providers.each do |provider|
|
||||
li= link_to t('devise.omniauth_callbacks.sign_in_with', provider: provider.to_s.titleize), omniauth_authorize_path(resource_name, provider), class: [:devise, :btn]
|
||||
li= link_to t('devise.omniauth_callbacks.sign_in_with', provider: provider.to_s.titleize), omniauth_authorize_path(resource_name, provider), class: [:devise, :button]
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_show_content(@contact_form), cmtool.contact_form_path(@contact_form), class: ['btn', 'btn-info']
|
||||
li= link_to link_to_index_content(Cmtool::ContactForm), cmtool.contact_forms_path, class: [:btn]
|
||||
li= link_to link_to_show_content(@contact_form), cmtool.contact_form_path(@contact_form), class: 'record-show-button'
|
||||
li= link_to link_to_index_content(Cmtool::ContactForm), cmtool.contact_forms_path, class: 'to-index-button'
|
||||
|
||||
@@ -23,4 +23,4 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_new_content(Cmtool::ContactForm), cmtool.new_contact_form_path, class: ['btn', 'btn-primary']
|
||||
li= link_to link_to_new_content(Cmtool::ContactForm), cmtool.new_contact_form_path, class: 'record-new-button'
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
= render 'form', :submit => create_button_text(@contact_form)
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_index_content(Cmtool::ContactForm), cmtool.contact_forms_path, class: [:btn]
|
||||
li= link_to link_to_index_content(Cmtool::ContactForm), cmtool.contact_forms_path, class: 'to-index-button'
|
||||
|
||||
@@ -17,5 +17,5 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_edit_content(@contact_form), cmtool.edit_contact_form_path(@contact_form), class: ['btn', 'btn-warning']
|
||||
li= link_to link_to_index_content(Cmtool::ContactForm), cmtool.contact_forms_path, class: [:btn]
|
||||
li= link_to link_to_edit_content(@contact_form), cmtool.edit_contact_form_path(@contact_form), class: 'record-edit-button'
|
||||
li= link_to link_to_index_content(Cmtool::ContactForm), cmtool.contact_forms_path, class: 'to-index-button'
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_show_content(@directory), cmtool.directory_path(@directory), class: ['btn', 'btn-info']
|
||||
li= link_to link_to_index_content(Cmtool::Directory), cmtool.directories_path, class: [:btn]
|
||||
li= link_to link_to_show_content(@directory), cmtool.directory_path(@directory), class: 'record-show-button'
|
||||
li= link_to link_to_index_content(Cmtool::Directory), cmtool.directories_path, class: 'to-index-button'
|
||||
|
||||
@@ -17,4 +17,4 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_new_content(Cmtool::Directory), cmtool.new_directory_path, class: ['btn', 'btn-primary']
|
||||
li= link_to link_to_new_content(Cmtool::Directory), cmtool.new_directory_path, class: 'record-new-button'
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_index_content(Cmtool::Directory), cmtool.directories_path, class: [:btn]
|
||||
li= link_to link_to_index_content(Cmtool::Directory), cmtool.directories_path, class: 'to-index-button'
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
= f.hidden_field :directory_id
|
||||
= f.file_field :file
|
||||
.modal-footer
|
||||
a.btn.btn-inverse href: '#', role: :button, data: {dismiss: :modal}, 'aria-hidden' => true x
|
||||
= f.submit t('cmtool.directory.add_image.label', image: Cmtool::Image.model_name.human), class: ['btn', 'btn-success']
|
||||
a.secondary.button href: '#', role: :button, data: {dismiss: :modal}, 'aria-hidden' => true x
|
||||
= f.submit t('cmtool.directory.add_image.label', image: Cmtool::Image.model_name.human), class: 'record-new-button'
|
||||
.directory.caption= "/# @directory.tree_path.map{|d| link_to(d.name, cmtool.directory_path(d))}.join('/') ".html_safe
|
||||
table#directory-view.table.table-striped.table-hover
|
||||
thead
|
||||
@@ -31,6 +31,6 @@ table#directory-view.table.table-striped.table-hover
|
||||
ul
|
||||
- if @directory.parent
|
||||
li= link_to '..', cmtool.directory_path(@directory.parent)
|
||||
li= link_to link_to_edit_content(@directory), cmtool.edit_directory_path(@directory), class: ['btn', 'btn-warning']
|
||||
li= link_to link_to_index_content(Cmtool::Directory), cmtool.directories_path, class: [:btn]
|
||||
li= link_to t('cmtool.directory.add_file'), '#add-image-container', class: ['btn', 'btn-success'], role: :button, data: toggle: :modal
|
||||
li= link_to link_to_edit_content(@directory), cmtool.edit_directory_path(@directory), class: 'record-edit-button'
|
||||
li= link_to link_to_index_content(Cmtool::Directory), cmtool.directories_path, class: 'to-index-button'
|
||||
li= link_to t('cmtool.directory.add_file'), '#add-image-container', class: 'record-new-button', role: :button, data: toggle: :modal
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_show_content(@faq), cmtool.faq_path(@faq), class: ['btn', 'btn-info']
|
||||
li= link_to link_to_index_content(Cmtool::Faq), cmtool.faqs_path, class: [:btn]
|
||||
li= link_to link_to_show_content(@faq), cmtool.faq_path(@faq), class: 'record-show-button'
|
||||
li= link_to link_to_index_content(Cmtool::Faq), cmtool.faqs_path, class: 'to-index-button'
|
||||
|
||||
@@ -19,4 +19,4 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_new_content(Cmtool::Faq), cmtool.new_faq_path, class: ['btn', 'btn-primary']
|
||||
li= link_to link_to_new_content(Cmtool::Faq), cmtool.new_faq_path, class: 'record-new-button'
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_index_content(Cmtool::Faq), cmtool.faqs_path, class: [:btn]
|
||||
li= link_to link_to_index_content(Cmtool::Faq), cmtool.faqs_path, class: 'to-index-button'
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_edit_content(@faq), cmtool.edit_faq_path(@faq), class: ['btn', 'btn-warning']
|
||||
li= link_to link_to_edit_content(@faq), cmtool.edit_faq_path(@faq), class: 'record-edit-button'
|
||||
|
||||
li= link_to link_to_index_content(Cmtool::Faq), cmtool.faqs_path, class: [:btn]
|
||||
li= link_to link_to_index_content(Cmtool::Faq), cmtool.faqs_path, class: 'to-index-button'
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_show_content(@image), cmtool.image_path(@image), class: ['btn', 'btn-info']
|
||||
li= link_to link_to_index_content(Cmtool::Image), cmtool.images_path, class: [:btn]
|
||||
li= link_to link_to_show_content(@image), cmtool.image_path(@image), class: 'record-show-button'
|
||||
li= link_to link_to_index_content(Cmtool::Image), cmtool.images_path, class: 'to-index-button'
|
||||
|
||||
@@ -27,4 +27,4 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_new_content(Cmtool::Image), cmtool.new_image_path, class: ['btn', 'btn-primary']
|
||||
li= link_to link_to_new_content(Cmtool::Image), cmtool.new_image_path, class: 'record-new-button'
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_index_content(Cmtool::Image), cmtool.images_path, class: [:btn]
|
||||
li= link_to link_to_index_content(Cmtool::Image), cmtool.images_path, class: 'to-index-button'
|
||||
|
||||
@@ -17,6 +17,6 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_edit_content(@image), cmtool.edit_image_path(@image), class: ['btn', 'btn-warning']
|
||||
li= link_to link_to_new_content(Cmtool::Image), cmtool.new_image_path, class: ['btn', 'btn-primary']
|
||||
li= link_to link_to_index_content(Cmtool::Image), cmtool.images_path, class: [:btn]
|
||||
li= link_to link_to_edit_content(@image), cmtool.edit_image_path(@image), class: 'record-edit-button'
|
||||
li= link_to link_to_new_content(Cmtool::Image), cmtool.new_image_path, class: 'record-new-button'
|
||||
li= link_to link_to_index_content(Cmtool::Image), cmtool.images_path, class: 'to-index-button'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
= form_for [cmtool, @news], :html => {:multipart => true} do |f|
|
||||
= render 'error_messages', :target => @news
|
||||
= form_for [cmtool, @news], html: {multipart: true} do |f|
|
||||
= render 'error_messages', target: @news
|
||||
.field
|
||||
= f.label :title
|
||||
= f.text_field :title
|
||||
@@ -12,11 +12,11 @@
|
||||
| (yyyy-mm-dd)
|
||||
.field
|
||||
= f.label :body
|
||||
= f.text_area :body, :class => 'editor_full'
|
||||
= f.text_area :body, class: 'editor_full'
|
||||
.field
|
||||
= f.label :image
|
||||
= f.file_field :image
|
||||
.field
|
||||
= render "cmtool/keywords/habtm", :subject => @news
|
||||
= render "cmtool/keywords/habtm", subject: @news
|
||||
.actions
|
||||
= f.submit @submit || update_button_text(@news)
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_show_content(@news), cmtool.news_path(@news), class: ['btn', 'btn-info']
|
||||
li= link_to link_to_index_content(Cmtool::News), cmtool.news_index_path, class: [:btn]
|
||||
li= link_to link_to_show_content(@news), cmtool.news_path(@news), class: 'record-show-button'
|
||||
li= link_to link_to_index_content(Cmtool::News), cmtool.news_index_path, class: 'to-index-button'
|
||||
|
||||
@@ -21,4 +21,4 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_new_content(Cmtool::News), cmtool.new_news_path, class: ['btn', 'btn-primary']
|
||||
li= link_to link_to_new_content(Cmtool::News), cmtool.new_news_path, class: 'record-new-button'
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_index_content(Cmtool::News), cmtool.news_index_path, class: [:btn]
|
||||
li= link_to link_to_index_content(Cmtool::News), cmtool.news_index_path, class: 'to-index-button'
|
||||
|
||||
@@ -24,5 +24,5 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_edit_content(@news), cmtool.edit_news_path(@news), class: ['btn', 'btn-warning']
|
||||
li= link_to link_to_index_content(Cmtool::News), cmtool.news_index_path, class: [:btn]
|
||||
li= link_to link_to_edit_content(@news), cmtool.edit_news_path(@news), class: 'record-edit-button'
|
||||
li= link_to link_to_index_content(Cmtool::News), cmtool.news_index_path, class: 'to-index-button'
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_show_content(@newsletter_subscription), cmtool.newsletter_subscription_path(@newsletter_subscription), class: ['btn', 'btn-info']
|
||||
li= link_to link_to_index_content(Cmtool::NewsletterSubscription), cmtool.newsletter_subscriptions_path, class: [:btn]
|
||||
li= link_to link_to_show_content(@newsletter_subscription), cmtool.newsletter_subscription_path(@newsletter_subscription), class: 'record-show-button'
|
||||
li= link_to link_to_index_content(Cmtool::NewsletterSubscription), cmtool.newsletter_subscriptions_path, class: 'to-index-button'
|
||||
|
||||
@@ -21,4 +21,4 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_new_content(Cmtool::NewsletterSubscription), cmtool.new_newsletter_subscription_path, class: ['btn', 'btn-primary']
|
||||
li= link_to link_to_new_content(Cmtool::NewsletterSubscription), cmtool.new_newsletter_subscription_path, class: 'record-new-button'
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_index_content(Cmtool::NewsletterSubscription), cmtool.newsletter_subscriptions_path, class: [:btn]
|
||||
li= link_to link_to_index_content(Cmtool::NewsletterSubscription), cmtool.newsletter_subscriptions_path, class: 'to-index-button'
|
||||
|
||||
@@ -11,5 +11,5 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_edit_content(@newsletter_subscription), cmtool.edit_newsletter_subscription_path(@newsletter_subscription), class: ['btn', 'btn-warning']
|
||||
li= link_to link_to_index_content(Cmtool::NewsletterSubscription), cmtool.newsletter_subscriptions_path, class: [:btn]
|
||||
li= link_to link_to_edit_content(@newsletter_subscription), cmtool.edit_newsletter_subscription_path(@newsletter_subscription), class: 'record-edit-button'
|
||||
li= link_to link_to_index_content(Cmtool::NewsletterSubscription), cmtool.newsletter_subscriptions_path, class: 'to-index-button'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
= form_for [cmtool, @page] do |f|
|
||||
= render 'error_messages', :target => @page
|
||||
= render 'error_messages', target: @page
|
||||
.form-row
|
||||
.form-label= f.label :name
|
||||
.form-field.full
|
||||
@@ -22,13 +22,13 @@
|
||||
.form-field= f.select :locale, Page.locales
|
||||
.form-row
|
||||
= f.label :body
|
||||
= f.text_area :body, :rows => 30, :cols => 80, :class => 'editor_full'
|
||||
= f.text_area :body, rows: 30, cols: 80, class: 'editor_full'
|
||||
.field
|
||||
= f.label :footer
|
||||
= f.text_area :footer, :rows => 15, :cols => 80, :class => 'editor_full'
|
||||
= f.text_area :footer, rows: 15, cols: 80, class: 'editor_full'
|
||||
.field
|
||||
= f.label :sidebar
|
||||
= f.text_area :sidebar, :rows => 15, :cols => 80, :class => 'editor_full'
|
||||
= f.text_area :sidebar, rows: 15, cols: 80, class: 'editor_full'
|
||||
.form-row
|
||||
.form-label= f.label :parent_id
|
||||
.form-field= f.select :parent_id, tree_options_for_select(Page.full_tree(@page.locale || Page.locales.first), exclude: @page.id, selected: @page.parent_id), include_blank: ' -- '
|
||||
@@ -42,7 +42,7 @@
|
||||
.form-label= f.label :in_menu
|
||||
.form-field= f.check_box :in_menu
|
||||
.field
|
||||
= render "cmtool/keywords/habtm", :subject => @page
|
||||
= render "cmtool/keywords/habtm", subject: @page
|
||||
.form-row: .form-actions
|
||||
= f.submit @submit || update_button_text(f.object), class: 'button'
|
||||
-#= button_tag 'Preview (unsupported)', onclick: %{$('form').attr('action', '/' + $('#page_name').val()).submit();}
|
||||
|
||||
@@ -10,5 +10,5 @@ h2= t('devise.passwords.edit.title')
|
||||
.controls= f.password_field :password_confirmation
|
||||
.control-group
|
||||
.controls
|
||||
= f.submit t('devise.passwords.edit.button'), class: 'btn btn-primary'
|
||||
= f.submit t('devise.passwords.edit.button'), class: 'record-edit-button'
|
||||
= render "devise_links"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
= form_for [cmtool, @quote], :html => {:multipart => true} do |f|
|
||||
= render 'error_messages', :target => @quote
|
||||
= form_for [cmtool, @quote], html: {multipart: true} do |f|
|
||||
= render 'error_messages', target: @quote
|
||||
.field
|
||||
= f.label :owner
|
||||
= f.text_field :owner
|
||||
@@ -14,7 +14,7 @@
|
||||
= f.file_field :image
|
||||
.field
|
||||
= f.label :body
|
||||
= f.text_area :body, :rows => 8, :class => 'mceEditor'
|
||||
= f.text_area :body, rows: 8, class: 'editor_basic'
|
||||
.field
|
||||
= f.label :active
|
||||
= f.check_box :active
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_show_content(@quote), cmtool.quote_path(@quote), class: ['btn', 'btn-info']
|
||||
li= link_to link_to_index_content(Cmtool::Quote), cmtool.quotes_path, class: [:btn]
|
||||
li= link_to link_to_show_content(@quote), cmtool.quote_path(@quote), class: 'record-show-button'
|
||||
li= link_to link_to_index_content(Cmtool::Quote), cmtool.quotes_path, class: 'to-index-button'
|
||||
|
||||
@@ -23,4 +23,4 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_new_content(Cmtool::Quote), cmtool.new_quote_path, class: ['btn', 'btn-primary']
|
||||
li= link_to link_to_new_content(Cmtool::Quote), cmtool.new_quote_path, class: 'record-new-button'
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_index_content(Cmtool::Quote), cmtool.quotes_path, class: [:btn]
|
||||
li= link_to link_to_index_content(Cmtool::Quote), cmtool.quotes_path, class: 'to-index-button'
|
||||
|
||||
@@ -21,5 +21,5 @@
|
||||
|
||||
- content_for :page_links do
|
||||
ul
|
||||
li= link_to link_to_edit_content(@quote), cmtool.edit_quote_path(@quote), class: ['btn', 'btn-warning']
|
||||
li= link_to link_to_index_content(Cmtool::Quote), cmtool.quotes_path, class: [:btn]
|
||||
li= link_to link_to_edit_content(@quote), cmtool.edit_quote_path(@quote), class: 'record-edit-button'
|
||||
li= link_to link_to_index_content(Cmtool::Quote), cmtool.quotes_path, class: 'to-index-button'
|
||||
|
||||
@@ -15,5 +15,5 @@ h2= t('devise.sessions.title')
|
||||
= t('devise.sessions.remember_me')
|
||||
.control-group
|
||||
.controls
|
||||
= f.submit t('devise.sessions.button'), class: 'btn btn-primary'
|
||||
= f.submit t('devise.sessions.button'), class: 'button'
|
||||
= render "devise_links"
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<h2>Resend confirmation instructions</h2>
|
||||
|
||||
<%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| %>
|
||||
<%= devise_error_messages! %>
|
||||
|
||||
<div><%= f.label :email %><br />
|
||||
<%= f.email_field :email %></div>
|
||||
|
||||
<div><%= f.submit "Resend confirmation instructions" %></div>
|
||||
<% end %>
|
||||
|
||||
<%= render "devise_links" %>
|
||||
@@ -1,5 +0,0 @@
|
||||
<p>Welcome <%= @resource.email %>!</p>
|
||||
|
||||
<p>You can confirm your account email through the link below:</p>
|
||||
|
||||
<p><%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %></p>
|
||||
@@ -1,8 +0,0 @@
|
||||
<p>Hello <%= @resource.email %>!</p>
|
||||
|
||||
<p>Someone has requested a link to change your password, and you can do this through the link below.</p>
|
||||
|
||||
<p><%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %></p>
|
||||
|
||||
<p>If you didn't request this, please ignore this email.</p>
|
||||
<p>Your password won't change until you access the link above and create a new one.</p>
|
||||
@@ -1,7 +0,0 @@
|
||||
<p>Hello <%= @resource.email %>!</p>
|
||||
|
||||
<p>Your account has been locked due to an excessive amount of unsuccessful sign in attempts.</p>
|
||||
|
||||
<p>Click the link below to unlock your account:</p>
|
||||
|
||||
<p><%= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @resource.unlock_token) %></p>
|
||||
@@ -1,14 +0,0 @@
|
||||
h2= t('devise.passwords.edit.title')
|
||||
= form_for(resource, :as => resource_name, :url => password_path(resource_name), html: {class: 'form-horizontal', method: :put}) do |f|
|
||||
= devise_error_messages!
|
||||
= f.hidden_field :reset_password_token
|
||||
.control-group
|
||||
= f.label :password, class: 'control-label'
|
||||
.controls= f.password_field :password
|
||||
.control-group
|
||||
= f.label :password_confirmation, class: 'control-label'
|
||||
.controls= f.password_field :password_confirmation
|
||||
.control-group
|
||||
.controls
|
||||
= f.submit t('devise.passwords.edit.button'), class: 'btn btn-primary'
|
||||
= render "devise_links"
|
||||
@@ -1,10 +0,0 @@
|
||||
h2= t('devise.passwords.title')
|
||||
= form_for(resource, :as => resource_name, :url => password_path(resource_name), html: {class: 'form-horizontal'}) do |f|
|
||||
= devise_error_messages!
|
||||
.control-group
|
||||
= f.label :email, class: 'control-label'
|
||||
.controls= f.email_field :email
|
||||
.control-group
|
||||
.controls
|
||||
= f.submit t('devise.passwords.button'), class: 'btn btn-primary'
|
||||
= render "devise_links"
|
||||
@@ -1,25 +0,0 @@
|
||||
<h2>Edit <%= resource_name.to_s.humanize %></h2>
|
||||
|
||||
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
|
||||
<%= devise_error_messages! %>
|
||||
|
||||
<div><%= f.label :email %><br />
|
||||
<%= f.email_field :email %></div>
|
||||
|
||||
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
|
||||
<%= f.password_field :password, :autocomplete => "off" %></div>
|
||||
|
||||
<div><%= f.label :password_confirmation %><br />
|
||||
<%= f.password_field :password_confirmation %></div>
|
||||
|
||||
<div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
|
||||
<%= f.password_field :current_password %></div>
|
||||
|
||||
<div><%= f.submit "Update" %></div>
|
||||
<% end %>
|
||||
|
||||
<h3>Cancel my account</h3>
|
||||
|
||||
<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.</p>
|
||||
|
||||
<%= link_to "Back", :back %>
|
||||
@@ -1,16 +0,0 @@
|
||||
h2= t('devise.registrations.title')
|
||||
= form_for(resource, :as => resource_name, :url => registration_path(resource_name), html: {class: 'form-horizontal'}) do |f|
|
||||
= devise_error_messages!
|
||||
.control-group
|
||||
= f.label :email, class: 'control-label'
|
||||
.controls= f.email_field :email
|
||||
.control-group
|
||||
= f.label :password, class: 'control-label'
|
||||
.controls= f.password_field :password
|
||||
.control-group
|
||||
= f.label :password_confirmation, class: 'control-label'
|
||||
.controls= f.password_field :password_confirmation
|
||||
.control-group
|
||||
.controls
|
||||
= f.submit t('devise.registrations.button'), class: 'btn btn-primary'
|
||||
= render "devise_links"
|
||||
@@ -1,19 +0,0 @@
|
||||
h2= t('devise.sessions.title')
|
||||
= form_for(resource, :as => resource_name, :url => session_path(resource_name), html: {class: 'form-horizontal'}) do |f|
|
||||
= devise_error_messages!
|
||||
.control-group
|
||||
= f.label :email, class: 'control-label'
|
||||
.controls= f.email_field :email
|
||||
.control-group
|
||||
= f.label :password, class: 'control-label'
|
||||
.controls= f.password_field :password
|
||||
.control-group
|
||||
.controls
|
||||
= f.label :remember_me do
|
||||
= f.check_box :remember_me
|
||||
|
|
||||
= t('devise.sessions.remember_me')
|
||||
.control-group
|
||||
.controls
|
||||
= f.submit t('devise.sessions.button'), class: 'btn btn-primary'
|
||||
= render "devise_links"
|
||||
@@ -1,12 +0,0 @@
|
||||
<h2>Resend unlock instructions</h2>
|
||||
|
||||
<%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %>
|
||||
<%= devise_error_messages! %>
|
||||
|
||||
<div><%= f.label :email %><br />
|
||||
<%= f.email_field :email %></div>
|
||||
|
||||
<div><%= f.submit "Resend unlock instructions" %></div>
|
||||
<% end %>
|
||||
|
||||
<%= render "devise_links" %>
|
||||
@@ -30,7 +30,7 @@ html lang="en"
|
||||
= content_for?(:content) ? yield(:content) : yield
|
||||
- if content_for?(:page_links)
|
||||
#sub-navigation-container= yield(:page_links)
|
||||
.show-for-large-only.large-3.columns
|
||||
.show-for-large-up.large-3.columns
|
||||
.panel.sidebar-nav
|
||||
h3= content_for?(:page_title) ? yield(:page_title) : application_title
|
||||
ul.nav.nav-list
|
||||
|
||||
Reference in New Issue
Block a user