Sha256: 5c54ad88f559915816dea8fabe783d8684df1d843af3187faab72a99b39f8e0a

Contents?: true

Size: 1.61 KB

Versions: 57

Compression:

Stored size: 1.61 KB

Contents

<% dialog_link = link_to_dialog render_icon(:file, style: "regular"),
  alchemy.admin_attachments_path(
    form_field_id: file_editor.form_field_id(:attachment_id),
    only: file_editor.settings[:only],
    except: file_editor.settings[:except]
  ),
  {
    title: Alchemy.t(:assign_file),
    size: "780x585",
    padding: false
  },
  class: "file_icon",
  title: Alchemy.t(:assign_file) %>

<%= content_tag :div,
  class: file_editor.css_classes,
  data: file_editor.data_attributes do %>
  <%= element_form.fields_for(:ingredients, file_editor.ingredient) do |f| %>
    <%= ingredient_label(file_editor) %>
    <div class="file">
      <% if file_editor.attachment %>
        <div class="file_icon">
          <%= render_icon(file_editor.attachment.icon_css_class) %>
        </div>
      <% end %>
      <div class="file_name">
        <%= file_editor.attachment&.name %>
      </div>
      <%= link_to render_icon(:times), "#",
        class: [
          "remove_file_link",
          file_editor.attachment ? nil : "hidden"
        ],
        data: {
          form_field_id: file_editor.form_field_id(:attachment_id)
        } %>
      <div class="file_tools">
        <%= dialog_link %>
        <%= link_to_dialog render_icon(:edit),
          alchemy.edit_admin_ingredient_path(file_editor),
          {
            title: Alchemy.t(:edit_file_properties),
            size: "400x215"
          },
          title: Alchemy.t(:edit_file_properties) %>
      </div>
      <%= f.hidden_field :attachment_id,
        value: file_editor.attachment&.id,
        id: file_editor.form_field_id(:attachment_id) %>
    </div>
  <% end %>
<% end %>

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
alchemy_cms-6.0.5 app/views/alchemy/ingredients/_file_editor.html.erb
alchemy_cms-6.0.4 app/views/alchemy/ingredients/_file_editor.html.erb
alchemy_cms-6.0.3 app/views/alchemy/ingredients/_file_editor.html.erb
alchemy_cms-6.0.2 app/views/alchemy/ingredients/_file_editor.html.erb
alchemy_cms-6.0.1 app/views/alchemy/ingredients/_file_editor.html.erb
alchemy_cms-6.0.0 app/views/alchemy/ingredients/_file_editor.html.erb
alchemy_cms-6.0.0.pre.rc7 app/views/alchemy/ingredients/_file_editor.html.erb
alchemy_cms-6.0.0.pre.rc6 app/views/alchemy/ingredients/_file_editor.html.erb
alchemy_cms-6.0.0.pre.rc5 app/views/alchemy/ingredients/_file_editor.html.erb
alchemy_cms-6.0.0.pre.rc4 app/views/alchemy/ingredients/_file_editor.html.erb
alchemy_cms-6.0.0.pre.rc3 app/views/alchemy/ingredients/_file_editor.html.erb
alchemy_cms-6.0.0.pre.rc2 app/views/alchemy/ingredients/_file_editor.html.erb
alchemy_cms-6.0.0.pre.rc1 app/views/alchemy/ingredients/_file_editor.html.erb
alchemy_cms-6.0.0.pre.b6 app/views/alchemy/ingredients/_file_editor.html.erb
alchemy_cms-6.0.0.pre.b5 app/views/alchemy/ingredients/_file_editor.html.erb
alchemy_cms-6.0.0.pre.b4 app/views/alchemy/ingredients/_file_editor.html.erb
alchemy_cms-6.0.0.b3 app/views/alchemy/ingredients/_file_editor.html.erb