Sha256: 14f8c4fe350ca08bbd3c6bff05258f6bc8209865bafbca62fcd389fe31b114fd

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

<div id="panel-properties-page" class="panel" style="display:block;">
    <p>Update the settings for this page.</p>

    <div id="errors">
       <%= render :partial => 'errors', :locals => { :page => page }%>
    </div>

  <%= form_for(page, :url => fe_admin_question_sheet_page_path(page.question_sheet_id, page.id), :remote => true, :html => {:method => :put}) do |f| %>
    <p><label for="" class="desc">Label (English) <span class="required">required</span></label>
        <%= f.text_field :label, maxlength: 100, size: 40 %></p>
      <% page.question_sheet.languages.select(&:present?).each do |language| %>
        <p>
        <label for="fe_page_label_translations_<%= language %>" class="desc">Label (<%= Fe::LANGUAGES[language] %>) <span class="required">required</span></label>
        <%= text_field_tag "fe_page[label_translations][#{language}]", page.label_translations[language] %>
        </p>
      <% end %>
    <p><label for="" class="desc">Hidden</label>
        <%= f.check_box :hidden %></p>

    <p class="buttons">
      <%= submit_tag "Update &raquo;".html_safe, data: { disable_with: "Please wait..." } %>
    </p>
    <p class="buttons"><%= link_to "Delete", fe_admin_question_sheet_page_path(page.question_sheet_id, page.id), :remote => true, :method => :delete, data: {confirm: "Are you sure you want to delete this page?"} %></p>
  <% end %>

</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fe-1.0.0 app/views/fe/admin/panels/_prop_page.html.erb