Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Commit

Permalink
#5 <@callegas, @mvoliveira> - Adicionar novos campos cadastro usuario
Browse files Browse the repository at this point in the history
  • Loading branch information
callegas committed Oct 10, 2016
1 parent 4553c56 commit 76819e8
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 38 deletions.
137 changes: 100 additions & 37 deletions app/views/donators/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -69,59 +69,73 @@
</div>
</div>

<div class="Grid Grid-cell u-size6of12">
<div class="Grid Grid-cell u-desktop-size6of12 u-tablet-size6of12 u-largePhone-size6of12 u-smallPhone-sizeFull">
<div class="Grid">

<div class="Grid-cell u-size2of12">
<span class="Input Input-label">CEP:</span>
<span class="Input Input-label">Telefone: </span>
</div>
<div class="Grid-cell u-size10of12">
<%= f.text_field :cep, class: "Input Input-value" %>
<%= f.text_field :phone, class: "Input Input-value" %>
</div>

</div>
</div>


<div class="Grid Grid-cell u-size4of12">
<div class="Grid Grid-cell u-desktop-size6of12 u-tablet-size6of12 u-largePhone-size6of12 u-smallPhone-sizeFull">
<div class="Grid">
<div class="Grid-cell u-size3of12">
<span class="Input Input-label">Bairro:</span>
<div class="Grid-cell u-size2of12">
<span class="Input Input-label">Data de nascimento:</span>
</div>
<div class="Grid-cell u-size9of12">
<%= f.text_field :district, class: "Input Input-value" %>
<div class="Grid-cell u-size10of12">
<%= f.text_field :date_birth, class: "Input Input-value" %>
</div>
</div>
</div>

<div class="Grid Grid-cell u-size6of12">
<div class="Grid">
<div class="Grid-cell u-size2of12">
<span class="Input Input-label">Rua:</span>
<span class="Input Input-label">Tipo sanguíneo:</span>
</div>
<div class="Grid-cell u-size10of12">
<%= f.text_field :street, class: "Input Input-value" %>
<!-- <%= f.select :blood_type, ['option1', 'option2']%> GERAR DROPDOWNLIST -->
<%= f.text_field :blood_type, class: "Input Input-value" %>
</div>
</div>
</div>

<div class="Grid Grid-cell u-size2of12">
<div class="Grid Grid-cell u-desktop-size6of12 u-tablet-size6of12 u-largePhone-size6of12 u-smallPhone-sizeFull">
<div class="Grid">
<div class="Grid-cell u-size5of12">
<span class="Input Input-label">:</span>
<div class="Grid-cell u-size2of12">
<span class="Input Input-label">Senha:</span>
</div>
<div class="Grid-cell u-size7of12">
<%= f.text_field :number, class: "Input Input-value" %>
<div class="Grid-cell u-size10of12">
<%= f.text_field :password, class: "Input Input-value" %>
</div>
</div>
</div>


<div class="Grid Grid-cell u-size6of12">
<div class="Grid">
<div class="Grid-cell u-size2of12">
<span class="Input Input-label">Cidade:</span>
<span class="Input Input-label">Confirmar senha:</span>
</div>
<div class="Grid-cell u-size10of12">
<%= f.text_field :city, class: "Input Input-value" %>
<!-- Criar confirmação de senha -->
<%= f.text_field :password, class: "Input Input-value" %>
</div>
</div>
</div>

<div class="Grid Grid-cell u-desktop-size6of12 u-tablet-size6of12 u-largePhone-size6of12 u-smallPhone-sizeFull">
<div class="Grid">
<div class="Grid-cell u-size2of12">
<span class="Input Input-label">CEP:</span>
</div>
<div class="Grid-cell u-size10of12">
<%= f.text_field :cep, class: "Input Input-value" %>
</div>
</div>
</div>
Expand All @@ -138,34 +152,83 @@
</div>


<div class="field">
<%= hidden_field :password, :value => @password %>
<div class="Grid Grid-cell u-desktop-size6of12 u-tablet-size6of12 u-largePhone-size6of12 u-smallPhone-sizeFull">
<div class="Grid">
<div class="Grid-cell u-size2of12">
<span class="Input Input-label">Cidade:</span>
</div>
<div class="Grid-cell u-size10of12">
<%= f.text_field :city, class: "Input Input-value" %>
</div>
</div>
</div>
</div>

<div class="Grid">
<div class="actions">
<div class="Grid-cell u-size1of2">
<%= f.submit "Cadastrar", class: "Button Button--medium is-actived" %>
</div>
<div class="Grid-cell u-size1of2">
<%= f.submit "Limpar", class: "Button Button--medium" %>
<div class="Grid Grid-cell u-size6of12">
<div class="Grid">
<div class="Grid-cell u-size2of12">
<span class="Input Input-label">Bairro:</span>
</div>
<div class="Grid-cell u-size10of12">
<%= f.text_field :district, class: "Input Input-value" %>
</div>
</div>
</div>
</div>

</div>
</div>





<div class="Grid Grid-cell u-desktop-size9of12 u-tablet-size6of12 u-largePhone-size6of12 u-smallPhone-sizeFull">
<div class="Grid">
<div class="Grid-cell u-size2of12">
<span class="Input Input-label">Rua:</span>
</div>
<div class="Grid-cell u-size9of12">
<%= f.text_field :street, class: "Input Input-value" %>
</div>
</div>
</div>

<div class="Grid Grid-cell u-size3of12">
<div class="Grid">
<div class="Grid-cell u-size2of12">
<span class="Input Input-label">Nº:</span>
</div>
<div class="Grid-cell u-size3of12">
<%= f.text_field :number, class: "Input Input-value" %>
</div>
</div>
</div>


<div class="Grid Grid-cell u-desktop-size6of12 u-tablet-size6of12 u-largePhone-size6of12 u-smallPhone-sizeFull">
<div class="Grid">
<div class="Grid-cell u-size2of12">
<span class="Input Input-label">Ultima doação:</span>
</div>
<div class="Grid-cell u-size10of12">
<%= f.text_field :last_donation, class: "Input Input-value" %>
</div>
</div>
</div>
</div>

<div class="Grid Grid-cell u-desktop-size6of12 u-tablet-size6of12 u-largePhone-size6of12 u-smallPhone-sizeFull">
<div class="Grid">
<div class="Grid-cell u-size10of12">
<%= check_box_tag(:receive_notification) %>
<%= label_tag(:receive_notification, "Desejo receber notificações") %>
</div>
</div>

<div class="Grid">
<div class="actions">
<div class="Grid-cell u-size1of2">
<%= f.submit "Cadastrar", class: "Button Button--medium is-actived" %>
</div>
<div class="Grid-cell u-size1of2">
<%= f.submit "Limpar", class: "Button Button--medium" %>
</div>
</div>
</div>
</div>
</div>


<% end %>
<% end %>
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
resources :donators
devise_for :users
root 'welcome#index'

resources :addresses
resources :hospital_necessities
resources :hospitals
Expand Down

0 comments on commit 76819e8

Please sign in to comment.