Sha256: 683feeb7f7b2fe6955fad73ca59654c460e75920bf1015e362bde4d0a94a9d51

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

Stored size: 445 Bytes

Contents

- value = value.strftime('%Y-%m-%d %H:%M:%S') if value.kind_of?(DateTime)
- a = {name: column.name?, type: "text", value: value, "data-format" => "yyyy-MM-dd hh:mm:ss"}
.input-append.date id=column.name?
  input.input-medium  *a *attrs(column, :editor)
  span.add-on
    i data-time-icon="icon-time" data-date-icon="icon-calendar" class=column.css_class
- if column.name?
  javascript:
    $(function() {$('##{column.name}').datetimepicker()});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rear-0.2.0 lib/rear/templates/editor/datetime.slim