socialforge/app/views/courses/_courses_jours.html.erb

28 lines
1.2 KiB
Plaintext
Raw Normal View History

2015-03-24 19:51:03 +08:00
<div class="msg_box" id='leave-message'>
<%# reply_allow = JournalsForMessage.create_by_user? User.current %>
2015-03-24 19:51:03 +08:00
<h4><%= l(:label_leave_message) %></h4>
<% if !User.current.logged?%>
<div style="font-size: 14px;margin:20px;">
<%= l(:label_user_login_tips) %>
<%= link_to l(:label_user_login_new), signin_path %>
<hr/>
</div>
<% else %>
<%= form_for('new_form', :method => :post,
:url => {:controller => 'words', :action => 'leave_course_message'}) do |f|%>
2015-03-27 16:02:06 +08:00
<%= f.text_area 'course_message',:id => "leave_meassge",:style => "resize: none;",
2015-03-24 19:51:03 +08:00
:placeholder => "#{l(:label_welcome_my_respond)}",:maxlength => 250%>
2015-03-26 17:41:25 +08:00
<a href="#" class="grey_btn fr ml10">取&nbsp;&nbsp;消</a>
<a href="#" onclick='$("#leave_meassge").parent().submit();' class="blue_btn fr"> <%= l(:button_leave_meassge)%></a>
<% end %>
<% end %>
</div>
<div id="history">
<%= render :partial => 'history',:locals => { :contest => @contest, :journals => @jour, :state => false} %>
</div>
<ul class="wlist">
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%>
2015-03-24 19:51:03 +08:00
</ul>