Skip to content

Instantly share code, notes, and snippets.

@barek2k2
Created March 10, 2016 10:43
Show Gist options
  • Save barek2k2/f2d9deba4b0424fc5aa9 to your computer and use it in GitHub Desktop.
Save barek2k2/f2d9deba4b0424fc5aa9 to your computer and use it in GitHub Desktop.
<form action="" method="get">
<input type="hidden" name="category_id" value="<%= params[:category_id] %>">
<input type="hidden" name="initial_due_date" value="<%= params[:initial_due_date] %>">
<input type="hidden" name="current_due_date" value="<%= params[:current_due_date] %>">
<ul>
<li style="margin-bottom:10px;">
<label class="checkbox-inline">
<input class="task_type" name="completed" value="1" data-on="<i class='fa fa-check'></i>" data-off="<i class='fa fa-times'></i>" data-toggle="toggle" data-onstyle="success" data-offstyle="danger" type="checkbox" data-size="mini"> Completed
</label>
</li>
<li>
<label class="checkbox-inline">
<input class="task_type" name="uncompleted" value="1" data-on="<i class='fa fa-check'></i>" data-off="<i class='fa fa-times'></i>" data-toggle="toggle" data-onstyle="success" data-offstyle="danger" type="checkbox" data-size="mini"> Uncompleted
</label>
</li>
</ul>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment