Sha256: 8055dd65681c77598e883292c04a9a82e13974c61aa5025439759a1fb5120840

Contents?: true

Size: 1.37 KB

Versions: 37

Compression:

Stored size: 1.37 KB

Contents

<% if @step == :step_4 %>
    <% body_messages = [t("decidim.proposals.proposals.preview.announcement_body")]
    if component_settings.proposal_edit_time == "limited"
      body_messages << t("decidim.proposals.proposals.preview.proposal_edit_before_minutes", count: component_settings.proposal_edit_before_minutes)
    end %>

  <%= cell(
    "decidim/announcement",
    {
      title: t("decidim.proposals.proposals.preview.announcement_title"),
      body: body_messages
    },
    callout_class: "warning"
  ) %>
<% else %>
  <%= cell("decidim/announcement", component_settings.new_proposal_help_text) %>
<% end %>

<% if proposal_wizard_step_help_text?(@step) %>
  <div class="proposal_wizard_help_text">
    <% callout_step_help_text_class ||= nil %>
    <%= cell(
      "decidim/announcement",
      component_settings.try("proposal_wizard_#{@step}_help_text"),
      callout_class: callout_step_help_text_class
    ) %>
  </div>
<% end %>

<h2 class="section-heading">
  <%= proposal_wizard_step_title action_name %>
  <%= "(#{@similar_proposals.count})" if @similar_proposals.present? %>
</h2>

<div class="hide-for-large m-bottom">
  <div><%= proposal_wizard_steps_title %></div>
  <div><%= proposal_wizard_current_step_of(@step) %></div>

  <div id="steps" class="wizard__steps steps-toggle is-hidden" data-toggler=".is-hidden">
    <%= proposal_wizard_stepper(@step) %>
  </div>
</div>

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
decidim-proposals-0.26.1 app/views/decidim/proposals/proposals/_wizard_header.html.erb
decidim-proposals-0.26.0 app/views/decidim/proposals/proposals/_wizard_header.html.erb
decidim-proposals-0.26.0.rc2 app/views/decidim/proposals/proposals/_wizard_header.html.erb
decidim-proposals-0.26.0.rc1 app/views/decidim/proposals/proposals/_wizard_header.html.erb
decidim-proposals-0.25.2 app/views/decidim/proposals/proposals/_wizard_header.html.erb
decidim-proposals-0.25.1 app/views/decidim/proposals/proposals/_wizard_header.html.erb
decidim-proposals-0.25.0 app/views/decidim/proposals/proposals/_wizard_header.html.erb
decidim-proposals-0.25.0.rc4 app/views/decidim/proposals/proposals/_wizard_header.html.erb
decidim-proposals-0.25.0.rc3 app/views/decidim/proposals/proposals/_wizard_header.html.erb
decidim-proposals-0.25.0.rc2 app/views/decidim/proposals/proposals/_wizard_header.html.erb
decidim-proposals-0.25.0.rc1 app/views/decidim/proposals/proposals/_wizard_header.html.erb
decidim-proposals-0.24.3 app/views/decidim/proposals/proposals/_wizard_header.html.erb
decidim-proposals-0.24.2 app/views/decidim/proposals/proposals/_wizard_header.html.erb
decidim-proposals-0.24.1 app/views/decidim/proposals/proposals/_wizard_header.html.erb
decidim-proposals-0.24.0 app/views/decidim/proposals/proposals/_wizard_header.html.erb
decidim-proposals-0.24.0.rc2 app/views/decidim/proposals/proposals/_wizard_header.html.erb
decidim-proposals-0.24.0.rc1 app/views/decidim/proposals/proposals/_wizard_header.html.erb