国际化
This commit is contained in:
parent
5e8848f962
commit
f8951c0044
|
@ -57,32 +57,32 @@
|
|||
<div id="pro_st_edit_ban" class="pro_st_edit_ban">
|
||||
<ul>
|
||||
<li >
|
||||
<label class="label02"><span class="c_red">*</span>名称:</label>
|
||||
<label class="label02"><span class="c_red">*</span><%=l(:field_name)%>:</label>
|
||||
<%= f.text_field :name, :maxlength => 60, :required => true %>
|
||||
</li>
|
||||
<li >
|
||||
<label class="label02">描述:</label>
|
||||
<label class="label02"><%=l(:label_version_description)%>:</label>
|
||||
<%= f.text_field :description, :maxlength => 60 %>
|
||||
</li>
|
||||
<li >
|
||||
<label class="label02">状态:</label>
|
||||
<label class="label02"><%=l(:field_status)%>:</label>
|
||||
<%= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]} %>
|
||||
</li>
|
||||
<li >
|
||||
<label class="label02">Wiki 页面:</label>
|
||||
<label class="label02"><%=l(:label_wiki_page)%>:</label>
|
||||
<%= f.text_field :wiki_page_title, :size =>60, :label => :label_wiki_page, :disabled => @project.wiki.nil? %>
|
||||
</li>
|
||||
<li >
|
||||
<label class="label02">日期:</label>
|
||||
<label class="label02"><%=l(:label_date)%>:</label>
|
||||
<%= f.text_field :effective_date, :size => 10, :readonly => true,:class=>" fl" %>
|
||||
<%= calendar_for('version_effective_date') %>
|
||||
</li>
|
||||
<div class="cl mb10"></div>
|
||||
<li >
|
||||
<label class="label02">共享:</label>
|
||||
<label class="label02"><%=l(:field_sharing)%>:</label>
|
||||
<%= f.select :sharing, @project.versions.build.allowed_sharings.collect {|v| [format_version_sharing(v), v]} %>
|
||||
</li>
|
||||
<a href="#" onclick="$('#new_project_version_form').submit();" class="blue_btn ml110">保存</a>
|
||||
<a href="#" onclick="$('#new_project_version_form').submit();" class="blue_btn ml110"><%=l(:button_save)%></a>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -3,29 +3,29 @@
|
|||
<div id="pro_st_edit_ban" class="pro_st_edit_ban_display">
|
||||
<ul>
|
||||
<li >
|
||||
<label class="label02"><span class="c_red">*</span>名称:</label>
|
||||
<label class="label02"><span class="c_red">*</span><%=l(:field_name)%>:</label>
|
||||
<%= f.text_field :name, :maxlength => 60,:class=>" w280", :label => ""%>
|
||||
</li>
|
||||
<li >
|
||||
<label class="label02">描述:</label>
|
||||
<label class="label02"><%=l(:label_version_description)%>:</label>
|
||||
<%= f.text_field :description, :maxlength => 60,:class=>" w280", :label => "" %>
|
||||
</li>
|
||||
<li >
|
||||
<label class="label02">状态:</label>
|
||||
<label class="label02"><%=l(:field_status)%>:</label>
|
||||
<%= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]}, :label => "" %>
|
||||
</li>
|
||||
<li >
|
||||
<label class="label02">Wiki 页面:</label>
|
||||
<label class="label02"><%=l(:label_wiki_page)%>:</label>
|
||||
<%= f.text_field :wiki_page_title, :size =>60, :label => "", :disabled => @project.wiki.nil? %>
|
||||
</li>
|
||||
<li >
|
||||
<label class="label02">日期:</label>
|
||||
<label class="label02"><%=l(:label_date)%>:</label>
|
||||
<%= f.text_field :effective_date, :size => 10, :readonly => true,:class=>"fl" ,:style=>"margin-left:7px;",:label=>""%>
|
||||
<%= calendar_for('version_effective_date') %>
|
||||
</li>
|
||||
<div class="cl mb10"></div>
|
||||
<li >
|
||||
<label class="label02">共享:</label>
|
||||
<label class="label02"><%=l(:field_sharing)%>:</label>
|
||||
<%= f.select :sharing, @version.allowed_sharings.collect {|v| [format_version_sharing(v), v]},:label=>"" %>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
<%= labelled_form_for @version,:html=>{:id=>"new_project_version_form"} do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<a href="#" onclick="$('#new_project_version_form').submit();" class="blue_btn ml110">保存</a>
|
||||
<a href="#" onclick="$('#new_project_version_form').submit();" class="blue_btn ml110"><%=l(:button_save)%></a>
|
||||
<% end %>
|
||||
|
||||
|
|
Loading…
Reference in New Issue