Sha256: 87db13d80bf414239f42b65fc1cc29360b86f0987041396b5b80efbe08b141ff
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
<div class="row" id="<%= "translation-#{id}" %>"> <div class="large-9 columns"> <% translations.try(:each) do |key, value| %> <input oninput="translationFieldChanged($(this))" data-locale="<%= key %>" id="<%= "translation-#{id}-#{key}" %>" name="<%= "#{field_name}[#{key}]"; %>" type="text" value="<%= value.to_s %>" style="display: none"/> <% end %> </div> <div class="large-3 columns"> <ul id="<%= "translation-labels-#{id}" %>" class="localized-field-locale-labels"> <% translations.try(:each) do |key, value| %> <li> <a id="<%= "translation-labels-#{id}-#{key}" %>" data-labels="<%= "translation-labels-#{id}" %>" data-locale="<%= key %>" onclick="translationLabelClicked($(this), '<%= "translation-#{id}" %>')"> <%= key.upcase %> </a> </li> <% end %> </ul> </div> </div> <script type="application/javascript"> $(document).ready(function () { initializeTranslationFields("<%= "translation-#{id}" %>", "<%= "translation-labels-#{id}" %>", "<%= "translation-#{id}-#{I18n.locale}" %>"); }); </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cavy-0.1.0.beta1 | app/views/cavy/admin_pages/_page_localized_string_field.html.erb |