app/views/decidim/proposals/proposals/edit_draft.html.erb in decidim-proposals-0.10.1 vs app/views/decidim/proposals/proposals/edit_draft.html.erb in decidim-proposals-0.11.0.pre1
- old
+ new
@@ -13,11 +13,11 @@
<div class="field">
<%= form.text_area :body, rows: 10 %>
</div>
- <% if feature_settings.geocoding_enabled? %>
+ <% if component_settings.geocoding_enabled? %>
<div class="field">
<%= form.check_box :has_address %>
</div>
<div class="field" id="address_input">
<%= form.text_field :address %>
@@ -40,11 +40,13 @@
<div class="field">
<%= user_group_select_field form, :user_group_id %>
</div>
<% end %>
- <div class="actions">
- <%= form.submit t(".send"), class: "button expanded", data: { disable: true } %>
+ <div class="row column flex-center">
+ <%= link_to t(".discard"), destroy_draft_proposal_path(@proposal), method: :delete, data: { confirm: t(".discard_confirmation") } %>
+
+ <%= form.submit t(".send"), class: "button button--nomargin small", data: { disable: true } %>
</div>
<% end %>
</div>
</div>
</div>