Use Estonian reference number format instead of ISO 11649

This commit is contained in:
Artur Beljajev 2018-10-01 13:43:50 +03:00
parent aa6e8f8a93
commit 5738c17731
25 changed files with 244 additions and 47 deletions

View file

@ -2,6 +2,7 @@
<div class="panel-heading">
<%= t '.header' %>
</div>
<div class="panel-body">
<dl class="dl-horizontal">
<dt><%= Registrar.human_attribute_name :vat_no %></dt>
@ -15,6 +16,9 @@
<dt><%= Registrar.human_attribute_name :billing_email %></dt>
<dd><%= registrar.billing_email %></dd>
<dt><%= Registrar.human_attribute_name :reference_no %></dt>
<dd><%= registrar.reference_no %></dd>
</dl>
</div>
</div>

View file

@ -11,9 +11,6 @@
<dt><%= Registrar.human_attribute_name :reg_no %></dt>
<dd><%= registrar.reg_no %></dd>
<dt><%= Registrar.human_attribute_name :reference_no %></dt>
<dd><%= registrar.reference_no %></dd>
<dt><%= Registrar.human_attribute_name :code %></dt>
<dd><%= registrar.code %></dd>

View file

@ -47,6 +47,24 @@
<%= f.email_field :billing_email, class: 'form-control' %>
</div>
</div>
<div class="form-group">
<% if f.object.new_record? %>
<div class="col-md-offset-4 col-md-8">
<%= t '.no_reference_no_hint' %>
</div>
<% else %>
<div class="col-md-4 control-label">
<%= f.label :reference_no %>
</div>
<div class="col-md-7">
<%= f.text_field :reference_no, disabled: true,
title: t('.disabled_reference_no_hint'),
class: 'form-control' %>
</div>
<% end %>
</div>
</div>
</div>
</div>