Sha256: fd1240fa9fc61c645980ed8bf3effcf1c2fd4e321eed96c547f7f3db680d58a6

Contents?: true

Size: 411 Bytes

Versions: 8

Compression:

Stored size: 411 Bytes

Contents

- provide :title, "Edit #{controller_name.classify}"
- navigation_add controller_name.titleize, [controller_name]

.form-page
  .form-page__intro
    - begin
      %h1
        #{controller_name.gsub('_', ' ').singularize.titleize}:
        = instance_variable_get("@#{controller_name.singularize}").name
    - rescue
      %h1= "Edit #{controller_name.gsub('_', ' ').singularize.titleize}"


  = render 'form'

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cd2_catton_cms-1.1.35 app/views/c/admin/edit.html.haml
cd2_catton_cms-1.1.34 app/views/c/admin/edit.html.haml
cd2_catton_cms-1.1.33 app/views/c/admin/edit.html.haml
cd2_catton_cms-1.1.32 app/views/c/admin/edit.html.haml
cd2_catton_cms-1.1.31 app/views/c/admin/edit.html.haml
cd2_catton_cms-1.1.30 app/views/c/admin/edit.html.haml
cd2_catton_cms-1.1.20 app/views/c/admin/edit.html.haml
cd2_catton_cms-1.1.10 app/views/c/admin/edit.html.haml