#1247修改限制输入框最大长度

This commit is contained in:
sw 2014-10-27 09:59:32 +08:00
parent 29e6158fa4
commit 4090834c2e
2 changed files with 7 additions and 5 deletions

View File

@ -3,10 +3,10 @@
<div class="box tabular">
<p style="margin-left:-10px;">
<%= f.text_field :name, :size => 60, :required => true %>
<%= f.text_field :name, :maxlength => 60, :required => true %>
</p>
<p style="margin-left:-20px;">
<%= f.text_field :description, :size => 60, :style => "margin-left:10px;" %>
<%= f.text_field :description, :maxlength => 100, :style => "margin-left:10px;" %>
</p>
<p style="margin-left:-20px;">
<span style="margin-left:10px;">
@ -15,7 +15,7 @@
</p>
<p style="margin-left:-20px;">
<span style="margin-left:10px;">
<%= f.text_field :wiki_page_title, :label => :label_wiki_page, :size => 60, :disabled => @project.wiki.nil? %>
<%= f.text_field :wiki_page_title, :label => :label_wiki_page, :maxlength => 60, :disabled => @project.wiki.nil? %>
</span>
</p>
<p style="margin-left:-20px;">

View File

@ -1,6 +1,8 @@
<h3><%=l(:label_version_new)%></h3>
<h3>
<%=l(:label_version_new)%>
</h3>
<%= labelled_form_for @version, :url => project_versions_path(@project) do |f| %>
<%= render :partial => 'versions/form', :locals => { :f => f } %>
<%= render :partial => 'versions/form', :locals => { :f => f } %>
<%= submit_tag l(:button_create) %>
<% end %>