Show More
Commit Description:
Merge pull request #23 from nattee/master...
Commit Description:
Merge pull request #23 from nattee/master some bug fix
References:
File last commit:
Show/Diff file:
Action:
app/views/sites/edit.html.haml | 37 lines | 1.1 KiB | text/x-haml | HamlLexer |
%h1 Editing site
= error_messages_for :site
= form_for(@site) do |f|
.row
.col-md-4
.form-group.field
= f.label :name, "Name"
= f.text_field :name, class: 'form-control'
.form-group.field
= f.label :password, "Password"
= f.text_field :password, class: 'form-control'
.form-group.field
= f.label :started, "Started"
= f.check_box :started, class: 'form-control'
.form-group.field
= f.label :start_time, "Start time"
-# = f.datetime_select :start_time, :include_blank => true
.input-group.date
= f.text_field :start_time, class:'form-control' , value: (@site.start_time ? @site.start_time.strftime('%d/%b/%Y %H:%M') : '')
%span.input-group-addon
%span.glyphicon.glyphicon-calendar
.actions
= f.submit "Update", class: 'btn btn-primary'
.col-md-8
= link_to 'Show', @site
|
= link_to 'Back', sites_path
:javascript
$('.input-group.date').datetimepicker({
format: 'DD/MMM/YYYY HH:mm',
locale: 'en',
showTodayButton: true,
});