Sha256: 1788a5f48e14fe23b6254710a35d459ac73e3c61fcb2fac1646eb5186f0c105e

Contents?: true

Size: 1.26 KB

Versions: 6

Compression:

Stored size: 1.26 KB

Contents

File: #{@item.path}
%br
.row#mainform
  .col-md-12
    = horizontal_simple_form_for @item, {:html => { :class => "form-horizontal", :role => "form" }}.merge((@modal==1 ? {remote: true}: {}))  do |f|
      = render 'optimacms/admin/shared/form_errors', :object=>@item

      = f.input :continue, as: :fake_hidden, input_html: {value: "0"}, label: false

      = f.input :parent_id, as: :hidden

      = f.input :title, label: "Title"

      -# if @item && @item.parent_id>0
        = f.input :parent_title, disabled: true, label: 'Folder'

      -#= f.input :basename, disabled: true, label: 'Name'
      -#= f.input :basedirpath, label: "Folder", :disabled=> true
      -#= f.input :path, disabled: true, label: 'File'
      -#=link_to 'Rename', '#'

      = f.input :is_translated, label: "Translate?"


      = render 'form_content_translation', f: f, item: @item



      -#= f.button :submit_cancel, 'Save', :cancel=>@url_back
      = f.button :save_continue_cancel, 'Save', :cancel=>@url_back


:javascript

  $( document ).ready(function() {
    $('#mainform a.btn-save-continue').click(function(e){
      e.preventDefault();
      var f = $(this).closest("form");
      f.find("input[name='continue']").val("1");
      f.submit();
    });
  });

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
optimacms-0.2.26 app/views/optimacms/admin/templates/_form.html.haml
optimacms-0.2.25 app/views/optimacms/admin/templates/_form.html.haml
optimacms-0.2.24 app/views/optimacms/admin/templates/_form.html.haml
optimacms-0.3.4 app/views/optimacms/admin/templates/_form.html.haml
optimacms-0.3.3 app/views/optimacms/admin/templates/_form.html.haml
optimacms-0.2.21 app/views/optimacms/admin/templates/_form.html.haml