Sha256: 8e4b74f30780be5d30174a88f3e18dd6d6928fd771393928105c52baef11f801
Contents?: true
Size: 930 Bytes
Versions: 7
Compression:
Stored size: 930 Bytes
Contents
<h2>Edit Component File</h2> <% form_tag({:controller => 'cms/components', :action => 'update', :url => CGI::escape(@component.path)}, :class => 'simple_form') do %> <div class="string required"> <%= label_tag :name, nil, :class => 'string required' %> <%= text_field_tag :name, @component.path, :readonly => true, :class => 'string required' %> </div> <div class="text required"> <%= label_tag :file_content, 'Content', :class => 'text required' %> <%= text_area_tag :file_content, @component.read, :rows => 40, :class => 'text required' %> <span class="hint"><%= t('simple_form.hints.cms_component.file_content') %></span> </div> <div class="buttons"> <%= submit_tag 'Update', :class => 'update' %> or <%= link_to t('simple_form.buttons.cancel'), :back, :class => 'cancel' %> </div> <% end %> <%= codemirror_edit Cms::Editable::content_type(@component.path), 'form.simple_form', 'file_content' %>
Version data entries
7 entries across 7 versions & 1 rubygems