22 lines
574 B
Text
22 lines
574 B
Text
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<h1>
|
|
<%= @passport.surname %>
|
|
<%= @passport.given_name %>
|
|
<%= @passport.patronymic %>
|
|
</h1>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<% if @passport.image.attached? %>
|
|
<%= image_tag url_for(@passport.image), class: 'img-fluid' %>
|
|
<% elsif policy(@passport).update? %>
|
|
<%= simple_form_for @passport do |f| %>
|
|
<%= f.input :image %>
|
|
<%= f.button :submit %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|