修改加入课程界面

This commit is contained in:
sw 2014-10-16 11:33:11 +08:00
parent 4c41c10e0d
commit b696aa3362
3 changed files with 5 additions and 3 deletions

View File

@ -36,7 +36,7 @@
} }
</style> </style>
<h3 class="title">请输入课程密码</h3> <h3 class="title">请输入相关信息</h3>
<%= form_tag({:controller => 'courses', <%= form_tag({:controller => 'courses',
:action => 'join'}, :action => 'join'},
@ -48,7 +48,7 @@
<%= text_field_tag 'object_id', nil, :style=>'width:80%'%> <%= text_field_tag 'object_id', nil, :style=>'width:80%'%>
</div> </div>
<div> <div>
<span>密码:</span> <span>密码&nbsp;&nbsp;&nbsp;</span>
<%= text_field_tag 'course_password', nil, :style=>'width:80%'%> <%= text_field_tag 'course_password', nil, :style=>'width:80%'%>
</div> </div>

View File

@ -3,6 +3,8 @@
<%= link_to(l(:label_course_new), {:controller => 'courses', :action => 'new'}, <%= link_to(l(:label_course_new), {:controller => 'courses', :action => 'new'},
:class => 'icon icon-add') if User.current.allowed_to?(:add_course,nil, :global => true) %> :class => 'icon icon-add') if User.current.allowed_to?(:add_course,nil, :global => true) %>
<% end %> <% end %>
&nbsp;&nbsp;&nbsp;&nbsp;
<% end %> <% end %>
<%= link_to "加入课程", join_private_courses_courses_path ,:remote => true, :class => 'icon icon-add' %>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
<%= link_to l(:label_more), {:controller => 'courses', :action => 'index', :school_id => school_id} %> <%= link_to l(:label_more), {:controller => 'courses', :action => 'index', :school_id => school_id} %>

View File

@ -128,7 +128,7 @@
<%= link_to l(:label_my_question), newbie_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE"} %> <%= link_to l(:label_my_question), newbie_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE"} %>
<%= link_to l(:label_my_feedback), suggestion_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE"} %> <%= link_to l(:label_my_feedback), suggestion_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE"} %>
<!-- 加入课程按钮 --> <!-- 加入课程按钮 -->
<%#= link_to "加入私有课程", join_private_courses_courses_path ,:remote => true %>
</h3> </h3>
<span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", forums_path %></span> <span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", forums_path %></span>