Saturday progress
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
ul.nav.nav-pills
|
||||
- if controller_name != 'sessions'
|
||||
li= link_to t('devise.sessions.button'), new_session_path(resource_name), class: [:devise, :btn]
|
||||
|
||||
- if devise_mapping.registerable? && controller_name != 'registrations'
|
||||
li= link_to t('devise.registrations.button'), new_registration_path(resource_name), class: [:devise, :btn]
|
||||
|
||||
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
||||
li= link_to t('devise.sessions.forgot_your_password'), new_password_path(resource_name), class: [:devise, :btn]
|
||||
|
||||
- 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]
|
||||
|
||||
- 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]
|
||||
|
||||
- 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]
|
||||
@@ -14,7 +14,7 @@ form action='' method="get"
|
||||
th= Table.model_name.human
|
||||
th.currency= model_class.human_attribute_name(:price)
|
||||
th.timestamp= model_class.human_attribute_name(:created_at)
|
||||
th.actions=t 'helpers.actions'
|
||||
th.actions=t 'helpers.actions.title'
|
||||
tbody
|
||||
- @lists.each do |list|
|
||||
tr
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
table.table
|
||||
thead
|
||||
tr
|
||||
th= model_class.human_attribute_name(:name)
|
||||
th= model_class.human_attribute_name(:code)
|
||||
th.currency= model_class.human_attribute_name(:price)
|
||||
th= ProductCategory.model_name.human_plural
|
||||
th.timestamp= model_class.human_attribute_name(:created_at)
|
||||
th.actions=t 'helpers.actions'
|
||||
th data-t="attributes.product.name" = model_class.human_attribute_name(:name)
|
||||
th data-t="attributes.product.code" = model_class.human_attribute_name(:code)
|
||||
th.currency data-t="attributes.product.price" = model_class.human_attribute_name(:price)
|
||||
th data-t="models.product_category" = ProductCategory.model_name.human_plural
|
||||
th.timestamp data-t="attributes.product.created_at" = model_class.human_attribute_name(:created_at)
|
||||
th.actions data-t="helpers.actions.title" =t 'helpers.actions.title'
|
||||
tbody
|
||||
- @products.each do |product|
|
||||
tr
|
||||
@@ -26,4 +26,4 @@
|
||||
- else
|
||||
= no_content_given model_class
|
||||
= link_to t("helpers.links.new"), new_suppliers_product_path(product_category_id: @product_category.try(:id)), class: 'btn btn-primary'
|
||||
|
||||
/a.btn.btn-primary data-t="helpers.links.new" href=new_suppliers_product_path
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
h2= t('devise.registrations.title')
|
||||
p
|
||||
|
|
||||
Leuk dat je je wilt aanmelden voor Qwaiter. Na de aanmelding zal er een bevestigings e-mail worden gestuurd
|
||||
om het e-mailadres te bevestigen. Hierna kan je aan de slag met mobiel bestellen!
|
||||
= form_for(resource, :as => resource_name, :url => registration_path(resource_name), html: {class: 'form-horizontal'}) do |f|
|
||||
= devise_error_messages!
|
||||
.control-group
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
th.numeric data-t='attributes.section.width' = model_class.human_attribute_name(:width)
|
||||
th.numeric data-t='attributes.section.height' = model_class.human_attribute_name(:height)
|
||||
th.timestamp data-t='attributes.section.created_at' = model_class.human_attribute_name(:created_at)
|
||||
th.actions data-t='helpers.actions' = t 'helpers.actions'
|
||||
th.actions data-t='helpers.actions.title' = t 'helpers.actions.title'
|
||||
tbody
|
||||
- @sections.each do |section|
|
||||
tr
|
||||
|
||||
@@ -1,14 +1,22 @@
|
||||
- model_class = Table
|
||||
div.page-header= title :index, model_class
|
||||
= form_tag({}, method: :get) do
|
||||
label.number for="filter-from_number" data-t="attributes.table.from_number"
|
||||
input#filter-from_number.number type="number" size=4 value=params[:from_number] name="from_number"
|
||||
label.number for="filter-to_number" data-t="attributes.table.to_number"
|
||||
input#filter-to_number.number type="number" size=4 value=params[:to_number] name="to_number"
|
||||
'
|
||||
= submit_tag 'Filter'
|
||||
.well
|
||||
- if @tables.any?
|
||||
= paginate @tables
|
||||
table.table
|
||||
thead
|
||||
tr
|
||||
th.link data-t="attributes.table.number"= model_class.human_attribute_name(:number)
|
||||
th.link data-t="models.section"= Section.model_name.human
|
||||
th.timestamp data-t="attributes.table.created_at"= model_class.human_attribute_name(:created_at)
|
||||
th.actions data-t="helpers.actions"=t 'helpers.actions'
|
||||
th.actions data-t="helpers.actions.title"=t 'helpers.actions.title'
|
||||
tbody
|
||||
- @tables.each do |table|
|
||||
tr
|
||||
|
||||
Reference in New Issue
Block a user