mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
39 lines
1.2 KiB
Text
39 lines
1.2 KiB
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>
|
|
|
|
<form method="post" action="<%=toggle_star_todo_path(@todo, :format=>:m)%>">
|
|
<button>Toggle Star</button>
|
|
<input type="hidden" name="_method" value="put" />
|
|
</form>
|
|
|
|
<form method="post" action="<%=toggle_check_todo_path(@todo, :format=>:m)%>">
|
|
<button>Mark complete</button>
|
|
<input type="hidden" name="_method" value="put" />
|
|
</form>
|
|
|
|
<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>
|
|
|
|
<form method="post" action="<%=defer_todo_path(@todo, :format=>:m, :days => 2)%>">
|
|
<button>Defer 2 days</button>
|
|
<input type="hidden" name="_method" value="put" />
|
|
</form>
|
|
|
|
<form method="post" action="<%=defer_todo_path(@todo, :format=>:m, :days => 3)%>">
|
|
<button>Defer 3 days</button>
|
|
<input type="hidden" name="_method" value="put" />
|
|
</form>
|
|
|
|
<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>
|