mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
Refatored to use shared/title partial
This commit is contained in:
parent
4c660df43e
commit
8d4124585c
73 changed files with 402 additions and 411 deletions
|
@ -1,5 +1,5 @@
|
|||
%h2= t('upload_csr')
|
||||
%hr
|
||||
= render 'shared/title', name: t(:upload_csr)
|
||||
|
||||
= form_for([:admin, @api_user, @certificate], multipart: true) do |f|
|
||||
- if @certificate.errors.any?
|
||||
- @certificate.errors.each do |attr, err|
|
||||
|
@ -11,10 +11,10 @@
|
|||
.row
|
||||
.col-md-12.text-left
|
||||
.form-group
|
||||
= f.label :csr, t('certificate_signing_req')
|
||||
= f.label :csr, t(:certificate_signing_req)
|
||||
= f.file_field :csr
|
||||
%hr
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
= button_tag(t('save'), class: 'btn btn-primary')
|
||||
= button_tag(t(:save), class: 'btn btn-primary')
|
||||
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
.row
|
||||
.col-sm-6
|
||||
%h2.text-center-xs
|
||||
= t('certificates')
|
||||
.col-sm-6
|
||||
%h2.text-right.text-center-xs
|
||||
= link_to(t('back_to_api_user'), [:admin, @api_user], class: 'btn btn-default')
|
||||
- content_for :actions do
|
||||
= link_to(t(:back_to_api_user), [:admin, @api_user], class: 'btn btn-default')
|
||||
= render 'shared/title', name: t(:certificates)
|
||||
|
||||
%hr
|
||||
- if @certificate.errors.any?
|
||||
- @certificate.errors.each do |attr, err|
|
||||
= err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue