Sha256: 6c8ac9ecb9108bdd9fe3aad820924f854fe7afa7460f77cd2e2a7f220e305ec0

Contents?: true

Size: 794 Bytes

Versions: 21

Compression:

Stored size: 794 Bytes

Contents

<%= turbo_frame_tag dom_id(@image) + "_filename" do %>
  <%= form_with model: @image, url: spina.admin_image_path(@image), html: {class: 'w-full max-w-sm pr-3'} do |f| %>
    <div class="flex items-center w-full">
      <div class="relative w-full mr-2">
        <%= text_field_tag :filename, @image.file.filename.base, class: 'form-input w-full h-9 pr-10 text-sm', placeholder: t('spina.media_library.filename'), data: {controller: "autofocus"} %>
        <div class="absolute top-0 right-2 h-full flex items-center text-gray-400">
          <%= ".#{@image.file.filename.extension}" %>
        </div>
      </div>
      
      <button type="submit" class="btn btn-default px-2">
        <%= heroicon("check", style: :solid, class: "w-5 h-5") %>
      </button>
    </div>
  <% end %>
<% end %>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
spina-2.1.0 app/views/spina/admin/images/edit.html.erb