Sha256: 7700ac33d73b1144976b0aea5a7ac781b6b6a7031df9bc4f3fdaeebe7182664d

Contents?: true

Size: 737 Bytes

Versions: 7

Compression:

Stored size: 737 Bytes

Contents

<h2>Edit Component File</h2>

<p>No liquid support currently for editing components.</p>

<%= form_tag({:controller => 'cms/components', :action => 'update', :url => CGI::escape(@component.path)}, :class => 'formtastic') do %>
  <fieldset class="inputs">
    <ol>
      <li class="string"><%= label_tag :name %> <%= text_field_tag :name, @component.path, :readonly => true %></li>
      <li class="text"><%= label_tag :contents %> <%= text_area_tag :contents, @component.read, :rows => 40 %></li>
    </ol>
  </fieldset>

  <fieldset class="buttons">
    <ol>
      <li><%= submit_tag 'Update' %></li>
    </ol>
  </fieldset>
<% end %>

<%= codemirror_edit Cms::Editable::content_type(@component.path), 'form.simple_form', 'contents' %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
liquid_cms-0.3.0.6 app/views/cms/components/edit.html.erb
liquid_cms-0.3.0.5 app/views/cms/components/edit.html.erb
liquid_cms-0.3.0.4 app/views/cms/components/edit.html.erb
liquid_cms-0.3.0.3 app/views/cms/components/edit.html.erb
liquid_cms-0.3.0.2 app/views/cms/components/edit.html.erb
liquid_cms-0.3.0.1 app/views/cms/components/edit.html.erb
liquid_cms-0.3.0 app/views/cms/components/edit.html.erb