Sha256: 5af6a52ae5ecab1d5139dc378a3b1da9150a01c63a8cb08c521eb1d8491bbb88

Contents?: true

Size: 1.31 KB

Versions: 5

Compression:

Stored size: 1.31 KB

Contents

.assetable-assets.assetable-modal.modal.fade.assetable-modal-edit-asset
  .modal-dialog
    .modal-content
      = form_for [:assetable, asset], url: assetable_asset_path(asset, asset_type: asset.type), remote: true, html: {class: "form-edit-asset"} do |f|
        .modal-header
          %button.close{"aria-hidden" => "true", "data-dismiss" => "modal", type: "button"} ×
          %h4.modal-title Asset
        .modal-body
                    
          .form-group
            = f.label :name
            = f.text_field :name, class: "form-control input-fluid", required: true
          - unless f.object.filename.present?
            .form-group
              = f.label :filename
              = f.text_field :filename, class: "form-control input-fluid"
          .form-group
            = f.label :body
            = f.text_area :body, class: "form-control input-fluid"
          .form-group.row
            .col-xs-6
              = f.label :width
              = f.number_field :width, class: "form-control input-fluid"
            .col-xs-6
              = f.label :height
              = f.number_field :height, class: "form-control input-fluid"

        .modal-footer
          = button_tag "Cancel", class: "btn btn-default", :'data-dismiss' => "modal", type: "button"
          = f.submit "Save Asset", class: "btn btn-primary"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
assetable-0.3.1 app/views/assetable/assets/_form.html.haml
assetable-0.3.0 app/views/assetable/assets/_form.html.haml
assetable-0.2.4 app/views/assetable/assets/_form.html.haml
assetable-0.2.2 app/views/assetable/assets/_form.html.haml
assetable-0.2.1 app/views/assetable/assets/_form.html.haml