Sha256: d37493096bdd12f4d0b8a253dd4e8d9b041c9ac81b344a5ec73375eb295cf8d7

Contents?: true

Size: 1.46 KB

Versions: 11

Compression:

Stored size: 1.46 KB

Contents

= form_for @node, url: url do |f|
  %div{ ng: { controller: 'NodeFormCtrl', init: "node=#{ node_hash(@node).to_json }" } }
    .large-8.columns
      .container
        .head
          .left.btn= link_to ficon(:previous), node_back_link(@node)
          .title= yield :title
        .body.padded
          .row.title
            .columns
              = f.label :title
              = f.text_field :title, :'ng-model' => 'node.title', :'ng-keyup' => 'setSlug()'
          .row.permalink
            .columns{ ng: { class: 'permalinkVisibility()' } }
              %span.key Permalink
              %span.value
                %span.show-for-medium-up http://#{ request.host_with_port }/
                = content_tag :span, @node.parent.permalink+'/' if @node.parent
                %span {{ node.slug }}
              %button.button.tiny.radius.secondary{ data: { dropdown: 'slug-field' } } Edit
              #slug-field.f-dropdown.content{ data: { dropdown: { content: true } } }
                = f.label :slug
                = f.text_field :slug, :'ng-model' => 'node.slug'
              - if @node.errors.include? :slug
                .error-icon= ficon :info, 'Error'

          .row.custom-fields
            - @node.fields.each do |key, field|
              = render_custom_field field, f

    .large-4.columns
      .side-panel{ :'side-panel' => true }
        .padded
          = render 'meta_table', f: f
        .submit.text-center
          = render 'form_submit', f: f

      

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
push_type_admin-0.5.3 app/views/push_type/nodes/_form_fields.html.haml
push_type_admin-0.5.2 app/views/push_type/nodes/_form_fields.html.haml
push_type_admin-0.5.1 app/views/push_type/nodes/_form_fields.html.haml
push_type_admin-0.5.0 app/views/push_type/nodes/_form_fields.html.haml
push_type_admin-0.5.0.alpha.5 app/views/push_type/nodes/_form_fields.html.haml
push_type_admin-0.5.0.alpha.4 app/views/push_type/nodes/_form_fields.html.haml
push_type_admin-0.5.0.alpha.3 app/views/push_type/nodes/_form_fields.html.haml
push_type_admin-0.5.0.alpha.2 app/views/push_type/nodes/_form_fields.html.haml
push_type_admin-0.5.0.alpha.1 app/views/push_type/nodes/_form_fields.html.haml
push_type_admin-0.4.0 app/views/push_type/nodes/_form_fields.html.haml
push_type_admin-0.4.0.beta.3 app/views/push_type/nodes/_form_fields.html.haml