mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-15 19:58:08 +01:00
A placeholder page is also added for future configuration of users: [tracks_url]/user/index and [tracks_url]/user/admin. It doesn't do anything useful yet ;-).
I added the database changes as a migrate task, so running:
{{{
rake migrate
}}}
at the command line inside your tracks directory will automatically update your database (if you are using either MySQL or PostgreSQL.
Fixes #84.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@137 a4c988fc-2ded-0310-b66e-134b36920a42
34 lines
No EOL
1.2 KiB
Text
34 lines
No EOL
1.2 KiB
Text
<div id="full_width_display">
|
|
|
|
<div id="list-projects">
|
|
<% for project in @projects %>
|
|
<%= render_partial( 'project_listing', project ) %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<br />
|
|
<a href="javascript:void(0)" onClick="Element.toggle('project_new'); Form.focus_first('project-form');" accesskey="n" title="Create a new project [Alt+n]">Create new project »</a>
|
|
<div id="project_new" class="project_new" style="display:none">
|
|
<!--[form:project]-->
|
|
<%= form_remote_tag :url => { :action => "new_project" },
|
|
:update=> "list-projects",
|
|
:position=> "bottom",
|
|
:loading => "project.reset()",
|
|
:complete => "Form.focus_first('project-form');",
|
|
:html=> { :id=>'project-form', :name=>'project', :class => 'inline-form' } %>
|
|
<label for="project_name">Name:</label><br />
|
|
<%= text_field 'project', 'name' %><br />
|
|
<label for="project_description">Description (optional):</label><br />
|
|
<%= text_area 'project', 'description', "cols" => 30, "rows" => 4 %> <input type="submit" value="Add" />
|
|
<%= end_form_tag %>
|
|
<!--[eoform:project]-->
|
|
</div>
|
|
|
|
<% if @flash["confirmation"] %>
|
|
<div class="confirmation"><%= @flash["confirmation"] %></div>
|
|
<% end %>
|
|
<% if @flash["warning"] %>
|
|
<div class="warning"><%= @flash["warning"] %></div>
|
|
<% end %>
|
|
|
|
</div><!-- End of display_box --> |