Skip to content

Commit

Permalink
Merge pull request #139 from internetee/add-birthdate-verification
Browse files Browse the repository at this point in the history
Modified verify confirm message
  • Loading branch information
vohmar authored Jan 31, 2025
2 parents 6689f30 + fe3d0cd commit e1413b6
Showing 4 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion app/views/contacts/partials/_verify_confirm_form.html.erb
Original file line number Diff line number Diff line change
@@ -5,7 +5,13 @@
<%= button_tag(class: 'button--close', type: '') do %>
<i class="fas fa-times"></i>
<% end %>
<h2 id="title"><%= t('contacts.show.verify_confirm_html', code: @contact[:code]) %></h2>
<h2 id="title">
<% if @contact[:verified_at].present? %>
<%= t('contacts.show.reverify_confirm_html', code: @contact[:code]) %>
<% else %>
<%= t('contacts.show.verify_confirm_html', code: @contact[:code]) %>
<% end %>
</h2>
</div>
<div class="paper--content">
<%= button_to t(:send), verify_contact_path(contact_code: @contact[:code]), data: { turbo: false }, class: 'button button--primary' %>
2 changes: 1 addition & 1 deletion app/views/contacts/show.html.erb
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
<div class="col-xs-auto">
<%= link_to t(:edit), edit_contact_path(contact_code: @contact[:code]), class: 'button button--primary' %>
</div>
<% if @contact[:ident][:type] == "priv" %>
<% if %w[priv birthday].include? @contact[:ident][:type] %>
<div class="col-xs-auto">
<%= link_to t(:verify), 'javascript: void(0);', class: 'button button--secondary',
'data-dialog': 'contact_verify' %>
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
@@ -382,6 +382,7 @@ en:
requested_at: "Requested at"
verified_at: "Verified at"
verify_confirm_html: "Are you sure you want to send identification request to contact <span>%{code}</span>?"
reverify_confirm_html: "Are you sure you want to resend identification request to contact <span>%{code}</span>? This will delete any previous verification information."
verified_on: "Verified on"
ident_requested_on: "Identification requested on"
unverified: "Unverified"
1 change: 1 addition & 0 deletions config/locales/et.yml
Original file line number Diff line number Diff line change
@@ -384,6 +384,7 @@ et:
requested_at: "Taotletud"
verified_at: "Verifitseeritud"
verify_confirm_html: "Kas olete kindel, et soovite saata kontaktile <span>%{code}</span> tuvastamistaotlust?"
reverify_confirm_html: "Kas olete kindel, et soovite kontaktile <span>%{code}</span> tuvastamistaotlust uuesti saata? See kustutab kõik eelnevad tuvastamise teated."
verified_on: "Verifitseeritud"
ident_requested_on: "Identifitseerimine taotletud"
unverified: "Verifitseerimata"

0 comments on commit e1413b6

Please sign in to comment.