Sha256: 99dbfb62b4f9053c683a9933e210fc51809019f6728f3b7955a2e458fa4d9a6d
Contents?: true
Size: 1.8 KB
Versions: 1
Compression:
Stored size: 1.8 KB
Contents
<% default_locale = I18nAdminUtils::Config.locales.first %> <div class="row"> <div class="col-md-12"> <div class="btn-group"> <% translation.translations.each do |locale, translation| %> <% type = translation.blank? ? 'danger' : 'success' %> <div class="btn btn-<%= type %> locale-tab <%= 'active' if locale == default_locale %>" data-translation='<%= translation %>' data-locale='<%= locale %>'> <%= locale %> </div> <% end %> </div> </div> </div> <div class="row" style="margin-top: 2rem"> <div class="col-md-6"> <b>Key:</b> <%= translation.key %> <div> <%= form_tag translation_edit_path, :class => 'translation_form translation_helper' do %> <%= hidden_field_tag :locale, default_locale %> <%= hidden_field_tag :key, translation.key %> <%= text_area_tag :value, translation.translations[default_locale], :class => 'form-control autosize', 'data-update' => 'value_ta', :placeholder => 'Translate here...' %> <button class='btn btn-default'> Add </button> <% end %> </div> </div> <div class="col-md-6"> <div class="editor_container"> <div> <% translation.locations.each do |location| %> <div class="location_container"> <div> <i><%= location[:filename] %></i> </div> <div> <%= rails_embed_editor(location[:filename], :line => location[:line], :radius => 4, :editormode => RailsEmbedEditor::EditorMode::READ_WRITE, :highlight => location[:line]) %> </div> </div> <% end %> </div> </div> </div> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
i18n_admin_utils-1.1.0 | app/views/i18n_admin_utils/translation/_show.html.erb |