Sha256: 5f63a74020e198084a95a18db1f39218c47cff25a04317c0a90a5e9e1f248120

Contents?: true

Size: 1.08 KB

Versions: 17

Compression:

Stored size: 1.08 KB

Contents

%h1 New Text Page
- if @item && @item.parent_id>0 && @item.folder.present?
  Folder: #{@item.parent_title}
  %br

.row
  .col-md-12
    =horizontal_simple_form_for @item, url: createtextpage_pages_path, method: :post do |f|
      = render 'optimacms/admin/shared/form_errors', :object=>@item

      = f.input :parent_id, as: :hidden

      = f.input :name, as: :string, label: "Name", :hint=>'Unique name. Only latin letters, no spaces'
      = f.input :title, label: "Title", hint: "Your title. Ex. About us"
      = f.input :url, as: :string, label: "URL", hint: 'page UR:. Ex. about.html, company/history'


      = f.simple_fields_for :template do |ft|
        = ft.input :basedirpath, readonly: false, label: 'Template folder', hint: "ex: news/"
        = ft.input :tpl_format, label: "Template format", :collection=>Optimacms::Template::EXTENSIONS.keys

      = f.association :layout, label: "Layout", collection: @layouts, label_method: :title

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

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





Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
optimacms-0.3.15 app/views/optimacms/admin/pages/newtextpage.html.haml
optimacms-0.3.12 app/views/optimacms/admin/pages/newtextpage.html.haml
optimacms-0.3.11 app/views/optimacms/admin/pages/newtextpage.html.haml
optimacms-0.2.26 app/views/optimacms/admin/pages/newtextpage.html.haml
optimacms-0.2.25 app/views/optimacms/admin/pages/newtextpage.html.haml
optimacms-0.2.24 app/views/optimacms/admin/pages/newtextpage.html.haml
optimacms-0.3.4 app/views/optimacms/admin/pages/newtextpage.html.haml
optimacms-0.3.3 app/views/optimacms/admin/pages/newtextpage.html.haml
optimacms-0.2.21 app/views/optimacms/admin/pages/newtextpage.html.haml
optimacms-0.2.20 app/views/optimacms/admin/pages/newtextpage.html.haml
optimacms-0.2.16 app/views/optimacms/admin/pages/newtextpage.html.haml
optimacms-0.2.15 app/views/optimacms/admin/pages/newtextpage.html.haml
optimacms-0.2.14 app/views/optimacms/admin/pages/newtextpage.html.haml
optimacms-0.2.13 app/views/optimacms/admin/pages/newtextpage.html.haml
optimacms-0.2.12 app/views/optimacms/admin/pages/newtextpage.html.haml
optimacms-0.2.11 app/views/optimacms/admin/pages/newtextpage.html.haml
optimacms-0.2.9 app/views/optimacms/admin/pages/newtextpage.html.haml