24 lines
937 B
Plaintext
24 lines
937 B
Plaintext
|
<%= form_for(@paper_level, :html =>{:class=>"form-horizontal", :style=>"margin: 0;"}, :remote => true, :url => @url ) do |f| %>
|
|||
|
<div class="modal-header">
|
|||
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|||
|
<h3 id="myModalLabel"><%= t("personal_conference.paper_level") %></h3>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="modal-body">
|
|||
|
<%= f.fields_for :title_translations do |f| %>
|
|||
|
<% @site_in_use_locales.each do |locale| %>
|
|||
|
<div class="control-group">
|
|||
|
<%= label_tag t(locale), t(locale), :class => 'control-label' %>
|
|||
|
<div class="controls">
|
|||
|
<%= f.text_field locale, :value => (@paper_level.title_translations[locale] rescue nil) %>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<% end %>
|
|||
|
<% end %>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="modal-footer">
|
|||
|
<%= f.submit t('submit'), :class=>'btn btn-primary' %>
|
|||
|
<a class="btn" data-dismiss="modal"><%= t('cancel')%></a>
|
|||
|
</div>
|
|||
|
<% end %>
|