<div id="qe-basic" class="qe-edit-div">
	<div id="widget-category">
		<div class="control-group">
			<label class="control-label"><%= t(:category) %></label>
			<div class="controls">
				<%= f.select :bulletin_category_id, @bulletin_categories.collect {|t| [ t.i18n_variable[I18n.locale], t.id ]}, {}, :class => 'input-large' %>
			</div>
		</div>
	</div>
	
	<div id="widget-title">
		<%= f.fields_for :title, bulletin.title  do |f| %>
		  <% @site_valid_locales.each do |locale| %>
				<div class="control-group">
					<%= label_tag "title-#{locale}", "Title-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
					<div class="controls">
						<%= f.text_field locale, :class => 'input-xxlarge' %>
					</div>
				</div>
		  <% end %>
		<% end %>
	</div>
	
	<div id="widget-date">
		<div class="control-group">
			<label class="control-label"><%= t(:start) %></label>
			<div class="controls">
				<%= f.date_select :postdate, {}, :class => 'input-small' %>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label"><%= t(:end) %></label>
			<div class="controls">
				<%= f.date_select :deadline, {}, :class => 'input-small' %>
			</div>
		</div>
	</div>
	<div id="widget-status">
		<div class="control-group">
			<label class="control-label"><%= t(:status) %></label>
			<div class="controls">
				<label class="checkbox inline"><%= f.check_box :is_hot %><%= t(:hot) %></label>
				<label class="checkbox inline"><%= f.check_box :is_top %><%= t(:top) %></label>
				<label class="checkbox inline"><%= f.check_box :is_hidden %><%= t(:hidden) %></label>
			</div>
		</div>
	</div>
	<div id="widget-role">
		<div class="control-group">
			<label class="control-label">Role</label>
			<div class="controls">
				<label class="radio inline"><%= f.radio_button :public, true, :class => 'privacy' %>Public</label>
				<label class="radio inline"><%= f.radio_button :public, false, :class => 'privacy' %>Private</label>
				<div class="well select-role" style="display:<%= bulletin.public ? 'none' : 'block' %>;">
					<label class="checkbox inline"><input type="checkbox" value="student">Student</label>
					<label class="checkbox inline"><input type="checkbox" value="teacher">Teacher</label>
					<label class="checkbox inline"><input type="checkbox" value="staff">Staff</label>
				</div>
			</div>
		</div>
	</div>
</div>
