<%= stylesheet_pack_tag "decidim_elections_trustee_zone", media: "all" %>

<%= t(".not_supported_browser_title") %>

<%= t(".not_supported_browser_description") %>

<%= decidim_form_for(trustee, html: { class: "form edit_trustee" }) do |f| %> <%= f.hidden_field :slug %> <%= f.hidden_field :name %> <%= f.hidden_field :public_key %> <%= f.submit "", id: "submit_identification_public_key", class: "hide" %> <% end %>

<%= t(".trustee_role_description") %>

<% if trustee.public_key.blank? %>

<%= t(".identification_keys.title") %>

<%= t(".identification_keys.generate_legend") %>

  1. <%= t(".identification_keys.generate_legend_1") %>
  2. <%= t(".identification_keys.generate_legend_2") %>
  3. <%= t(".identification_keys.generate_legend_3") %>
  4. <%= t(".identification_keys.generate_legend_4") %>

<%= t(".identification_keys.submit_title") %>

<%= t(".identification_keys.submit_legend") %>

">
<% else %>
id="upload_identification_keys" class="hide">

<%= t(".identification_keys.title") %>

<%= t(".identification_keys.upload_legend") %>

<%= t(".elections.title") %>

<% if trustee.elections.any? %>
<% trustee.elections.each do |election| %> <% end %>
<%= t(".elections.list.election") %> <%= t(".elections.list.voting_period") %> <%= t(".elections.list.bb_status") %> <%= t(".elections.list.action_required.name") %>
<%= present(election).title %> <%= l(election.start_time, format: :decidim_short) %> - <%= l(election.end_time, format: :decidim_short) %> <%= election.bb_status %> <% if election.trustee_action_required? %> <%= link_to trustee_election_elections_path(election) do %> <%= t(".elections.list.action_required.true") %> <% end %> <% else %> <%= t(".elections.list.action_required.false") %> <% end %>
<% else %>
<%= t(".elections.no_elections") %>
<% end %> <% end %>
<%= javascript_pack_tag "decidim_elections_trustee_trustee_zone" %>