From c0fc7ebca9bc89e16d31876e097da66ad5ab3070 Mon Sep 17 00:00:00 2001 From: Alex Sherman Date: Thu, 10 Dec 2020 15:33:26 +0500 Subject: [PATCH] Add current balance --- .../registrar/bulk_change/_bulk_renew_form.html.erb | 9 +++++++++ config/locales/registrar/bulk_change.en.yml | 1 + 2 files changed, 10 insertions(+) diff --git a/app/views/registrar/bulk_change/_bulk_renew_form.html.erb b/app/views/registrar/bulk_change/_bulk_renew_form.html.erb index 874dc8eaa..cf8973ed2 100644 --- a/app/views/registrar/bulk_change/_bulk_renew_form.html.erb +++ b/app/views/registrar/bulk_change/_bulk_renew_form.html.erb @@ -1,6 +1,15 @@ <%= form_with url: registrar_bulk_renew_path, multipart: true, class: 'form-horizontal' do |f|%> <%= render 'api_errors' %> +
+
+ <%= f.label :current_balance, t('.current_balance') %> +
+
+ <%= number_to_currency current_registrar_user.registrar.balance %> +
+
+
diff --git a/config/locales/registrar/bulk_change.en.yml b/config/locales/registrar/bulk_change.en.yml index a0672afaf..48f6f2ffb 100644 --- a/config/locales/registrar/bulk_change.en.yml +++ b/config/locales/registrar/bulk_change.en.yml @@ -35,3 +35,4 @@ en: filter_btn: Filter expire_date: Expire date until domain_ids: Domains for bulk renewal + current_balance: Current balance