mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-27 03:06:11 +01:00
This change also changes project detail page URLs from /project/my_project to /projects/my_project
Benefits include
* built-in enforcement of proper HTTP methods
* simple named routes (e.g. project_url(project) instead of { :controller => "project", :action => "show", :url_friendly_name => project.url_friendly_name })
* built-in routes for formats like .js and .xml
Also fixed a http basic authentication bug that I introduced a couple of days ago
Add a database index on the users table, login column, to speed authentication
Made more use of simply_helpful dom_id() method and simplified _project_listing.rhtml
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@398 a4c988fc-2ded-0310-b66e-134b36920a42
20 lines
No EOL
696 B
Text
20 lines
No EOL
696 B
Text
<%
|
|
@project = project_form
|
|
%>
|
|
<tr>
|
|
<td width="150"><label for="project_name">Name:</label></td>
|
|
<td width="300"><%= text_field :project, 'name', :class => 'project-name' %></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="150"><label for="project_description">Description (optional):</label></td>
|
|
<td width="300"><%= text_area :project, 'description', "cols" => 30, "rows" => 4, :class => 'project-description' %></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="150"><label for="project_done">Project status:</label></td>
|
|
<td width="300">
|
|
<% ['active', 'hidden', 'completed'].each do | state | %>
|
|
<%= radio_button(:project, 'state', state) %> <%= state.titlecase %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% @project = nil %> |