Sha256: 9d2c260cb0bc42ee54e2bfc0cfd55f6585200890fc0af51ae12ef3ce75828392
Contents?: true
Size: 760 Bytes
Versions: 5
Compression:
Stored size: 760 Bytes
Contents
div class=[SimpleFormAttachments.dom_class(:attachment), (SimpleFormAttachments.dom_class(:attachment, :is_uploaded) if attachment.present? && attachment.errors.to_a.blank?)] div class=SimpleFormAttachments.dom_class(:attachment, [:col, :handle]) = yield div class=SimpleFormAttachments.dom_class(:attachment, [:col, :hidden]) = fields.hidden_field :id = form.hidden_field(relation_key, multiple: multiple, value: attachment.id) if attachment.errors.empty? div class=SimpleFormAttachments.dom_class(:attachment, [:col, :actions]) - button_type = attachment.errors.to_a.any? ? :close : :delete button class=SimpleFormAttachments.dom_class([:button, button_type]) = I18n.t(button_type, scope: 'simple_form_attachments.buttons')
Version data entries
5 entries across 5 versions & 1 rubygems