Sha256: 94174784f7a3d56d2fa183fd86bc65ec8fc5b4c30a62c036912024c556e8ec76

Contents?: true

Size: 1.14 KB

Versions: 25

Compression:

Stored size: 1.14 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 :type_id, label: "Type", :collection=>Optimacms::TemplateType.all
      = 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

25 entries across 25 versions & 1 rubygems

Version Path
optimacms-0.1.61 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.4.3 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.4.2 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.3.9 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.3.8 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.3.7 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.3.6 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.3.5 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.3.2 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.3.1 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.2.23 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.2.22 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.2.19 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.2.18 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.2.17 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.2.8 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.2.7 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.2.6 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.2.5 app/views/optimacms/admin/templates/new.html.haml
optimacms-0.1.60 app/views/optimacms/admin/templates/new.html.haml