Sha256: 8fa621a58dd5e2db536bb997eba877aa506a9bd10628f1b657ce84c94262b375
Contents?: true
Size: 1.96 KB
Versions: 5
Compression:
Stored size: 1.96 KB
Contents
<% title "Translations" %> <div id="add-translation" class="modal hide fade"> <div class="modal-header"> <a class="close" data-dismiss="modal">×</a> <h3>Translation</h3> </div> <div class="modal-body"> <div class="row"> <%= form_tag translations_path, id: 'form-translation', remote: true do %> <div class="span1"> <%= label_tag :locale %> <%= text_field_tag :locale, '', class: 'span1', autofocus: true %> </div> <div class="span4"> <%= label_tag :key %> <%= text_field_tag :key, '', class: 'span4' %> </div> <div class="span5"> <%= label_tag :value %> <%= text_area_tag :value, '', class: 'span5' %> </div> <div class="span2"> <br /> <%= button_tag "Submit", class: 'btn' %> </div> <% end %> </div> </div> </div> <div class="navbar"> <div class="navbar-inner"> <%= form_tag translations_path, class: 'navbar-form pull-left', method: :get, id: 'search-form' do %> <%= text_field_tag :query, params[:query], hint: 'Search', placeholder: 'Search', autofocus: true %> <%= button_tag 'search', class: 'btn' %> <%= link_to 'clear', translations_path, class: 'btn' %> <% end %> <div class="pull-right"> <%= link_to 'new', '#', data: { toggle: "modal", target: '#add-translation'}, id: 'add-translation-link', class: 'btn' %> </div> </div> </div> <hr/> <div class="apple_pagination"> <%= will_paginate @translations, :container => false %> </div> <table class="table table-hover" id="translations-table"> <thead> <th>key</th> <% I18n.available_locales.each do |locale| %> <th> <%= locale %> </th> <% end %> </thead> <tbody> <% @translations.each do |key| %> <%= render 'key_translation', key: key %> <% end %> </tbody> </table> <div class="apple_pagination"> <%= will_paginate @translations, :container => false %> </div>
Version data entries
5 entries across 5 versions & 1 rubygems