<%=render(:partial => "header", :locals => {:section => "basic_info", :label => "Translator Details", :description => "Translator details section title", :mode => mode})%> <%= form_for(tr8n_current_translator, :as => :translator, :url => {:action => :index}, :html => {:id => 'basic_info_form', :method => :post}) do |f| %>
<%=tr8n_help_icon_tag %>
<% if Tr8n::Config.site_user_info_disabled? %> <% end %> <% if Tr8n::Config.enable_translator_language? %> <% end %>
<%=trl("Name:", "Translator name")%> <% if Tr8n::Config.site_user_info_disabled? and mode == :edit %> <%=f.text_field(:name)%> <% else %> <%=tr8n_current_translator.name%> <% end %>
<%=trla("Gender:", "Translator gender")%> <% if Tr8n::Config.site_user_info_disabled? and mode == :edit %> <%=f.radio_button(:gender, "male")%> <%=tr('Male', 'Gender') %>   <%=f.radio_button(:gender, "female")%> <%=tra('Female', 'Gender') %>   <%=f.radio_button(:gender, "unknown")%> <%=tra('Unknown', 'Gender') %> <% else %> <%=tr8n_current_translator.gender%> <% end %>
<%=trla("Email:", "Translator email")%> <% if mode == :edit %> <%=f.text_field(:email)%> <% else %> <%=tr8n_current_translator.email%> <% end %>
<%=trla("Password:", "Translator password")%> <% if mode == :edit %> <%=f.password_field(:password)%> <% else %> ********** <% end %>
<%=trla("Photo Url:", "Translator photo")%> <% if mode == :edit %> <%=f.text_field(:mugshot)%> <% else %> <%=tr8n_current_translator.mugshot%> <% end %>
<%=trla("Link Url", "Translator link")%> <% if mode == :edit %> <%=f.text_field(:link)%> <% else %> <%=tr8n_current_translator.link%> <% end %>
<%=trla("Fallback Language:", "Language to fall back onto if the language phrase is not translated")%> <% if mode == :edit %> <%=select_tag("translator[fallback_language_id]", options_for_select(Tr8n::Language.options, @fallback_language.id.to_s))%> <% else %> <%=@fallback_language.english_name%> <% end %>
<% end %>