decidim-budgets/app/views/decidim/budgets/admin/projects/_form.html.erb in decidim-0.0.6 vs decidim-budgets/app/views/decidim/budgets/admin/projects/_form.html.erb in decidim-0.0.7
- old
+ new
@@ -1,29 +1,39 @@
-<div class="field" >
- <%= form.translated :text_field, :title, autofocus: true %>
-</div>
+<div class="card">
+ <div class="card-divider">
+ <h2 class="card-title"><%= title %></h2>
+ </div>
-<div class="field" >
- <%= form.translated :editor, :description %>
-</div>
+ <div class="card-section">
+ <div class="row column" >
+ <%= form.translated :text_field, :title, autofocus: true %>
+ </div>
-<div class="field" >
- <%= form.number_field :budget %>
-</div>
+ <div class="row column" >
+ <%= form.translated :editor, :description %>
+ </div>
-<% if !current_participatory_process.scope %>
- <div class="field" >
- <%= form.collection_select :decidim_scope_id, organization_scopes, :id, :name %>
- </div>
-<% end %>
+ <div class="row column" >
+ <%= form.number_field :budget %>
+ </div>
-<div class="field" >
- <%= form.categories_select :decidim_category_id, current_participatory_process.categories, include_blank: true, disable_parents: false %>
-</div>
+ <% if !current_participatory_process.scope %>
+ <div class="row column" >
+ <%= form.collection_select :decidim_scope_id, organization_scopes, :id, :name %>
+ </div>
+ <% end %>
-<% if @form.proposals %>
- <%= form.select :proposal_ids,
- @form.proposals,
- {},
- { multiple: true, class: "chosen-select" }
- %>
-<% end %>
+ <div class="row column" >
+ <%= form.categories_select :decidim_category_id, current_participatory_process.categories, include_blank: true, disable_parents: false %>
+ </div>
+
+ <div class="row column">
+ <% if @form.proposals %>
+ <%= form.select :proposal_ids,
+ @form.proposals,
+ {},
+ { multiple: true, class: "chosen-select" }
+ %>
+ <% end %>
+ </div>
+ </div>
+</div>
\ No newline at end of file