<%= form_for @calendar, :url => panel_calendar_back_end_cal_path(@calendar), :remote => true do |f| %>
	<table class="table" style="table-layout: fixed;">
		<tr>
			<td>
			   <!--<%= label_tag("color", t("calendar.color")) %>-->
			   <%= f.text_field :color, :class => "color-picker miniColors input-small", :maxlength => "5", :autocomplete=>"off",:value=>@calendar.color %>
			</td>
			<%= f.fields_for :name_translations do |name| %>
				<% @site_valid_locales.each_with_index do |locale, i| %>
					<td class="form-inline">
						<%= name.text_field locale, :class => "input-large", :value=>@calendar.name_translations[locale] %>
					</td>
				<% end %>
			<% end %>
		</tr>	
		<tr>
			<td colspan="3">
				<%= f.submit t("calendar.save"), :class=>"btn  btn-primary" %>
				<button class="btn btn-primary bt-cancel" for="<%= @calendar.id %>">Cancel</button>
			</td>
		</tr>
  	</table>
<% end %>