view 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
line wrap: on
line source

<% form_for :project, @project,
            :url => { :action => 'overview', :id => @project },
            :html => {:id => 'overview-form'} do |f| %>

<div class="box tabular">

<p><label for="has_welcome_page"><%= l(:label_has_welcome_page) %></label>
<%= check_box_tag 'has_welcome_page', 1, @project.has_welcome_page? -%>
<br/><em><%= l(:text_has_welcome_page_info) %></em>
<br/><%= link_to(l(:button_welcome_page_edit), {:controller => 'wiki', :action => 'edit', :project_id => @project, :id => Wiki.titleize("Overview")}, :class => 'icon icon-edit') %>
</p>

</div>

<%= submit_tag l(:button_save) %>

<% end %>