<% # encoding: utf-8 %>

<%= form_for(@news_bulletin_link, :remote => true, :url => @link_url) do |f| %>
    
	<div class="modal-header">
	  <a class="close" data-dismiss="modal">×</a>
	  <h3><%= (@news_bulletin_link.new_record? ? 'Add Link' : 'Edit Link') %></h3>
	</div>
	<div class="modal-body form-horizontal">
	  <div class="control-group">
	    <label for="http" class="control-label">URL</label>
	    <div class="controls">
			<%= f.text_field :url %>
	  </div>
	</div>

	<%= f.fields_for :i18n_variable, (@news_bulletin_link.new_record? ? @news_bulletin_link.build_i18n_variable : @news_bulletin_link.i18n_variable) do |f| %>
		<% @site_valid_locales.each do |locale| %>
			<div class="control-group">
				<%= label_tag "link-#{locale}", "Name-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
				<div class="controls">
					<%#= f.text_field locale, :class => 'input-xxlarge' %>
					<%= f.text_field locale %>
				</div>
			</div>
		<% end %>
	<% end %>
	</div>
	<div class="modal-footer">
		<%= hidden_field_tag 'news_bulletin_link[news_bulletin_id]', @news_bulletin_link.news_bulletin_id %>
		<%= f.submit t('submit'), :class=>'btn btn-primary' %>
	  <a class="btn" data-dismiss="modal"><%= t('cancel')%></a>
<% end %>
		

 		