mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
0e8f5f8e99
Conflicts: app/views/my_modules/_state_buttons.html.erb
16 lines
No EOL
687 B
Text
16 lines
No EOL
687 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-protocol-buttons"></span>
|
|
</div> |