personal_other_paper/app/views/admin/other_paper_statuses/_form.html.erb

33 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%= form_for(@other_paper_status, :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_other_paper.other_paper_status.status") %></h3>
</div>
<div class="modal-body">
<div class="control-group">
<label class="control-label muted"><%= t("personal_other_paper.other_paper_status.status") %></label>
<div class="controls">
<div class="tab-content">
<% @site_in_use_locales.each_with_index do |locale,i| %>
<div class="tab-pane fade <%= "active in" if i == 0 %>" id="status_<%=locale%>">
<%= f.fields_for :status_translations do |f| %>
<%= f.text_field locale, class: "input-block-level", placeholder: t("personal_other_paper.other_paper_status.status"), value: (@other_paper_status.status_translations[locale] rescue nil) %>
<% end %>
</div>
<% end %>
</div>
<div class="btn-group" data-toggle="buttons-radio">
<% @site_in_use_locales.each_with_index do |locale,i| %>
<a class="btn <%= "active" if i == 0 %>" href="#status_<%=locale%>" data-toggle="tab"><%= t(locale) %></a>
<% end %>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<%= f.submit t('submit'), :class=>'btn btn-primary' %>
<a class="btn" data-dismiss="modal"><%= t('cancel')%></a>
</div>
<% end %>