(change title of modal windows with user login)
<% form_for :user, @user, :url => { :id => @user.id, :action => action_name}, :html => { :id =>'user_modal_form', :method => @user.id.nil? ? :post : :put} do |f| %>
<fieldset>
<div class="modal-head">
- <h2><%= title %></h2>
+ <h2><%= title %> for user <%= @user.login %></h2>
</div>
<div class="modal-body">
<% if @errors
<% end
end
%>
- <div class="modal-field"><label for="user[login]">Login<em class="mandatory">*</em></label>
+ <div class="modal-field">
<% if @user.id %>
- <%= @user.login %>
<%= f.hidden_field :login %>
<% else %>
<%= f.text_field :login, :size => 30, :maxLength => 40 %>
<% form_for :user, @user, :url => { :id => @user.id, :action => action_name}, :html => { :id =>'user_modal_form', :method => @user.id.nil? ? :post : :put} do |f| %>
<fieldset>
<div class="modal-head">
- <h2><%= title %></h2>
+ <h2><%= title %> <%= @user.login %></h2>
</div>
<div class="modal-body">
<% if @errors
<% end
end
%>
- <div class="modal-field"><label for="user[login]">Login<em class="mandatory">*</em></label>
+ <div class="modal-field">
<% if @user.id %>
- <%= @user.login %>
<%= f.hidden_field :login %>
<% else %>
<%= f.text_field :login, :size => 30, :maxLength => 40 %>