Sha256: 200df27ad30d6b93cc415e7d243e5515dd631ee8f04632b384f6ee89e301a642

Contents?: true

Size: 1.09 KB

Versions: 16

Compression:

Stored size: 1.09 KB

Contents

.page-header
  .row
    .col-md-6
      %h1
        New template
        %small
          <i class="ace-icon fa fa-angle-double-right"></i>
          select path and create file
    .col-md-4
      =link_to 'Back to templates', templates_path


.row
  .col-md-12
    = horizontal_simple_form_for @item, {url: templates_path, :html => { :class => "form-horizontal", :role => "form" }}.merge((@modal==1 ? {remote: true}: {}))  do |f|

      = render 'optimacms/admin/shared/form_errors', :object=>@item

      = hidden_field_tag :modal, @modal

      -#= f.input :parent_id, as: :hidden
      = f.input :type_id, as: :hidden
      = f.input :type, disabled: true, label: 'Type'

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

      = f.input :basedirpath, readonly: false, label: 'Folder', hint: "ex: news/"
      = f.input :basename, label: "Name", :hint=>'ex: index, show'

      = f.input :tpl_format, label: "Format", :collection=>Optimacms::Template::EXTENSIONS.keys

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

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


Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
optimacms-0.1.32 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.1.31 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.1.28 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.1.27 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.1.25 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.1.24 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.1.23 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.1.21 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.1.19 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.1.17 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.1.15 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.1.14 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.1.5 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.1.3 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.1.2 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.1.1 app/views/optimacms/admin/templates/new.html.haml