mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 20:24:43 +08:00
16 lines
686 B
Text
16 lines
686 B
Text
<div class="pull-right my_module-state-buttons">
|
|
<% if can_complete_module?(@my_module) %>
|
|
<div class="btn-group">
|
|
<% if !@my_module.completed? %>
|
|
<div data-action="complete-task" data-link-url="<%= toggle_task_state_my_module_path(@my_module) %>">
|
|
<%= render 'my_modules/state_button_complete.html.erb' %>
|
|
</div>
|
|
<% else @my_module.completed? %>
|
|
<div data-action="uncomplete-task" data-link-url="<%= toggle_task_state_my_module_path(@my_module) %>">
|
|
<%= render 'my_modules/state_button_uncomplete.html.erb' %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
<span data-hook="my_module-state-buttons"></span>
|
|
</div>
|