mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 06:04:56 +02:00
parent
90aeb5f398
commit
1dfe30ccfd
6 changed files with 19 additions and 6 deletions
3
app/models/certification_request.rb
Normal file
3
app/models/certification_request.rb
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
class CertificationRequest
|
||||||
|
extend ActiveModel::Translation
|
||||||
|
end
|
|
@ -1,6 +1,6 @@
|
||||||
- content_for :actions do
|
- content_for :actions do
|
||||||
= link_to(t(:add), new_admin_bank_statement_path, class: 'btn btn-primary')
|
= link_to(t(:add), new_admin_bank_statement_path, class: 'btn btn-primary')
|
||||||
= link_to(t(:import), import_admin_bank_statements_path, class: 'btn btn-primary')
|
= link_to(t('.import_btn'), import_admin_bank_statements_path, class: 'btn btn-primary')
|
||||||
= render 'shared/title', name: t(:bank_statements)
|
= render 'shared/title', name: t(:bank_statements)
|
||||||
|
|
||||||
.row
|
.row
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
.form-group
|
.form-group
|
||||||
- if params[:crt]
|
- if params[:crt]
|
||||||
.col-md-4.control-label
|
.col-md-4.control-label
|
||||||
= f.label :crt, t(:certificate)
|
= f.label :crt, t('.certificate_file')
|
||||||
.col-md-8
|
.col-md-8
|
||||||
= f.file_field :crt
|
= f.file_field :crt
|
||||||
- else
|
- else
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
%dt= t(:version)
|
%dt= t(:version)
|
||||||
%dd= @csr.version
|
%dd= @csr.version
|
||||||
|
|
||||||
%dt= t(:subject)
|
%dt= CertificationRequest.human_attribute_name :subject
|
||||||
%dd= @csr.subject
|
%dd= @csr.subject
|
||||||
|
|
||||||
%dt= t(:signature_algorithm)
|
%dt= t(:signature_algorithm)
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
%dt= t(:version)
|
%dt= t(:version)
|
||||||
%dd= @crt.version
|
%dd= @crt.version
|
||||||
|
|
||||||
%dt= t(:serial_number)
|
%dt= Certificate.human_attribute_name :serial_number
|
||||||
%dd= @crt.serial
|
%dd= @crt.serial
|
||||||
|
|
||||||
%dt= t(:signature_algorithm)
|
%dt= t(:signature_algorithm)
|
||||||
|
@ -93,8 +93,8 @@
|
||||||
%dt= t(:valid_to)
|
%dt= t(:valid_to)
|
||||||
%dd= @crt.not_after
|
%dd= @crt.not_after
|
||||||
|
|
||||||
%dt= t(:subject)
|
%dt= Certificate.human_attribute_name :subject
|
||||||
%dd= @crt.subject
|
%dd= @crt.subject
|
||||||
|
|
||||||
%dt= t(:extensions)
|
%dt= Certificate.human_attribute_name :extensions
|
||||||
%dd= @crt.extensions.map(&:to_s).join('<br>').html_safe
|
%dd= @crt.extensions.map(&:to_s).join('<br>').html_safe
|
||||||
|
|
5
config/locales/admin/bank_statements.en.yml
Normal file
5
config/locales/admin/bank_statements.en.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
en:
|
||||||
|
admin:
|
||||||
|
bank_statements:
|
||||||
|
index:
|
||||||
|
import_btn: Import
|
5
config/locales/admin/certificates.en.yml
Normal file
5
config/locales/admin/certificates.en.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
en:
|
||||||
|
admin:
|
||||||
|
certificates:
|
||||||
|
new:
|
||||||
|
certificate_file: Certificate file
|
Loading…
Add table
Add a link
Reference in a new issue