Я использую Rails и bootstrap4-datetime-picker-rails , и он использует Tempus Dominus JS .
Я хочу выбрать часы, показывать только час и показывать минуты, не показывая час и минуты вместе.
Я читаю документацию, но не понимаю, возможно ли это.
Я использую этот код:
CoffeScript
$('#datetimepicker14').datetimepicker
format: 'LT'
inline: true
stepping: 5
disabledTimeIntervals: [[moment({h: 0}), moment({h: 8})], [moment({h: 18 }), moment({h: 24})]]
disabledHours: [0]
html.erb
<%= f.input :hour, as: :string, as: :hidden, input_html: {id: 'datetimepicker14', data: {toggle: "datetimepicker", target: "#datetimepicker14"}} %>
Первое шоу Выбрать часы

Перед показом Минуты выберите

Не показывать в первый раз и никогда не показывать кнопки вверх

ценю любую помощь.