From 3f0e032c7a286290f2c7579202a0f86535f62946 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Thu, 15 Aug 2019 11:19:12 +0500 Subject: [PATCH] Add button --- app/views/staffs/people/show.html.erb | 15 +++++++++++++++ config/locales/views/en.yml | 4 ++++ config/locales/views/ru.yml | 4 ++++ 3 files changed, 23 insertions(+) diff --git a/app/views/staffs/people/show.html.erb b/app/views/staffs/people/show.html.erb index 9616bfd..b4678af 100644 --- a/app/views/staffs/people/show.html.erb +++ b/app/views/staffs/people/show.html.erb @@ -71,5 +71,20 @@ + +
+ <% unless true %> + <%= link_to translate('.accept_as_supporter'), + '#', + role: :button, + class: 'btn btn-primary disabled', + 'aria-disabled': true %> + <% else %> + <%= link_to translate('.accept_as_supporter'), + '#', + role: :button, + class: 'btn btn-primary' %> + <% end %> +
diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml index 80d5288..996ad6b 100644 --- a/config/locales/views/en.yml +++ b/config/locales/views/en.yml @@ -7,3 +7,7 @@ en: We stand for a free market and freedom of government intervention in the economy, for the principle of self-ownership and self-value of the human person. + staffs: + people: + show: + accept_as_supporter: Accept as supporter diff --git a/config/locales/views/ru.yml b/config/locales/views/ru.yml index 05036bc..3f6a949 100644 --- a/config/locales/views/ru.yml +++ b/config/locales/views/ru.yml @@ -7,3 +7,7 @@ ru: Мы выступаем за свободный рынок и государственное невмешательство в экономику, за принцип самопринадлежности и самоценности человеческой личности. + staffs: + people: + show: + accept_as_supporter: Принять в качестве сторонника