mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
Improve UI
This commit is contained in:
parent
02c37a1c31
commit
8c0d654475
3 changed files with 8 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
class Registrar
|
||||
class AccountController < BaseController
|
||||
skip_authorization_check
|
||||
helper_method :iban_max_length
|
||||
|
||||
def show; end
|
||||
|
||||
|
@ -20,5 +21,9 @@ class Registrar
|
|||
def registrar_params
|
||||
params.require(:registrar).permit(:billing_email, :iban)
|
||||
end
|
||||
|
||||
def iban_max_length
|
||||
Iban.max_length
|
||||
end
|
||||
end
|
||||
end
|
|
@ -17,7 +17,8 @@
|
|||
</div>
|
||||
|
||||
<div class="col-sm-4">
|
||||
<%= f.text_field :iban, class: 'form-control' %>
|
||||
<%= f.text_field :iban, maxlength: iban_max_length, class: 'form-control' %>
|
||||
<span class="help-block"><%= t '.iban_hint' %></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ en:
|
|||
header: Edit your account
|
||||
|
||||
form:
|
||||
iban_hint: Required for sending e-invoices to the bank
|
||||
submit_btn: Save changes
|
||||
|
||||
update:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue