Sha256: a0db97e2c6b62bce97bc9365266b9116d95162a96d50aaf71e30618489566270

Contents?: true

Size: 1.74 KB

Versions: 28

Compression:

Stored size: 1.74 KB

Contents

.tn-tc{class: field}
  %label
    - if defined?(lang)
      = field.gsub("_#{lang}", '').to_s.titleize
      (#{lang_title})
    - else
      = field.to_s.titleize

  .explanation
    Select rows from the library to build this section.
    You can format your text by highlighting it and selecting options from the pop-up menu.

  .tn-tc-main-actions
    = link_to '#', class: 'tn-tc-pop-out btn btn-primary' do
      = fa_icon('eye')
      %span Edit in Preview Mode

    = link_to '#', class: 'tn-tc-add-content btn btn-primary', 'data-modal-target' => ".#{field} .tenon-library", 'data-modal-clone' => 'true', 'data-modal-title' => 'Add Content', 'data-association-insertion-node' => "##{field}-tenon-content", 'data-association-insertion-method' => 'prepend', 'data-modal-handler' => 'Tenon.features.tenonContent.Library' do
      = fa_icon('plus-circle')
      %span Add Content

  .tn-tc-wrap
    .tn-tc-sizes
      %h2 Preview Mode
      %p
        Use preview mode to see how your content will look on different devices.  You can still make edits when you're in preview mode, but the toolbars are hidden to give you a better picture of how your content will be laid out.
      = tenon_content_sizes
      = link_to 'Done', '#', class: 'tn-tc-pop-out-close btn btn-comp'
    .tenon-content{id: "#{field}-tenon-content"}
      = f.fields_for "#{field}_tenon_content_rows" do |row|
        - if row.object
          = render "tenon/tenon_content/row", f: row, row_partial: row.object.decorate.form_partial, field: field, title: row.object.row_type.titleize

    .tenon-library-holder
      .tenon-library
        %ul
          - Tenon::TenonContent::RowTypes::LIBRARY_ROW_TYPES.each do |title, row_type|
            %li= row_link(title, row_type, field, f)
        .spacer

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
tenon-1.0.57 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.56 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.55 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.54 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.53 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.52 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.51 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.50 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.49 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.48 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.47 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.46 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.45 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.44 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.43 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.42 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.41 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.40 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.39 app/views/tenon/tenon_content/_fields.html.haml
tenon-1.0.38 app/views/tenon/tenon_content/_fields.html.haml