Sha256: 07c1ff69edecfd4f44fc96e0e754b471694720048ca56a74405f438febf5cf84
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
<%= turbo_frame_tag dom_id(@translation_key) do %> <%= form_with model: @translation, url: translation_key_translation_path(@translation_key), method: :patch, class: "relative" do |f| %> <%= hidden_field_tag :locale_id, @locale.id %> <div class="overflow-hidden rounded-lg shadow-sm ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-indigo-600"> <%= f.label :value, "Translation", class: "sr-only" %> <%= f.text_area :value, row: 3, autofocus: true, placeholder: "Enter your translation", class: "block w-full resize-none border-0 bg-transparent py-1.5 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6" %> <div class="py-2" aria-hidden="true"> <div class="py-px"> <div class="h-9"></div> </div> </div> </div> <div class="absolute inset-x-0 bottom-0 flex justify-end gap-2 py-2 pl-3 pr-2"> <%= link_to "Discard", locale_translations_path(@locale), class: "btn btn-secondary" %> <%= f.submit "Save", class: "inline btn btn-primary" %> </div> <% end %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rosetta-rails-0.1.1 | app/views/rosetta/translations/edit.html.erb |