yay, /projects/new works

pull/1186/head
Martin Linkhorst 12 years ago committed by Martin Czuchra
parent 65f1302b57
commit 7ce2a8f739
  1. 2
      app/views/layouts/base.rhtml
  2. 2
      app/views/projects/_form.rhtml
  3. 2
      lib/tabular_form_builder.rb

@ -117,7 +117,7 @@
<div id="footer"> <div id="footer">
<div class="bgl"><div class="bgr"> <div class="bgl"><div class="bgr">
<%= l(:text_powered_by, :link => link_to(Redmine::Info.app_name, Redmine::Info.url)) %> <%= l(:text_powered_by, :link => link_to(Redmine::Info.app_name, Redmine::Info.url)).html_safe %>
</div></div> </div></div>
</div> </div>

@ -19,7 +19,7 @@
observeProjectIdentifier(); observeProjectIdentifier();
observeProjectName(); observeProjectName();
</script> </script>
<br /><em><%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info) %></em> <br /><em><%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info).html_safe %></em>
<% end %></p> <% end %></p>
<p><%= f.text_field :homepage, :size => 60 %></p> <p><%= f.text_field :homepage, :size => 60 %></p>
<p><%= f.check_box :is_public %></p> <p><%= f.check_box :is_public %></p>

@ -65,7 +65,7 @@ class TabularFormBuilder < ActionView::Helpers::FormBuilder
text = options[:label].is_a?(Symbol) ? l(options[:label]) : options[:label] text = options[:label].is_a?(Symbol) ? l(options[:label]) : options[:label]
text ||= l(("field_" + field.to_s.gsub(/\_id$/, "")).to_sym) text ||= l(("field_" + field.to_s.gsub(/\_id$/, "")).to_sym)
text += @template.content_tag("span", " *", :class => "required") if options.delete(:required) text += @template.content_tag("span", " *", :class => "required") if options.delete(:required)
@template.label(@object_name, field.to_s, text, @template.label(@object_name, field.to_s, text.html_safe,
:class => (@object && @object.errors[field] ? "error" : nil)) :class => (@object && @object.errors[field] ? "error" : nil))
end end

Loading…
Cancel
Save