Sha256: 8e5aeebda581779074ee1fd597374c58b68ff2aacfc947a6921b1b0e2243c2de

Contents?: true

Size: 1.53 KB

Versions: 4

Compression:

Stored size: 1.53 KB

Contents

<%= decidim_form_for(@answer_form, url: proposal_proposal_answer_path(proposal, @answer_form), html: { class: "form form-defaults edit_proposal_answer" }) do |f| %>
  <div class="form__wrapper">
    <div class="card" id="proposal-answer">
      <div class="card-divider">
        <h2 class="card-title"><%= t ".title", title: present(proposal).title %></h2>
      </div>

      <% if defined?(Decidim::Templates) %>
        <%= render "decidim/templates/admin/proposal_answer_templates/template_chooser", form: f %>
      <% end %>

      <div class="row column flex items-center gap-x-4 my-2">
        <%= f.collection_radio_buttons :internal_state, available_states, :token, ->(a) { translated_attribute(a.title) }, prompt: true do |builder|
              builder.label { builder.radio_button + builder.text } end %>
      </div>

      <div class="row column">
        <%= f.translated :editor, :answer, autofocus: true, rows: 15 %>
      </div>

      <% if current_component.current_settings.answers_with_costs? %>
        <div class="row column">
          <%= f.number_field :cost %>
        </div>

        <div class="row column">
          <%= f.translated :editor, :cost_report, lines: 12 %>
        </div>

        <div class="row column">
          <%= f.translated :editor, :execution_period, lines: 12 %>
        </div>
      <% end %>
    </div>
  </div>
  <div class="item__edit-sticky">
    <div class="item__edit-sticky-container">
      <%= f.submit t(".answer_proposal"), class: "button button__sm button__secondary" %>
    </div>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-proposals-0.29.0.rc4 app/views/decidim/proposals/admin/proposal_answers/_form.html.erb
decidim-proposals-0.29.0.rc3 app/views/decidim/proposals/admin/proposal_answers/_form.html.erb
decidim-proposals-0.29.0.rc2 app/views/decidim/proposals/admin/proposal_answers/_form.html.erb
decidim-proposals-0.29.0.rc1 app/views/decidim/proposals/admin/proposal_answers/_form.html.erb