app/views/refinery/teams/admin/teams/_form.html.erb
<%= form_for [refinery, :teams_admin, @team] do |f| -%>
<%= render '/refinery/admin/error_messages',
:object => @team,
:include_object_name => true %>
<%= render '/refinery/admin/locale_picker',
:current_locale => Globalize.locale %>
<div class='field'>
<%= f.label :fullname -%>
<%= f.text_field :fullname, :class => 'larger widest' -%>
</div>
<div class='field'>
<%= f.label :job_title -%>
<%= f.text_field :job_title, :class => 'larger widest' -%>
</div>
<div class='field'>
<h3><%= t('title', :scope => 'refinery.teams.admin.submenu.categories') %></h3>
<ul class='teams_categories'>
<% @categories.sort_by { |c| c.position }.each do |category| %>
<li>
<%= check_box_tag 'team[category_ids][]', category.id,
@team.categories.include?(category),
:id => (id="team_category_ids_#{category.id}") %>
<%= label_tag 'team[category_ids][]', "#{'-' * category.level} #{category.title}",
:class => 'stripped',
:for => id %>
</li>
<% end %>
</ul>
</div>
<div class='field'>
<%= render '/refinery/admin/wysiwyg',
:f => f,
:fields => [:body],
:object => "teams/team" -%>
</div>
<div class='field'>
<%= f.label :photo -%>
<%= render '/refinery/admin/image_picker',
:f => f,
:field => :photo_id,
:image => @team.photo,
:toggle_image_display => false -%>
</div>
<div class='field'>
<%= f.label :email -%>
<%= f.text_field :email, :class => 'larger widest' -%>
</div>
<div class='field'>
<%= f.label :draft -%>
<%= f.check_box :draft -%>
</div>
<%= render '/refinery/admin/form_actions', :f => f,
:continue_editing => false,
:delete_title => t('delete', :scope => 'refinery.teams.admin.teams.team'),
:delete_confirmation => t('message', :scope => 'refinery.admin.delete', :title => @team.fullname) -%>
<% end -%>
<% content_for :javascripts do -%>
<script>
$(document).ready(function(){
page_options.init(false, '', '');
});
</script>
<% end -%>