mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-07 16:24:21 +01:00
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@265 a4c988fc-2ded-0310-b66e-134b36920a42
27 lines
1.1 KiB
Text
27 lines
1.1 KiB
Text
<div id="display_box">
|
|
<% for name in ["notice", "warning", "message"] %>
|
|
<div id="<%= name %>"<%= flash[name] ? "" : " style=\"display:none\""%>><%= flash[name] %></div>
|
|
<% end %>
|
|
|
|
<div id="list-projects">
|
|
<% for project in @projects %>
|
|
<%= render_partial( 'project_listing', project ) %>
|
|
<% end %>
|
|
</div>
|
|
<%= sortable_element 'list-projects', get_listing_sortable_options %>
|
|
</div>
|
|
|
|
<div id="input_box">
|
|
<a href="#" onClick="Element.toggle('project_new'); Form.focusFirstElement('project-form');return false" accesskey="n" title="Create a new project">Create new project »</a>
|
|
<div id="project_new" class="project_new" style="display:none">
|
|
<!--[form:project]-->
|
|
<%= form_remote_tag :url => { :action => "new_project" },
|
|
: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>
|
|
</div>
|