Sha256: 9a308b71bb3bf532ae0174ea9006aa17c5930e3c5e0c8c4b2a4e05987f147a28

Contents?: true

Size: 1.31 KB

Versions: 73

Compression:

Stored size: 1.31 KB

Contents

- content_for :sidebar do
  .sidebar
    .content
      %h2 Tenon Callouts
      = link_to "New Tenon Callout", new_tenon_callout_path, class: 'btn btn-block btn-primary'

= form_for @tenon_callout, builder: Tenon::FormBuilder do |f|
  = error_messages_for :tenon_callout

  .fields.large.tabs
    .tab-pane.active#details
      .form-group
        = f.text_field :title
      .form-group
        = f.text_area :content

  .fields.small
    %h4.box-label Details
    .box
      .form-group.bordered
        = f.text_field :button_text, :placeholder => '--'
      .form-group.bordered
        = f.text_field :icon, :placeholder => '--'
      .form-group.bordered
        = f.text_field :uri, :placeholder => '--'

      .form-group.bordered.inline
        = f.check_box :new_window, class: 'tn-checkbox-right'
        = f.super_label :new_window, 'Open in New Window'

    %h4.box-label Actions
    .box
      .form-group.inline
        = f.check_box :published, class: 'tn-checkbox-right'
        = f.super_label :published

      .content
        %button.btn.btn-comp.submit.btn-block{:href => 'javascript:;'} Save


      - if @tenon_callout.persisted?
        %hr
        .content
          = link_to "Delete", @tenon_callout, data: {method: :delete, confirm: 'Are you sure you want to delete this?'}, :class => 'delete-link'



    .spacer

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
tenon-1.0.74 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.73 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.72 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.71 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.70 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.69 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.68 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.67 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.66 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.65 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.64 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.63 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.62 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.61 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.60 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.59 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.57 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.56 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.55 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.54 app/views/tenon/tenon_callouts/_form.html.haml