mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-17 14:46:00 +08:00
1b34de37ef
CSP and inline js refactor [SCI-8118][SCI-8119]
13 lines
593 B
Text
13 lines
593 B
Text
<div class="datetime-picker-container"
|
|
id="<%= id %>"
|
|
data-id="<%= id %>"
|
|
data-use-current="<%= use_current %>">
|
|
<% if label %>
|
|
<label class="control-label required" for="calendar-<%= id %>"><%= label %></label>
|
|
<% end %>
|
|
<span class="fas fa-calendar-alt"></span>
|
|
<input type="datetime" class="form-control calendar-input" name="calendar[<%= id %>]" id="calendar-<%= id %>" readonly="" data-ts="" placeholder="<%= placeholder %>" value="<%= defined?(setDate) ? setDate : '' %>"/>
|
|
|
|
<%= javascript_include_tag 'global_activities/date_picker', nonce: true %>
|
|
|
|
</div>
|