Cleans and improves management views layout
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<%= form_for(Proposal.new, url: url, as: :proposal, method: :get) do |f| %>
|
||||
<div class="row">
|
||||
<div class="small-12 medium-6 column">
|
||||
<div class="small-12 medium-6">
|
||||
<div class="input-group">
|
||||
<%= text_field_tag :search, "", placeholder: t("admin.shared.proposal_search.placeholder") %>
|
||||
</div>
|
||||
<div class="form-inline small-12 medium-6 column">
|
||||
<%= f.submit t("admin.shared.proposal_search.button"), class: "button" %>
|
||||
<div class="input-group-button">
|
||||
<%= f.submit t("admin.shared.proposal_search.button"), class: "button" %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -2,11 +2,16 @@
|
||||
<section class="small-12 medium-9 column">
|
||||
<div class="account-info">
|
||||
|
||||
<%= link_to(t("management.account_info.change_user"), logout_management_users_path, method: :delete, class: 'float-right change-user') %>
|
||||
<%= link_to(t("management.account_info.change_user"),
|
||||
logout_management_users_path,
|
||||
method: :delete,
|
||||
class: "float-right btchange-user button hollow") %>
|
||||
|
||||
<% if managed_user.level_two_or_three_verified? %>
|
||||
<p>
|
||||
<%= t("management.account_info.identified_label") %>
|
||||
<strong>
|
||||
<%= t("management.account_info.identified_label") %>
|
||||
</strong>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -1,20 +1,19 @@
|
||||
<h2 class="not-print"><%= t("management.account.menu.reset_password_manually") %></h2>
|
||||
|
||||
<%= form_for managed_user, url: change_password_management_account_path do |f| %>
|
||||
<div class="row">
|
||||
<%= f.label :password %>
|
||||
<p class="help-text"><%= t("management.account.edit.password.print_help") %></p>
|
||||
<div class="columns small-6 end">
|
||||
<%= f.label :password %>
|
||||
<p class="help-text"><%= t("management.account.edit.password.print_help") %></p>
|
||||
<div class="small-12 medium-6">
|
||||
|
||||
<div class="input-group">
|
||||
<%= f.password_field :password, class: "input-group-field no-margin-bottom", label: false, value: nil %>
|
||||
<span class="input-group-label">
|
||||
<a href="#" class="show-password"><i class="icon-eye"></i></a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<%= link_to t("management.account.edit.password.random"), '#', class: 'generate-random-value float-right' %>
|
||||
<div class="input-group">
|
||||
<%= f.password_field :password, class: "input-group-field no-margin-bottom", label: false, value: nil %>
|
||||
<span class="input-group-label">
|
||||
<a href="#" class="show-password"><span class="icon-eye"></span></a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<%= link_to t("management.account.edit.password.random"), '#', class: 'generate-random-value float-right' %>
|
||||
</div>
|
||||
|
||||
<%= f.submit t("management.account.edit.password.save"), class: "button success" %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,12 +1,30 @@
|
||||
<table>
|
||||
<% @budgets.each do |budget| %>
|
||||
<tr id="<%= dom_id(budget) %>">
|
||||
<td><%= budget.name %></td>
|
||||
<td><%= budget.translated_phase %></td>
|
||||
<td align="right">
|
||||
<%= link_to t("management.budgets.create_new_investment"),
|
||||
new_management_budget_investment_path(budget) %>
|
||||
</td>
|
||||
</tr>
|
||||
<h2><%= t("management.budgets.create_new_investment") %></h2>
|
||||
|
||||
<% if @budgets.any? %>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%= t("management.budgets.table_name") %></th>
|
||||
<th><%= t("management.budgets.table_phase") %></th>
|
||||
<th><%= t("management.budgets.table_actions") %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @budgets.each do |budget| %>
|
||||
<tr id="<%= dom_id(budget) %>">
|
||||
<td><%= budget.name %></td>
|
||||
<td><%= budget.translated_phase %></td>
|
||||
<td align="right">
|
||||
<%= link_to t("management.budgets.create_new_investment"),
|
||||
new_management_budget_investment_path(budget),
|
||||
class: "button hollow" %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% else %>
|
||||
<div class="callout primary">
|
||||
<%= t("management.budgets.no_budgets") %>
|
||||
</div>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-9 column end">
|
||||
<h1 class=""><%= t("management.budget_investments.create") %></h1>
|
||||
<h2><%= t("management.budget_investments.create") %></h2>
|
||||
|
||||
<%= render '/budgets/investments/form', form_url: management_budget_investments_path(@budget) %>
|
||||
</div>
|
||||
|
||||
@@ -1,10 +1,21 @@
|
||||
<h2><%= t("management.budgets.print_investments") %></h2>
|
||||
|
||||
<table>
|
||||
<tr id="<%= dom_id(@budget) %>">
|
||||
<td><%= @budget.name %></td>
|
||||
<td><%= @budget.translated_phase %></td>
|
||||
<td align="right">
|
||||
<%= link_to t("management.budgets.print_investments"),
|
||||
print_management_budget_investments_path(@budget) %>
|
||||
</td>
|
||||
</tr>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%= t("management.budgets.table_name") %></th>
|
||||
<th><%= t("management.budgets.table_phase") %></th>
|
||||
<th><%= t("management.budgets.table_actions") %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr id="<%= dom_id(@budget) %>">
|
||||
<td><%= @budget.name %></td>
|
||||
<td><%= @budget.translated_phase %></td>
|
||||
<td align="right">
|
||||
<%= link_to t("management.budgets.print_investments"),
|
||||
print_management_budget_investments_path(@budget) %>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -1,12 +1,30 @@
|
||||
<table>
|
||||
<% @budgets.each do |budget| %>
|
||||
<tr id="<%= dom_id(budget) %>">
|
||||
<td><%= budget.name %></td>
|
||||
<td><%= budget.translated_phase %></td>
|
||||
<td align="right">
|
||||
<%= link_to t("management.budgets.support_investments"),
|
||||
management_budget_investments_path(budget) %>
|
||||
</td>
|
||||
</tr>
|
||||
<h2><%= t("management.budgets.support_investments") %></h2>
|
||||
|
||||
<% if @budgets.any? %>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%= t("management.budgets.table_name") %></th>
|
||||
<th><%= t("management.budgets.table_phase") %></th>
|
||||
<th><%= t("management.budgets.table_actions") %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @budgets.each do |budget| %>
|
||||
<tr id="<%= dom_id(budget) %>">
|
||||
<td><%= budget.name %></td>
|
||||
<td><%= budget.translated_phase %></td>
|
||||
<td align="right">
|
||||
<%= link_to t("management.budgets.support_investments"),
|
||||
management_budget_investments_path(budget),
|
||||
class: "button hollow" %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% else %>
|
||||
<div class="callout primary">
|
||||
<%= t("management.budgets.no_budgets") %>
|
||||
</div>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
@@ -1,25 +1,23 @@
|
||||
<h2><%= t("management.document_verifications.title") %></h2>
|
||||
|
||||
<div class="row">
|
||||
<div class="small-12 medium-8 column">
|
||||
<%= form_for(@document_verification,
|
||||
as: :document_verification,
|
||||
url: check_management_document_verifications_path) do |f| %>
|
||||
<div class="small-12 medium-8">
|
||||
<%= form_for(@document_verification,
|
||||
as: :document_verification,
|
||||
url: check_management_document_verifications_path) do |f| %>
|
||||
|
||||
<div class="small-12 medium-4">
|
||||
<%= f.select(:document_type,
|
||||
[[humanize_document_type("1"), 1],
|
||||
[humanize_document_type("2"), 2],
|
||||
[humanize_document_type("3"), 3]],
|
||||
label: t("management.document_type_label")) %>
|
||||
</div>
|
||||
<div class="small-12 medium-5">
|
||||
<%= f.text_field :document_number,
|
||||
placeholder: t('management.document_number'),
|
||||
label: t("management.document_number")
|
||||
%>
|
||||
</div>
|
||||
<%= f.submit t("management.check"), class: "button" %>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="small-12 medium-5">
|
||||
<%= f.select(:document_type,
|
||||
[[humanize_document_type("1"), 1],
|
||||
[humanize_document_type("2"), 2],
|
||||
[humanize_document_type("3"), 3]],
|
||||
label: t("management.document_type_label")) %>
|
||||
</div>
|
||||
<div class="small-12 medium-5">
|
||||
<%= f.text_field :document_number,
|
||||
placeholder: t('management.document_number'),
|
||||
label: t("management.document_number")
|
||||
%>
|
||||
</div>
|
||||
<%= f.submit t("management.check"), class: "button" %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<%= render partial: 'proposals/proposal', locals: {proposal: proposal} %>
|
||||
<%= render partial: "proposals/proposal", locals: {proposal: proposal} %>
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
<main>
|
||||
<h2><%= t("management.proposals.index.title") %></h2>
|
||||
|
||||
<%= render 'admin/shared/proposal_search', url: management_proposals_path %>
|
||||
|
||||
<div class="row">
|
||||
<div class="proposals-list small-12 column">
|
||||
<div class="management-list">
|
||||
<div class="proposals-list">
|
||||
|
||||
<div class="filters">
|
||||
<div class="small-12 medium-7 float-left">
|
||||
<% if @search_terms %>
|
||||
<h2>
|
||||
<%= page_entries_info @proposals %>
|
||||
<%= t("proposals.index.search_results_html", count: @proposals.size, search_term: @search_terms) %>
|
||||
</h2>
|
||||
<% end %>
|
||||
</div>
|
||||
<% if @search_terms %>
|
||||
<h3>
|
||||
<%= page_entries_info @proposals %>
|
||||
<%= t("proposals.index.search_results_html", count: @proposals.size, search_term: @search_terms) %>
|
||||
</h3>
|
||||
<% end %>
|
||||
|
||||
<%= render @proposals %>
|
||||
<%= paginate @proposals %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</main>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-9 column end">
|
||||
<h1 class=""><%= t("management.proposals.create_proposal") %></h1>
|
||||
<h2><%= t("management.proposals.create_proposal") %></h2>
|
||||
<%= render "proposals/form", form_url: management_proposals_url %>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<main>
|
||||
<div class="row">
|
||||
<div class="proposals-list small-12 column">
|
||||
<div class="proposals-list">
|
||||
<a id="print_link" href="javascript:window.print();" class="button warning float-right">
|
||||
<%= t('management.proposals.print.print_button') %>
|
||||
</a>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<div class="small-12 medium-8 column">
|
||||
<%= back_link_to %>
|
||||
|
||||
<h1><%= t('management.user_invites.create.title') %></h1>
|
||||
<h2><%= t("management.user_invites.create.title") %></h2>
|
||||
|
||||
<div class="callout success">
|
||||
<%= t('management.user_invites.create.success_html', count: @emails.count) %>
|
||||
<%= t("management.user_invites.create.success_html", count: @emails.count) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
<div class="small-12 medium-8 column">
|
||||
<h1><%= t('management.user_invites.new.title') %></h1>
|
||||
<h2><%= t("management.user_invites.new.title") %></h2>
|
||||
|
||||
<%= form_tag management_user_invites_path do %>
|
||||
<label><%= t('management.user_invites.new.label') %></label>
|
||||
<p class="help-text" id="emails-help-text"><%= t('management.user_invites.new.info') %></p>
|
||||
<%= text_area_tag "emails", nil, rows: 5,
|
||||
placeholder: t('management.user_invites.new.info'),
|
||||
aria: {describedby: "emails-help-text"} %>
|
||||
<div class="small-12 medium-6">
|
||||
<input type="submit" name="" value="<%= t('management.user_invites.new.submit') %>", class="button hollow expanded">
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<%= form_tag management_user_invites_path do %>
|
||||
<label><%= t('management.user_invites.new.label') %></label>
|
||||
<p class="help-text" id="emails-help-text"><%= t('management.user_invites.new.info') %></p>
|
||||
<%= text_area_tag "emails", nil, rows: 5,
|
||||
placeholder: t('management.user_invites.new.info'),
|
||||
aria: {describedby: "emails-help-text"} %>
|
||||
<div class="small-12 medium-6 large-3">
|
||||
<input type="submit" name="" value="<%= t('management.user_invites.new.submit') %>", class="button expanded">
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
<p><%= t("management.users.create_user_info") %></p>
|
||||
<h2><%= t("management.users.create_user_info") %></h2>
|
||||
|
||||
<%= render 'management/user_permissions',
|
||||
message: t("management.document_verifications.in_census_has_following_permissions"),
|
||||
permissions: [:debates, :create_proposals, :support_proposals, :vote_proposals] %>
|
||||
<div class="small-12 medium-6 column">
|
||||
|
||||
<div class="row verification account">
|
||||
<div class="small-12 medium-6 column">
|
||||
<div class="verification account">
|
||||
<%= form_for @user, url: management_users_path do |f| %>
|
||||
<%= f.hidden_field :document_type %>
|
||||
<%= f.hidden_field :document_number %>
|
||||
@@ -27,3 +24,10 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-6 column">
|
||||
<div class="callout">
|
||||
<%= render "management/user_permissions",
|
||||
message: t("management.document_verifications.in_census_has_following_permissions"),
|
||||
permissions: [:debates, :create_proposals, :support_proposals, :vote_proposals] %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user