diff options
author | Angel Perez <iAngel.p93@gmail.com> | 2018-12-13 11:40:37 +0100 |
---|---|---|
committer | Angel Perez <iAngel.p93@gmail.com> | 2018-12-13 11:40:37 +0100 |
commit | f280ffb3afba61100d84c3f162efd5d7fdf40da1 (patch) | |
tree | deea0eb358384859a233f0fd995d6af2844562ed /app/views/spree/admin/subscriptions/index.html.erb | |
parent | 0da51ca0a14199ba5b7ca42177ed9e6799a0bf4f (diff) |
Fix all deprecations warnings
Diffstat (limited to 'app/views/spree/admin/subscriptions/index.html.erb')
-rw-r--r-- | app/views/spree/admin/subscriptions/index.html.erb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/views/spree/admin/subscriptions/index.html.erb b/app/views/spree/admin/subscriptions/index.html.erb index 9589fff..db962a5 100644 --- a/app/views/spree/admin/subscriptions/index.html.erb +++ b/app/views/spree/admin/subscriptions/index.html.erb @@ -5,46 +5,46 @@ <% end %> <% content_for :page_actions do %> - <li><%= button_link_to t('.new_subscription'), new_admin_subscription_path %></li> + <li><%= link_to t('.new_subscription'), new_admin_subscription_path %></li> <% end %> <% content_for :table_filter_title do %> - <%= Spree.t(:search) %> + <%= I18n.t('spree.search') %> <% end %> <% content_for :table_filter do %> <%= search_form_for [:admin, @search] do |f| %> <div class='field-block alpha four columns'> <div class="date-range-filter field"> - <%= label_tag :q_created_at_gt, Spree.t(:date_range) %> + <%= label_tag :q_created_at_gt, I18n.t('spree.date_range') %> <div class="date-range-fields"> - <%= f.text_field :created_at_gt, class: 'datepicker datepicker-from', placeholder: Spree.t(:start) %> + <%= f.text_field :created_at_gt, class: 'datepicker datepicker-from', placeholder: I18n.t('spree.start') %> <span class="range-divider"> <i class="fa fa-arrow-right"></i> </span> - <%= f.text_field :created_at_lt, class: 'datepicker datepicker-to', placeholder: Spree.t(:stop) %> + <%= f.text_field :created_at_lt, class: 'datepicker datepicker-to', placeholder: I18n.t('spree.stop') %> </div> </div> <div class="date-range-filter field"> <%= label_tag :q_actionable_date_gt, SolidusSubscriptions::Subscription.human_attribute_name(:actionable_date) %> <div class="date-range-fields"> - <%= f.text_field :actionable_date_gt, class: 'datepicker datepicker-from', placeholder: Spree.t(:start) %> + <%= f.text_field :actionable_date_gt, class: 'datepicker datepicker-from', placeholder: I18n.t('spree.start') %> <span class="range-divider"> <i class="fa fa-arrow-right"></i> </span> - <%= f.text_field :actionable_date_lt, class: 'datepicker datepicker-to', placeholder: Spree.t(:stop) %> + <%= f.text_field :actionable_date_lt, class: 'datepicker datepicker-to', placeholder: I18n.t('spree.stop') %> </div> </div> </div> <div class="four columns"> <div class="field"> - <%= label_tag :q_state_eq, Spree.t(:status) %> + <%= label_tag :q_state_eq, I18n.t('spree.status') %> <%= f.select :state_eq, SolidusSubscriptions::Subscription.state_machines[:state].states.map {|s| [s.human_name, s.value]}, {include_blank: true}, class: 'select2 fullwidth' %> </div> </div> @@ -83,7 +83,7 @@ <div class="clearfix"></div> <div class="actions filter-actions"> - <div><%= button Spree.t(:filter_results) %></div> + <div><%= button_tag I18n.t('spree.filter_results') %></div> </div> <% end %> <% end %> |