Sha256: 91bc6c952c7a410519c1bde3d2ac9340f7acfe0c2e93483e9ae28635ae854e1a

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

<div id="posts__post_newSurvey_Question-NEW_RECORD" class="p-2 flex flex-col gap-2">
  <%= form.label :title, '', class: 'flex flex-col gap-2 py-2' do %>
    <%= content_tag(:span, t("decidim.components.posts.newFeed.newSurvey.questionTitle"), class: "post_label font-bold") %>
    <%= form.text_field :title, class: 'form-control', label: false,  placeholder: t("decidim.components.posts.newFeed.newSurvey.questionTitle") %>
  <% end %>
  <div class="flex gap-2 justify-betwee py-2">
    <%= form.select :question_type, options_for_select(Decidim::Posts::Question.question_types.keys.map { |key| [t("decidim.components.posts.newFeed.newSurvey.questionTypes.#{key}"), key] }), {}, class: 'form-control' %>
    <button class="posts__post_newAnswer-btn button button__sm button__transparent-primary ml-auto" type="button" aria-haspopup="true" aria-controls="posts__post_newSurvey_answersContainer" data-question-id="NEW_RECORD">
      <%= t("decidim.components.posts.newFeed.newSurvey.newAnswer") %>
      <%= icon "add-line" %>
    </button>
  </div>
  <div id="posts__post_newSurvey_answersContainer-NEW_RECORD" class="posts__post_newSurvey_answersContainer" aria-live="polite" ></div>
  <small>
    <%#= link_to t("decidim.components.posts.newFeed.newSurvey.deleteQuestion"), "#" %>
  </small>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-posts-1.0.0 app/views/decidim/posts/posts/_new_survey_question.html.erb