修改新建问卷时问卷名称默认为空
This commit is contained in:
parent
4caf6ab5f7
commit
402dfc788f
|
@ -40,7 +40,7 @@ class PollController < ApplicationController
|
|||
def new
|
||||
if @course
|
||||
option = {
|
||||
:polls_name => l(:label_poll_new),
|
||||
:polls_name => "",
|
||||
:polls_type => @course.class.to_s,
|
||||
:polls_group_id => @course.id,
|
||||
:polls_status => 1,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<div class="ur_page_head ur_editor02"><!--头部显示 start-->
|
||||
<a href="#" class="ur_icon_edit" title="编辑" onclick="pollsEdit();"></a>
|
||||
<h1 class="ur_page_title" id="polls_name_h">
|
||||
<%= poll.polls_name%>
|
||||
<%= poll.polls_name.empty? ? l(:label_poll_new) : poll.polls_name%>
|
||||
</h1>
|
||||
<p class="ur_prefix_content" id="polls_description_p">
|
||||
<%= @poll.polls_description%>
|
||||
|
|
Loading…
Reference in New Issue