0
votes

I'm using simple form with slim to create the service form for my application.

I have something like this code:

= f.input :start_at, input_html: { 'style' => 'width: 18%; display: inline' }

But I want something customized. How do I style with css each select input (day, month, year, hour, minutes) in simple form datetime input.

1

1 Answers

0
votes

try this

= f.text_field :start_at, class: 'form-control input-sm', value: c.object.start_at.strftime("%e-%m-%Y")