mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-01 02:05:41 +08:00
fix report - checklist items are in separate row than checkboxes
This commit is contained in:
parent
42e6a99911
commit
f84611f558
2 changed files with 3 additions and 3 deletions
|
@ -15,9 +15,9 @@ module InputSanitizeHelper
|
||||||
ERB::Util.html_escape(text)
|
ERB::Util.html_escape(text)
|
||||||
end
|
end
|
||||||
|
|
||||||
def custom_auto_link(text, simple_format = true, org = nil)
|
def custom_auto_link(text, simple_format = true, org = nil, wrapper_tag = {})
|
||||||
text = if simple_format
|
text = if simple_format
|
||||||
simple_format(sanitize_input(text))
|
simple_format(sanitize_input(text), {}, wrapper_tag)
|
||||||
else
|
else
|
||||||
sanitize_input(text)
|
sanitize_input(text)
|
||||||
end
|
end
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<li>
|
<li>
|
||||||
<input type="checkbox" disabled="disabled" <%= "checked='checked'" if item.checked %>/>
|
<input type="checkbox" disabled="disabled" <%= "checked='checked'" if item.checked %>/>
|
||||||
<span class="<%= 'checked' if item.checked %>">
|
<span class="<%= 'checked' if item.checked %>">
|
||||||
<%= custom_auto_link(item.text) %>
|
<%= custom_auto_link(item.text, true, nil, {wrapper_tag: "span"}) %>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue