Sha256: f759ef3a4bf35f25dd2b70a110841ae0d4a054ae2c83cd7d8ea34ba9cf613e51
Contents?: true
Size: 1.42 KB
Versions: 2
Compression:
Stored size: 1.42 KB
Contents
<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"> <div class="card__content"> <%= form_for(@form) do |form| %> <div class="field"> <%= form.text_field :title %> </div> <div class="field"> <%= form.text_area :body, rows: 10 %> </div> <% if @form.categories&.any? %> <div class="field"> <%= form.categories_select :category_id, @form.categories, prompt: t(".select_a_category") %> </div> <% end %> <% if @form.scopes&.any? %> <div class="field"> <%= form.select :scope_id, @form.scopes.map{|s| [s.name, s.id]}, prompt: t(".select_a_scope") %> </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 %> </div> <% end %> <div class="actions"> <%= form.submit t(".send"), class: "button expanded" %> </div> <% end %> </div> </div> </div> </div>
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
decidim-proposals-0.0.3 | app/views/decidim/proposals/proposals/new.html.erb |
decidim-0.0.3 | decidim-proposals/app/views/decidim/proposals/proposals/new.html.erb |