Sha256: 3708f4392c5335bb326a4396d3799b1d9a88289cb9d7a7a6f193787fd2a5adb8

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

= form_for [@block, @layer], html: {class: 'form-horizontal'} do |f|
  %fieldset
    %legend= caption

    - if @layer.errors.any?
      #error_explanation
        %h2= "#{pluralize(@layer.errors.count, "error")} prohibited this layer from being saved:"
        %ul
          - @layer.errors.full_messages.each do |msg|
            %li= msg

  = render partial: 'flms/layers/common_fields', locals: { form_block: f }

  %fieldset
    %legend
      Text
    .control-group
      = f.label :text, class: 'control-label'
      .controls
        = f.text_field :text

    .control-group
      = f.label :font_size, class: 'control-label'
      .controls
        .input-append
          = f.text_field :font_size
          %span.add-on em

    .control-group
      = f.label :color, class: 'control-label'
      .controls
        .input-prepend
          %span.add-on #
          = f.text_field :color

  = render partial: 'flms/layers/keyframe_fields', locals: { form_block: f }

  .control-group
    .controls
      .actions
        = f.submit class: 'btn btn-primary'
             
        = link_to 'Cancel', edit_block_path(@block)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flms-0.9.0 app/views/flms/text_layers/_form.html.haml
flms-0.1.0 app/views/flms/text_layers/_form.html.haml