From 063460f1198c974a3b0838e800cfc7becb7e6a70 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Tue, 1 Jul 2014 17:49:12 +0800 Subject: [PATCH] tt --- app/views/projects/_form.html.erb | 58 ++++++++++++++++--------------- config/routes.rb | 2 +- 2 files changed, 31 insertions(+), 29 deletions(-) diff --git a/app/views/projects/_form.html.erb b/app/views/projects/_form.html.erb index fa2e8da11..ec0bf7fbf 100644 --- a/app/views/projects/_form.html.erb +++ b/app/views/projects/_form.html.erb @@ -5,7 +5,9 @@ <% end %>

<%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;" %>

-

<%= f.text_area :description, :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;" %>

+

+ <%= f.text_area :description, :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;" %> +

<%= f.text_field :identifier, :required => true, :size => 60, :style => "width:488px;", :disabled => @project.identifier_frozen?, :maxlength => Project::IDENTIFIER_MAX_LENGTH %> <% unless @project.identifier_frozen? %> <%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info).html_safe %> @@ -24,44 +26,44 @@ <%= call_hook(:view_projects_form, :project => @project, :form => f) %> - +<%# end %> +<%# end %> --> <% unless @project.identifier_frozen? %> diff --git a/config/routes.rb b/config/routes.rb index ad493bce8..c584ba3cf 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -698,7 +698,7 @@ RedmineApp::Application.routes.draw do get 'welcome/search', to: 'welcome#search' get 'school/index', to: 'school#index' get 'course/:school_id', to: 'welcome#course' - get 'course/:school_id', to: 'welcome#course' + #get 'course/:school_id', to: 'welcome#course' post 'school/get_options/:province', :to => 'school#get_options' get 'school/get_options/:province', :to => 'school#get_options'