mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 05:05:55 +08:00
18 lines
860 B
Text
18 lines
860 B
Text
<div class="pull-right my_module-state-buttons">
|
|
<% if can_complete_module?(@my_module) %>
|
|
<div class="btn-group help_tooltips"
|
|
data-tooltiplink="<%= I18n.t('tooltips.link.protocol.complete') %>"
|
|
data-tooltipcontent="<%= I18n.t('tooltips.text.protocol.complete') %>">
|
|
<% 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>
|