archive/app/views/admin/archive_files/_form_link.html.erb

16 lines
808 B
Plaintext

<div class="input-prepend input-append start-line" data-locale="<%=locale%>">
<span class="add-on icons-link" title="<%= t(:url) %>"></span>
<%= text_field_tag "#{f.object_name}[urls_translations][#{locale}][]", url , class: "input-large", placeholder: t(:url) %>
<span class="add-on icons-pencil" title="<%= t("archive.url_text") %>"></span>
<%= text_field_tag "#{f.object_name}[url_texts_translations][#{locale}][]", url_text , class: "input-large", placeholder: t("archive.url_text_hint") %>
<% if locale == "new_locale" %>
<span class="delete_link add-on btn" title="<%= t(:delete_) %>">
<a class="icon-trash"></a>
</span>
<% else %>
<span class="remove_existing_link add-on btn" title="<%= t(:remove) %>">
<a class="icon-remove"></a>
</span>
<% end %>
</div>