mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 21:36:44 +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">
|
<div class="experiment-block">
|
||||||
<span class="sci-checkbox-container">
|
<span class="sci-checkbox-container">
|
||||||
<input type="checkbox" value="<%= experiment.id %>" class="sci-checkbox report-experiment-checkbox"
|
<input type="checkbox" value="<%= experiment.id %>" class="sci-checkbox report-experiment-checkbox"
|
||||||
<%= if report
|
<%= 'checked' if !report || @project_contents[:experiments].include?(experiment.id)
|
||||||
'checked' if @project_contents[:experiments].include?(experiment.id)
|
|
||||||
else
|
|
||||||
'checked'
|
|
||||||
end
|
|
||||||
%>/>
|
%>/>
|
||||||
<span class="sci-checkbox-label"></span>
|
<span class="sci-checkbox-label"></span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -30,11 +26,7 @@
|
||||||
<li class="experiment-my-module">
|
<li class="experiment-my-module">
|
||||||
<span class="sci-checkbox-container">
|
<span class="sci-checkbox-container">
|
||||||
<input type="checkbox" value="<%= my_module.id %>" class="sci-checkbox report-my-module-checkbox"
|
<input type="checkbox" value="<%= my_module.id %>" class="sci-checkbox report-my-module-checkbox"
|
||||||
<%= if report
|
<%= 'checked' if !report || @project_contents[:my_modules].include?(my_module.id)
|
||||||
'checked' if @project_contents[:my_modules].include?(my_module.id)
|
|
||||||
else
|
|
||||||
'checked'
|
|
||||||
end
|
|
||||||
%>/>
|
%>/>
|
||||||
<span class="sci-checkbox-label"></span>
|
<span class="sci-checkbox-label"></span>
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Add table
Reference in a new issue