Add first styles for verification account process

This commit is contained in:
Alberto Garcia Cabeza
2015-08-31 21:50:41 +02:00
parent 093ac67326
commit 0235231ae6
2 changed files with 33 additions and 25 deletions

View File

@@ -2,13 +2,13 @@
<div class="small-12 column"> <div class="small-12 column">
<%= link_to t("account.show.change_credentials_link"), edit_user_registration_path, class: 'button radius small secondary right' %> <%= link_to t("account.show.change_credentials_link"), edit_user_registration_path, class: 'button radius small secondary right' %>
<span class="right" style="padding-right: 30px"> <span class="right verify-account">
<% if current_user.level_three_verified? %> <% if current_user.level_three_verified? %>
<%= t("account.show.level_three_user") %> <p class="verified"><%= t("account.show.level_three_user") %></p>
<% elsif current_user.level_two_verified? %> <% elsif current_user.level_two_verified? %>
<%= t("account.show.level_two_user") %> <p class="verified"><%= t("account.show.level_two_user") %></p>
<% else %> <% else %>
<%= link_to t("account.show.verify_my_account"), new_residence_path, class: 'button radius small secondary right' %> <%= link_to t("account.show.verify_my_account"), new_residence_path, class: 'button radius small success right' %>
<% end %> <% end %>
</span> </span>
@@ -18,25 +18,23 @@
<%= render 'shared/errors', resource: @account %> <%= render 'shared/errors', resource: @account %>
<div class="row"> <div class="row">
<div class="small-12 medium-6 column"> <div class="small-12 column">
<h2><%= t("account.show.avatar")%></h2>
<%= avatar_image(@account, seed: @account.id, size: 60) %>
<h2><%= t("account.show.personal")%></h2> <h2><%= t("account.show.personal")%></h2>
<div class="small-12 medium-4">
<% if @account.organization? %> <% if @account.organization? %>
<%= f.fields_for :organization do |fo| %> <%= f.fields_for :organization do |fo| %>
<%= fo.text_field :name, autofocus: true, placeholder: t("account.show.organization_name_label") %> <%= fo.text_field :name, autofocus: true, placeholder: t("account.show.organization_name_label") %>
<% end %> <% end %>
<%= f.text_field :phone_number, placeholder: t("account.show.phone_number_label") %> <%= f.text_field :phone_number, placeholder: t("account.show.phone_number_label") %>
<% else %> <% else %>
<%= f.text_field :username, placeholder: t("account.show.username_label") %> <%= f.text_field :username, placeholder: t("account.show.username_label") %>
<% end %> <% end %>
</div>
</div>
<div class="small-12 medium-6 column">
<h2><%= t("account.show.avatar")%></h2>
<%= avatar_image(@account, seed: @account.id, size: 100) %>
<h2><%= t("account.show.notifications")%></h2> <h2><%= t("account.show.notifications")%></h2>

View File

@@ -6,23 +6,33 @@
<%= form_for @residence, as: "residence", url: residence_path do |f| %> <%= form_for @residence, as: "residence", url: residence_path do |f| %>
<%= render 'errors' %> <%= render 'errors' %>
<%= f.select :document_type, document_types, prompt: "" %> <div class="small-12 medium-6">
<%= f.text_field :document_number %> <div class="small-6 medium-3">
<%= f.select :document_type, document_types, prompt: "" %>
</div>
<div class="small-6 medium-8">
<%= f.text_field :document_number %>
</div>
</div>
<div class="date small-12 medium-6">
<%= f.date_select :date_of_birth, <%= f.date_select :date_of_birth,
prompt: true, prompt: true,
start_year: 1900, end_year: 16.years.ago.year %> start_year: 1900, end_year: 16.years.ago.year %>
<%= f.text_field :postal_code %>
<div class="small-12 column">
<span class="left">
<%= f.check_box :terms_of_service, label: t("verification.residence.new.accept_terms_text") %>
</span>
<span class="left" style="padding-left: 20px">
<%= link_to t("verification.residence.new.accept_terms_link"), '/census_terms', target: "_blank" %>
</span>
</div> </div>
<%= f.submit "Verify" %> <div class="small-12 medium-4 clear">
<%= f.text_field :postal_code %>
</div>
<div class="small-12">
<%= f.check_box :terms_of_service, label: t("verification.residence.new.accept_terms_text") %>
<%= link_to t("verification.residence.new.accept_terms_link"), '/census_terms', target: "_blank" %>
</div>
<div class="small-12 clear">
<%= f.submit "Verify" %>
</div>
<% end %> <% end %>
</div> </div>
</div> </div>