##// END OF EJS Templates
Added several validates_length_of...
Added several validates_length_of git-svn-id: http://redmine.rubyforge.org/svn/trunk@593 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r556:438161ad1fd3
r590:fcefdb22bfc3
Show More
_form.rhtml
61 lines | 2.9 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
Initial commit...
r2 <%= error_messages_for 'project' %>
Jean-Philippe Lang
svn browser merged in trunk...
r103
Jean-Philippe Lang
0.3 unstable...
r10 <div class="box">
Jean-Philippe Lang
Initial commit...
r2 <!--[form:project]-->
Jean-Philippe Lang
Added some attributes length validations....
r397 <p><%= f.text_field :name, :required => true %><br /><em><%= l(:text_caracters_maximum, 30) %></em></p>
Jean-Philippe Lang
Initial commit...
r2
Jean-Philippe Lang
* new report: project activity...
r42 <% if admin_loggedin? and !@root_projects.empty? %>
Jean-Philippe Lang
tables and forms redesign,...
r19 <p><%= f.select :parent_id, (@root_projects.collect {|p| [p.name, p.id]}), { :include_blank => true } %></p>
Jean-Philippe Lang
v0.2.0...
r5 <% end %>
Jean-Philippe Lang
Added some attributes length validations....
r397 <p><%= f.text_area :description, :required => true, :cols => 60, :rows => 3 %><br /><em><%= l(:text_caracters_maximum, 255) %></em></p>
<p><%= f.text_field :identifier, :required => true, :size => 15, :disabled => @project.identifier_frozen? %><br /><em><%= l(:text_length_between, 3, 12) %> <%= l(:text_project_identifier_info) unless @project.identifier_frozen? %></em></p>
Jean-Philippe Lang
tables and forms redesign,...
r19 <p><%= f.text_field :homepage, :size => 40 %></p>
<p><%= f.check_box :is_public %></p>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
Jean-Philippe Lang
custom field tags...
r18 <% for @custom_value in @custom_values %>
<p><%= custom_field_tag_with_label @custom_value %></p>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% end %>
Jean-Philippe Lang
* new report: project activity...
r42
<% unless @custom_fields.empty? %>
<p><label><%=l(:label_custom_field_plural)%></label>
Jean-Philippe Lang
tables and forms redesign,...
r19 <% for custom_field in @custom_fields %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <%= check_box_tag "custom_field_ids[]", custom_field.id, ((@project.custom_fields.include? custom_field) or custom_field.is_for_all?), (custom_field.is_for_all? ? {:disabled => "disabled"} : {}) %>
<%= custom_field.name %>
Jean-Philippe Lang
* new report: project activity...
r42 <% end %></p>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% end %>
Jean-Philippe Lang
svn browser merged in trunk...
r103 <!--[eoform:project]-->
</div>
Jean-Philippe Lang
Added basic support for CVS and Mercurial SCMs....
r556 <div class="box">
<h3><%= check_box_tag "repository_enabled", 1, !@project.repository.nil?, :onclick => "Element.toggle('repository');" %> <%= l(:label_repository) %></h3>
<%= hidden_field_tag "repository_enabled", 0 %>
<div id="repository">
<p class="tabular"><label>SCM</label><%= scm_select_tag %></p>
<div id="repository_fields">
<%= render :partial => 'projects/repository', :locals => {:repository => @project.repository} if @project.repository %>
</div>
</div>
Jean-Philippe Lang
svn browser merged in trunk...
r103 </div>
<%= javascript_tag "Element.hide('repository');" if @project.repository.nil? %>
Jean-Philippe Lang
calendar javascripts and stylesheets removed from base layout. they're now only added to html header when needed....
r148
Jean-Philippe Lang
wiki branch merged into trunk...
r320 <div class="box">
<h3><%= check_box_tag "wiki_enabled", 1, !@project.wiki.nil?, :onclick => "Element.toggle('wiki');" %> <%= l(:label_wiki) %></h3>
<%= hidden_field_tag "wiki_enabled", 0 %>
<div id="wiki">
<% fields_for :wiki, @project.wiki, { :builder => TabularFormBuilder, :lang => current_language} do |wiki| %>
Jean-Philippe Lang
Fixed 10211 Wiki names can't have periods in them....
r460 <p><%= wiki.text_field :start_page, :size => 60, :required => true %><br /><em><%= l(:text_unallowed_characters) %>: , . / ? ; |</em></p>
Jean-Philippe Lang
wiki branch merged into trunk...
r320 <% # content_tag("div", "", :id => "wiki_start_page_auto_complete", :class => "auto_complete") +
# auto_complete_field("wiki_start_page", { :url => { :controller => 'wiki', :action => 'auto_complete_for_wiki_page', :id => @project } })
%>
<% end %>
</div>
<%= javascript_tag "Element.hide('wiki');" if @project.wiki.nil? %>
</div>
Jean-Philippe Lang
calendar javascripts and stylesheets removed from base layout. they're now only added to html header when needed....
r148 <% content_for :header_tags do %>
<%= javascript_include_tag 'calendar/calendar' %>
<%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
<%= javascript_include_tag 'calendar/calendar-setup' %>
<%= stylesheet_link_tag 'calendar' %>
Jean-Philippe Lang
Added basic support for CVS and Mercurial SCMs....
r556 <% end %>