Improves styles for management section

This commit is contained in:
Alberto Garcia Cabeza
2016-06-01 18:07:58 +02:00
parent b71c61e405
commit 5bd7bbee4f
11 changed files with 32 additions and 35 deletions

View File

@@ -1,5 +1,5 @@
<% if managed_user.document_number.present? %>
<section class="small-12 medium-9 column">
<section class="small-12 medium-9 large-10 column">
<div class="account-info">
<%= link_to(t("management.account_info.change_user"), logout_management_users_path, method: :delete, class: 'float-right change-user') %>

View File

@@ -19,7 +19,7 @@
label: t("management.document_number")
%>
</div>
<%= f.submit t("management.check") %>
<%= f.submit t("management.check"), class: "button" %>
<% end %>
</div>
</div>

View File

@@ -15,7 +15,7 @@
<%= f.hidden_field :document_number %>
<%= f.text_field :email, label: false, placeholder: t('management.email_verifications.email_placeholder') %>
<%= f.submit t("management.email_verifications.send_email"), class: "button success" %>
<%= f.submit t("management.email_verifications.send_email"), class: "button hollow" %>
<% end %>
</li>
@@ -23,7 +23,7 @@
<strong><%= t("management.email_verifications.if_no_existing_account") %></strong>
<p class="margin-top">
<%= link_to t('management.users.create_user'), new_management_user_path(user: params[:email_verification]), class: "button warning" %>
<%= link_to t('management.users.create_user'), new_management_user_path(user: params[:email_verification]), class: "button success" %>
</p>
</li>
</ul>

View File

@@ -1,8 +1,10 @@
<div class="proposal-new row">
<div class="proposal-new">
<%= render '/shared/print' %>
<div class="clear float-right">
<%= render '/shared/print' %>
</div>
<div class="small-12 medium-9 column">
<div class="small-12 medium-9 column end">
<h1 class=""><%= t("management.proposals.create_proposal") %></h1>
<%= render "proposals/form", form_url: management_proposals_url %>
</div>

View File

@@ -1,8 +1,10 @@
<div class="spending-proposal-new row">
<div class="spending-proposal-new">
<%= render '/shared/print' %>
<div class="clear float-right">
<%= render '/shared/print' %>
</div>
<div class="small-12 medium-9 column">
<div class="small-12 medium-9 column end">
<h1 class=""><%= t("management.spending_proposals.create") %></h1>
<%= render "spending_proposals/form", form_url: management_spending_proposals_url %>
</div>

View File

@@ -1,9 +1,9 @@
<%= link_to t("management.users.erase_account_link"), "#", class: "delete js-toggle-link", data: { "toggle-selector" => "#erase-account-form" } %>
<%= link_to t("management.users.erase_account_link"), "#", class: "button hollow alert js-toggle-link", data: { "toggle-selector" => "#erase-account-form" } %>
<div id="erase-account-form" style="display:none">
<div class="callout alert medium-6">
<%= t("management.users.erase_warning") %>
</div>
<%= link_to t("management.users.erase_submit"), erase_management_users_path, method: :delete, class: "button alert", data: { confirm: t("management.users.erase_account_confirm") } %>
<%= link_to t("management.users.erase_submit"), erase_management_users_path, method: :delete, class: "button hollow alert", data: { confirm: t("management.users.erase_account_confirm") } %>
</div>

View File

@@ -5,7 +5,7 @@
permissions: [:debates, :create_proposals, :support_proposals, :vote_proposals] %>
<div class="row">
<div class="small-12 medium-9 column">
<div class="small-12 medium-6 column">
<%= form_for @user, url: management_users_path do |f| %>
<%= f.hidden_field :document_type %>
<%= f.hidden_field :document_number %>