Sha256: 8c42f12f550a9b502c4fdc5c86d6a71c3ffa3eb4e7471dee66fee25d945fd70f
Contents?: true
Size: 1.67 KB
Versions: 18
Compression:
Stored size: 1.67 KB
Contents
<div class="card"> <div class="card-divider"> <h2 class="card-title"> <%= translated_attribute(election.title) %> </h2> </div> <div class="card-section"> <% steps(current_step).each_with_index do |step, i| %> <% if i > 0 %> > <% end %> <span class="<%= step.last %>"><%= t("steps.#{step.first}.title", scope: "decidim.elections.admin") %></span> <% end %> </div> </div> <% if @form %> <%= decidim_form_for(@form, url: election_step_path(election, current_step), method: :patch, html: { class: "form step #{current_step}" }) do |f| %> <%= render partial: current_step.to_s, locals: { form: @form, f: f } %> <%= f.hidden_field :current_step %> <% if @form.main_button? %> <div class="button--double form-general-submit"> <%= f.button type: :submit, class: "button", disabled: @form.invalid? do %> <% if @form.pending_action %> <span class='loading-spinner'></span> <%= t("steps.processing", scope: "decidim.elections.admin") %> <% else %> <%= t("steps.#{current_step}.submit", scope: "decidim.elections.admin") %> <% end %> <% end %> </div> <% if @form.pending_action %> <div id="pending_action" data-api-endpoint-url="<%= bulletin_board_server %>" data-message-id="<%= @form.pending_action.message_id %>"></div> <%= javascript_pack_tag "decidim_elections_admin_pending_action" %> <% end %> <% end %> <% end %> <% else %> <div class="content <%= current_step %>"> <%= render partial: current_step.to_s %> </div> <% end %> <%= render "decidim/elections/shared/broken_promises_modal" %>
Version data entries
18 entries across 18 versions & 1 rubygems