Sha256: e22370c3b1c2c01271c9365ae0def108b1bf2bb3e50bffa5a8667d9840d9499b

Contents?: true

Size: 1.55 KB

Versions: 7

Compression:

Stored size: 1.55 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|
              %div{ class: field_classes(field) }
                = f.label field.name, field.label
                = render_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

7 entries across 7 versions & 1 rubygems

Version Path
push_type_admin-0.7.0 app/views/push_type/nodes/_form_fields.html.haml
push_type_admin-0.7.0.beta.1 app/views/push_type/nodes/_form_fields.html.haml
push_type_admin-0.6.0 app/views/push_type/nodes/_form_fields.html.haml
push_type_admin-0.6.0.beta.4 app/views/push_type/nodes/_form_fields.html.haml
push_type_admin-0.6.0.beta.3 app/views/push_type/nodes/_form_fields.html.haml
push_type_admin-0.6.0.beta.2 app/views/push_type/nodes/_form_fields.html.haml
push_type_admin-0.6.0.beta.1 app/views/push_type/nodes/_form_fields.html.haml