mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-21 16:36:08 +01:00
29 lines
No EOL
939 B
Text
29 lines
No EOL
939 B
Text
<h2>Description</h2>
|
|
<%= @todo.description %><br/>
|
|
|
|
<h2>Actions</h2>
|
|
|
|
<form method="get" action="<%= edit_todo_path(@todo, :format => :m)%>">
|
|
<button>Edit this action</button>
|
|
<input type="hidden" name="_method" value="put" />
|
|
</form><br/>
|
|
|
|
<form method="post" action="<%=toggle_star_todo_path(@todo, :format=>:m)%>">
|
|
<button>Toggle Star</button>
|
|
<input type="hidden" name="_method" value="put" />
|
|
</form><br/>
|
|
|
|
<form method="post" action="<%=toggle_check_todo_path(@todo, :format=>:m)%>">
|
|
<button>Mark complete</button>
|
|
<input type="hidden" name="_method" value="put" />
|
|
</form><br/>
|
|
|
|
<form method="post" action="<%=defer_todo_path(@todo, :format=>:m, :days => 1)%>">
|
|
<button>Defer 1 day</button>
|
|
<input type="hidden" name="_method" value="put" />
|
|
</form><br/>
|
|
|
|
<form method="post" action="<%=defer_todo_path(@todo, :format=>:m, :days => 7)%>">
|
|
<button>Defer 7 days</button>
|
|
<input type="hidden" name="_method" value="put" />
|
|
</form><br/> |