Sha256: bd037de14d882bbdda05e952542143eb1101c2356af87a82fc39c2242c0bc40e

Contents?: true

Size: 519 Bytes

Versions: 7

Compression:

Stored size: 519 Bytes

Contents

- title "New #{ @node.type.underscore.humanize.downcase }"

- if @parent
  - for node in @parent.self_and_ancestors.reverse
    - breadcrumbs.add node.title, push_type.node_nodes_path(node)
  - breadcrumbs.add yield(:title), push_type.new_node_node_path(@parent)
- else
  - breadcrumbs.add yield(:title), push_type.new_node_path

= form_for @node, url: (@parent ? push_type.node_nodes_path(@parent, kind: @node.type.underscore) : push_type.nodes_path(kind: @node.type.underscore)) do |f|
  = render 'form_fields', f: f

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
push_type_admin-0.3.3 app/views/push_type/nodes/new.html.haml
push_type_admin-0.3.1 app/views/push_type/nodes/new.html.haml
push_type_admin-0.2.1 app/views/push_type/nodes/new.html.haml
push_type_admin-0.2.0 app/views/push_type/nodes/new.html.haml
push_type_admin-0.2.0.beta2 app/views/push_type/nodes/new.html.haml
push_type_admin-0.1.1 app/views/push_type/nodes/new.html.haml
push_type_admin-0.1.0 app/views/push_type/nodes/new.html.haml