Sha256: 334507f106849db97b2c79e263289b06bb7ec23693f34b27d957e2e4b7bdd221
Contents?: true
Size: 1.37 KB
Versions: 27
Compression:
Stored size: 1.37 KB
Contents
<summary><%= t(".question") %></summary> <div> <p><%= translated_attribute(question.body) %></p> <% @form = form || Decidim::Meetings::AnswerForm.new(question_id: question.id, current_user: current_user) %> <%= decidim_form_for(@form, url: meeting_polls_answers_path(meeting), method: :post, remote: true, html: { class: "form answer-questionnaire" }, data: { "safe-path" => meeting_live_event_path(meeting) }) do |form| %> <div class="row column answer question" data-max-choices="<%= question.max_choices %>"> <%= render partial: "decidim/meetings/polls/answers/#{question.question_type}", locals: { answer: @form.answer, question: question, answer_form: form, disabled: question.answered_by?(current_user), field_id: question.id } %> <%= form.hidden_field :question_id %> <small class="form-error max-choices-alert"><%= t(".max_choices_alert") %></small> <% @form.errors.full_messages.each do |msg| %> <small class="form-error is-visible margin-top-1"><%= msg %></small> <% end %> </div> <% if question.answered_by?(current_user) %> <div class="callout success margin-top-1"> <%= t(".question_replied") %> </div> <% else %> <div class="text-right"> <button class="button button--nomargin primary small margin-top-1"><%= t(".reply_question") %></button> </div> <% end %> <% end %> </div>
Version data entries
27 entries across 27 versions & 1 rubygems