mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 08:43:37 +02:00
Remove inline JS, extract translation
This commit is contained in:
parent
951bfd4854
commit
d2ea3fc944
7 changed files with 16 additions and 23 deletions
|
@ -30,8 +30,7 @@
|
||||||
|
|
||||||
%span.glyphicon.glyphicon-search
|
%span.glyphicon.glyphicon-search
|
||||||
|
|
||||||
%button.btn.btn-default.js-reset-form
|
= link_to(t('.reset_btn'), registrar_account_activities_path, class: 'btn btn-default')
|
||||||
= t(:clear_fields)
|
|
||||||
%hr
|
%hr
|
||||||
|
|
||||||
.row
|
.row
|
||||||
|
@ -60,8 +59,3 @@
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
= paginate @account_activities
|
= paginate @account_activities
|
||||||
|
|
||||||
:coffee
|
|
||||||
$(".js-reset-form").on "click", (e) ->
|
|
||||||
e.preventDefault();
|
|
||||||
window.location = "#{registrar_account_activities_path}"
|
|
||||||
|
|
|
@ -66,8 +66,7 @@
|
||||||
|
|
||||||
%span.glyphicon.glyphicon-search
|
%span.glyphicon.glyphicon-search
|
||||||
|
|
||||||
%button.btn.btn-default.js-reset-form
|
= link_to(t('.reset_btn'), registrar_contacts_path, class: 'btn btn-default')
|
||||||
= t(:clear_fields)
|
|
||||||
.row
|
.row
|
||||||
.col-md-3
|
.col-md-3
|
||||||
.btn-group{:role => "group"}
|
.btn-group{:role => "group"}
|
||||||
|
@ -119,8 +118,3 @@
|
||||||
.col-md-6.text-right
|
.col-md-6.text-right
|
||||||
.pagination
|
.pagination
|
||||||
= t(:result_count, count: @contacts.total_count)
|
= t(:result_count, count: @contacts.total_count)
|
||||||
|
|
||||||
:coffee
|
|
||||||
$(".js-reset-form").on "click", (e) ->
|
|
||||||
e.preventDefault();
|
|
||||||
window.location = "#{registrar_contacts_path}"
|
|
||||||
|
|
|
@ -43,8 +43,7 @@
|
||||||
|
|
||||||
%span.glyphicon.glyphicon-search
|
%span.glyphicon.glyphicon-search
|
||||||
|
|
||||||
%button.btn.btn-default.js-reset-form
|
= link_to(t('.reset_btn'), registrar_invoices_path, class: 'btn btn-default')
|
||||||
= t(:clear_fields)
|
|
||||||
%hr
|
%hr
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
|
@ -72,9 +71,3 @@
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
= paginate @invoices
|
= paginate @invoices
|
||||||
|
|
||||||
:coffee
|
|
||||||
$(".js-reset-form").on "click", (e) ->
|
|
||||||
e.preventDefault();
|
|
||||||
window.location = "#{registrar_invoices_path}"
|
|
||||||
|
|
||||||
|
|
|
@ -417,7 +417,6 @@ en:
|
||||||
attribute_is_invalid: 'Attribute is invalid: %{attribute}'
|
attribute_is_invalid: 'Attribute is invalid: %{attribute}'
|
||||||
request_successful: 'Request successful'
|
request_successful: 'Request successful'
|
||||||
choose: 'Choose...'
|
choose: 'Choose...'
|
||||||
clear_fields: 'Clear fields'
|
|
||||||
created_before: 'Created before'
|
created_before: 'Created before'
|
||||||
created_after: 'Created after'
|
created_after: 'Created after'
|
||||||
billing_address: 'Billing address'
|
billing_address: 'Billing address'
|
||||||
|
|
5
config/locales/registrar/account_activities.en.yml
Normal file
5
config/locales/registrar/account_activities.en.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
en:
|
||||||
|
registrar:
|
||||||
|
account_activities:
|
||||||
|
index:
|
||||||
|
reset_btn: Reset
|
|
@ -1,6 +1,9 @@
|
||||||
en:
|
en:
|
||||||
registrar:
|
registrar:
|
||||||
contacts:
|
contacts:
|
||||||
|
index:
|
||||||
|
reset_btn: Reset
|
||||||
|
|
||||||
partials:
|
partials:
|
||||||
domains:
|
domains:
|
||||||
roles: Roles
|
roles: Roles
|
||||||
|
|
5
config/locales/registrar/invoices.en.yml
Normal file
5
config/locales/registrar/invoices.en.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
en:
|
||||||
|
registrar:
|
||||||
|
invoices:
|
||||||
|
index:
|
||||||
|
reset_btn: Reset
|
Loading…
Add table
Add a link
Reference in a new issue