Sha256: d4ae6ba3ecdf8d575458db6004ea94b96fd1c7e7b2a347759cd508f23a2db2e9
Contents?: true
Size: 1.54 KB
Versions: 2
Compression:
Stored size: 1.54 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 Animation Image .control-group = f.label :image, class: 'control-label' .controls = f.file_field :image = f.hidden_field :image_cache - if @layer.image? .image-preview = image_tag @layer.image.small.url %br = @layer.uploaded_filename .control-group = f.label :frame_rate, class: 'control-label' .controls .input-append = f.text_field :frame_rate %span.add-on pixels / frame .control-group = f.label :frame_count, class: 'control-label' .controls .input-append = f.text_field :frame_count %span.add-on frames .control-group = f.label :image_display_mode, class: 'control-label' .controls .input-append = f.select :image_display_mode, Flms::Layer::IMAGE_DISPLAY_MODES = 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/animation_layers/_form.html.haml |
flms-0.1.0 | app/views/flms/animation_layers/_form.html.haml |