33 lines
1.5 KiB
Plaintext
33 lines
1.5 KiB
Plaintext
|
<%= form_for(@technique_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_technique.technique_status.status") %></h3>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="modal-body">
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label muted"><%= t("personal_technique.technique_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_technique.technique_status.status"), value: (@technique_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 %>
|