app/views/decidim/proposals/proposals/new.html.erb in decidim-proposals-0.9.3 vs app/views/decidim/proposals/proposals/new.html.erb in decidim-proposals-0.10.0
- old
+ new
@@ -1,26 +1,12 @@
-<div class="row columns">
- <%= link_to :back, class: "muted-link" do %>
- <%= icon "chevron-left", class: "icon--small" %>
- <%= t(".back") %>
- <% end %>
- <h2 class="section-heading"><%= t(".title") %></h2>
-</div>
-
<div class="row">
- <div class="columns large-6 medium-centered">
- <div class="card">
- <% if translated_attribute(feature_settings.new_proposal_help_text).present? %>
- <%= render partial: "decidim/shared/announcement", locals: { announcement: feature_settings.new_proposal_help_text } %>
- <% end %>
+ <%= render partial: "wizard_aside" %>
- <div class="row column">
- <div class="callout warning">
- <%= t(".proposal_edit_before_minutes", count: feature_settings.proposal_edit_before_minutes) %>
- </div>
- </div>
+ <div class="columns large-6">
+ <%= render partial: "wizard_header" %>
+ <div class="card">
<div class="card__content">
<%= decidim_form_for(@form) do |form| %>
<div class="field">
<%= form.text_field :title %>
</div>
@@ -50,11 +36,11 @@
</div>
<% end %>
<% if current_user.user_groups.verified.any? %>
<div class="field">
- <%= form.select :user_group_id, current_user.user_groups.verified.map{|g| [g.name, g.id]}, prompt: current_user.name %>
+ <%= user_group_select_field form, :user_group_id %>
</div>
<% end %>
<% if feature_settings.attachments_allowed? %>
<fieldset>
@@ -70,14 +56,15 @@
<% end %>
</fieldset>
<% end %>
<div class="actions">
- <%= form.submit t(".send"), class: "button expanded", data: { disable: true } %>
+ <%= form.submit t(".send"), class: "button expanded mt-s mb-none", data: { disable: true } %>
</div>
<% end %>
</div>
</div>
</div>
+ <div class="columns large-3"></div>
</div>
<%= javascript_include_tag "decidim/proposals/add_proposal" %>