mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-04 16:28:50 +01:00
more defers
This commit is contained in:
parent
6d50992dfb
commit
a8a18482c3
1 changed files with 15 additions and 5 deletions
|
|
@ -6,24 +6,34 @@
|
|||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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><br/>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue