Sha256: 1165e77ab02eceb59e1c69147b0cf534a4fa6768963b15431a67e644b4ef55dd
Contents?: true
Size: 1.53 KB
Versions: 7
Compression:
Stored size: 1.53 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 } %> <div class="button--double form-general-submit"> <%= f.hidden_field :current_step %> <%= 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 %> <% else %> <div class="content <%= current_step %>"> <%= render partial: current_step.to_s %> </div> <% end %>
Version data entries
7 entries across 7 versions & 1 rubygems