Skip to content
Snippets Groups Projects
Commit 555ab801 authored by Butler, Alexis (UG - Computer Science)'s avatar Butler, Alexis (UG - Computer Science)
Browse files

Link mobile buttons to actions

parent 0c0271e1
No related branches found
No related tags found
No related merge requests found
Pipeline #30838 failed
......@@ -19,13 +19,13 @@
<div class="habit-index-mobile-icons-container">
<div class="row">
<div class="col pl-1 pr-1">
<%=link_to raw("<i class='fas fa-edit fa-lg'></i>"), root_path, method: :get, class:"btn btn-info mobile-index-icon" %>
<%=link_to raw("<i class='fas fa-edit fa-lg'></i>"), track_habit_path(habit), method: :post, class:"btn btn-info mobile-index-icon" %>
</div>
<div class="col pl-1 pr-1">
<%=link_to raw("<i class='far fa-calendar-alt fa-lg'></i>"), root_path, method: :get, class:"btn btn-info mobile-index-icon" %>
<%=link_to raw("<i class='far fa-calendar-alt fa-lg'></i>"), habit_schedules_path(habit), method: :get, class:"btn btn-info mobile-index-icon" %>
</div>
<div class="col pl-1 pr-1">
<%=link_to raw("<i class='fas fa-cogs fa-lg'></i>"), habit, method: :delete, data: { confirm: 'Are you sure?' }, class:"btn btn-info mobile-index-icon" %>
<%=link_to raw("<i class='fas fa-cogs fa-lg'></i>"), edit_habit_path(habit), method: :get, class:"btn btn-info mobile-index-icon" %>
</div>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment