Skip to content

Commit

Permalink
CSS: user edit. Não está inserindo foto escolhida pelo usuário.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioCesarBais committed Jan 18, 2023
1 parent d2cc95e commit 288e4fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 5 additions & 1 deletion app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@
html {
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}
}

input {
border-radius: 10px;
}
1 change: 1 addition & 0 deletions app/views/agendadas/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<span id='inicio'>
<%= form.date_field :data_inicio, as: :date, html5: true %>
</span>
<br> <br>
<%= form.label :data_fim, "Data Final:" %>
<span id='fim'>
<%= form.date_field :data_fim, as: :date, html5: true %>
Expand Down
8 changes: 3 additions & 5 deletions app/views/devise/registrations/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@
hint: "Precisamos da senha atual para confirmar alterações!",
required: true,
input_html: { autocomplete: "senha atual" } %>
<div class="row border border-primary rounded mx-5 pt-3">
<div class="col-sm-4">
<%= image_tag user_avatar(current_user,60), class: 'rounded-circle ml-5', width: 60 %>
</div>
<div class="col-sm-8">
<div class="row border border-primary rounded mx-0 pt-3">
<div class="col-12">
<%= f.input :foto, as: :file %>
<%= image_tag user_avatar(current_user,60), class: 'rounded-circle mb-3', width: 60 %>
</div>
</div>
</div>
Expand Down

0 comments on commit 288e4fc

Please sign in to comment.