Sha256: 6287a9733a6344d189d12a7d1990b61e08d6fed053e0694210bb59aa7cf763f8

Contents?: true

Size: 1.35 KB

Versions: 6

Compression:

Stored size: 1.35 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:;', data: { disable_with: "Please wait..." } } 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

6 entries across 6 versions & 1 rubygems

Version Path
tenon-1.1.4 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.1.3 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.1.2 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.1.1 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.76 app/views/tenon/tenon_callouts/_form.html.haml
tenon-1.0.75 app/views/tenon/tenon_callouts/_form.html.haml