Sha256: 1fbb68e17c03142102dcf0528b29e05800deabdeb66d89113a0035d2fa6ef9af
Contents?: true
Size: 1.62 KB
Versions: 16
Compression:
Stored size: 1.62 KB
Contents
<% section = form.object %> <div class="card plan-section" id="<%= id %>-field"> <div class="card-divider section-divider"> <h2 class="card-title"> <span> <%== "#{icon("move")} #{t(".section")}" %> </span> <button class="button small alert hollow move-up-section button--title"> <%== "#{icon("arrow-top")} #{t(".up")}" %> </button> <button class="button small alert hollow move-down-section button--title"> <%== "#{icon("arrow-bottom")} #{t(".down")}" %> </button> <button class="button small alert hollow remove-section button--title"> <%= t(".remove") %> </button> </h2> </div> <div class="card-section"> <div class="row column"> <%= form.select( :section_type, options_for_select(section_types, section.section_type) ) %> </div> <div class="row column"> <%= form.translated( :text_field, :body, tabs_id: id, label: t(".body"), ) %> </div> <div class="row column"> <%= form.translated( :text_area, :help, tabs_id: id, label: t(".help"), rows: 4 ) %> </div> <div class="row column"> <%= form.check_box( :mandatory, label: t(".mandatory") ) %> </div> <div class="row column"> <%= form.number_field( :answer_length, min: 0, label: t(".answer_length") ) %> </div> <%= form.hidden_field :id %> <%= form.hidden_field :position, value: section.position || 0 %> <%= form.hidden_field :deleted %> </div> </div>
Version data entries
16 entries across 16 versions & 1 rubygems