bigdir/app/views/test/_new.html.erb

17 lines
624 B
Plaintext

<h3 class="title"><%= l(:label_leave_message_to, :name => "user") %></h3>
<%= form_tag({:controller => 'test',
:action => 'create',
:user_id => user.id},
:remote => true,
:method => :post,
:id => 'new-watcher-form') do %>
<p><%= label_tag 'user_search', l(:label_leave_message) %><%= text_field_tag 'user_search', nil %></p>
<p class="buttons">
<%= submit_tag l(:button_add), :name => nil, :onclick => "hideModal(this);" %>
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
</p>
<% end %>