Sha256: 271b11ff4fa105f86bdf6dd8db76d73c8d4159093f6af1b3d0ddf3b5840beacc

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

<div id="panel-properties-element" class="panel" style="display:block;">
    <p>Update the settings for this element.</p>
    
    <div id="errors">
       <%= render :partial => 'errors', :locals => { :element => element }%>
    </div>

<%= form_for :element, :url => admin_question_sheet_page_element_path( @page.question_sheet_id, @page.id, element.id), :remote => true, :html => {:method => :put} do |f| -%>

  <%= render :partial => 'admin/panels/prop_' + element.class.to_s.underscore, :locals => { :f => f, :element => element } %>
  
  <% if element.question? -%>
    <!-- <h3>Dependency</h3>
    <p><strong>Ask this question if:</strong></p> 
    <% element.conditions.each_with_index do |condition, i| %>
      <%#= render :partial => 'admin/panels/condition', :object => condition, :locals => {:i => i} %>
    <% end %> -->
    
    <%= render :partial => 'admin/panels/advanced_options', :locals => { :f => f, :element => element } %>
  <% end-%>

  <p class="buttons">
    <button type="submit"><span>Update</span></button>
    <%= link_to('Close', '#', 'data-dom_id' => dom_id(element), :class => 'close_prop') %>
    <%#= link_to('Delete', admin_question_sheet_page_element_path( @page.question_sheet_id,  @page.id, element.id), :remote => true, :method => :delete, data: {:confirm => "Are you sure you want to delete this element?"}) %>
  </p>

<% end -%>

</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fe-0.0.3 app/views/fe/admin/panels/_prop_element.html.erb