mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 14:44:26 +08:00
Merge pull request #2866 from urbanrotnik/ur-sci-5053
Fix protocol import modal [SCI-5053]
This commit is contained in:
commit
33d53c958d
1 changed files with 18 additions and 17 deletions
|
@ -27,24 +27,25 @@
|
|||
</a>
|
||||
</div>
|
||||
<div class="panel-options pull-right">
|
||||
<% if step.completed? %>
|
||||
<button data-action="uncomplete-step"
|
||||
data-link-url="<%= toggle_step_state_step_path(step)%>"
|
||||
class="btn btn-secondary"
|
||||
<%= 'disabled' if !can_complete_or_checkbox_step?(@protocol) || preview %>>
|
||||
<span class="fas fa-times"></span>
|
||||
<%= t("protocols.steps.options.uncomplete_title") %>
|
||||
</button>
|
||||
<% else %>
|
||||
<button data-action="complete-step"
|
||||
data-link-url="<%= toggle_step_state_step_path(step)%>"
|
||||
class="btn btn-secondary"
|
||||
<%= 'disabled' if !can_complete_or_checkbox_step?(@protocol) || preview %>>
|
||||
<span class="fas fa-check"></span>
|
||||
<%= t("protocols.steps.options.complete_title") %>
|
||||
</button>
|
||||
<% unless preview %>
|
||||
<% if step.completed? %>
|
||||
<button data-action="uncomplete-step"
|
||||
data-link-url="<%= toggle_step_state_step_path(step)%>"
|
||||
class="btn btn-secondary"
|
||||
<%= 'disabled' if !can_complete_or_checkbox_step?(@protocol) || preview %>>
|
||||
<span class="fas fa-times"></span>
|
||||
<%= t("protocols.steps.options.uncomplete_title") %>
|
||||
</button>
|
||||
<% else %>
|
||||
<button data-action="complete-step"
|
||||
data-link-url="<%= toggle_step_state_step_path(step)%>"
|
||||
class="btn btn-secondary"
|
||||
<%= 'disabled' if !can_complete_or_checkbox_step?(@protocol) || preview %>>
|
||||
<span class="fas fa-check"></span>
|
||||
<%= t("protocols.steps.options.complete_title") %>
|
||||
</button>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% if (can_manage_protocol_in_module?(@protocol) || can_manage_protocol_in_repository?(@protocol)) && !(preview) %>
|
||||
<%= link_to(move_up_step_path(step),
|
||||
class: 'btn btn-light icon-btn',
|
||||
|
|
Loading…
Reference in a new issue