%= form_for [@problem, @translation], layout: :basic do |f| %>
<%= f.text_field :title %>
<%= nav id: 'translationNav' do %>
<%= link_to t('.source_code'), '#source', data: {toggle: 'tab'} %>
<%= link_to t('.preview'), '#preview', data: {toggle: 'tab'} %>
<% end %>
<%= f.text_area :content, placeholder: t('.translation_source_explanation') %>
<%= panel class: 'tab-pane', id: 'preview' do %>
<% end %>
<%= t '.copyright_warning_html' %>
<% if not user_signed_in? %>
<%= t '.not_logged_in_warning' %>
<% end %>
<%= f.submit %>
<% if user_signed_in? and current_user.admin? %>
<%= f.button t('.save_and_accept'), type: :submit, name: "accept", value: true, class: "btn-success" %>
<% end %>
<% end %>