annotate app/views/projects/settings/_overview.rhtml @ 351:ebf53b46f3f3 feature_123

Add the overview setting to the project settings. Still rather clumsy, but it does appear to work!
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 31 Mar 2011 18:20:16 +0100
parents
children 8c804ce943db
rev   line source
chris@351 1
chris@351 2 <% form_for :project, @project,
chris@351 3 :url => { :action => 'overview', :id => @project },
chris@351 4 :html => {:id => 'overview-form'} do |f| %>
chris@351 5
chris@351 6 <div class="box tabular">
chris@351 7
chris@351 8 <p><label for="has_welcome_page"><%= l(:label_has_welcome_page) %></label>
chris@351 9 <%= check_box_tag 'has_welcome_page', 1, @project.has_welcome_page? -%>
chris@351 10 <br/><em><%= l(:text_has_welcome_page_info) %></em>
chris@351 11 <br/><%= link_to(l(:button_welcome_page_edit), {:controller => 'wiki', :action => 'edit', :project_id => @project, :id => Wiki.titleize("Overview")}, :class => 'icon icon-edit') %>
chris@351 12 </p>
chris@351 13
chris@351 14 </div>
chris@351 15
chris@351 16 <%= submit_tag l(:button_save) %>
chris@351 17
chris@351 18 <% end %>