mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
Update condition for project content [SCI-5620]
This commit is contained in:
parent
bccd474cc6
commit
85a13b7182
1 changed files with 2 additions and 10 deletions
|
@ -4,11 +4,7 @@
|
|||
<div class="experiment-block">
|
||||
<span class="sci-checkbox-container">
|
||||
<input type="checkbox" value="<%= experiment.id %>" class="sci-checkbox report-experiment-checkbox"
|
||||
<%= if report
|
||||
'checked' if @project_contents[:experiments].include?(experiment.id)
|
||||
else
|
||||
'checked'
|
||||
end
|
||||
<%= 'checked' if !report || @project_contents[:experiments].include?(experiment.id)
|
||||
%>/>
|
||||
<span class="sci-checkbox-label"></span>
|
||||
</span>
|
||||
|
@ -30,11 +26,7 @@
|
|||
<li class="experiment-my-module">
|
||||
<span class="sci-checkbox-container">
|
||||
<input type="checkbox" value="<%= my_module.id %>" class="sci-checkbox report-my-module-checkbox"
|
||||
<%= if report
|
||||
'checked' if @project_contents[:my_modules].include?(my_module.id)
|
||||
else
|
||||
'checked'
|
||||
end
|
||||
<%= 'checked' if !report || @project_contents[:my_modules].include?(my_module.id)
|
||||
%>/>
|
||||
<span class="sci-checkbox-label"></span>
|
||||
</span>
|
||||
|
|
Loading…
Reference in a new issue