Hi Greg,

Is there any way that I can use a different date and time picker. The 
> default one is horrible but it seems to be "baked in" to web2py?
>

I use a customized version of jQuery UI (I only needed the datepicker and 
autocomplete). You can extend the datepicker with this
timepicker: http://trentrichardson.com/examples/timepicker/

If you need Bootstrap styling for jQuery UI, you can replace the css with 
this: https://github.com/jquery-ui-bootstrap/jquery-ui-bootstrap/


If it's just the styling of the built in datetimepicker that's horrible, 
somewhere in 2011 I posted this:

.calendar { 
  cursor: default; 
  background-color: #FFFFFF; 
  color: #444444; 
  font-size: 11px; 
  border: 1px solid #AAAAAA; 
  border-radius: 6px; 
  -webkit-border-radius: 6px; 
  -moz-border-radius: 6px; 
  padding: 6px; 
} 
.calendar table { 
  border-collapse: separate; 
  border-spacing: 2px; 
} 
.calendar thead {} 
.calendar thead tr, .calendar thead .headrow { 
  background-color: #4169E1; 
  color: #444444; 
} 
.calendar thead .daynames {} 
.calendar .button, .calendar thead .title { 
  color: #FFFFFF; 
  font-size: 12px; 
  text-align: center; 
  padding: 3px; 
} 
.calendar thead tr .hilite, .calendar thead tr .active, .calendar 
thead .headrow .hilite, .calendar thead .headrow .active { 
  background-color: #FFFFFF; 
  color: #4169E1; 
  padding: 3px; 
} 
.calendar thead .daynames .hilite, .calendar thead .daynames .active { 
  background-color: #FFFFFF; 
  color: #444444; 
} 
.calendar thead .name { 
  background-color: #FFFFFF; 
  text-align: center; 
  padding: 3px; 
} 
.calendar tbody {} 
.calendar tbody td { 
  text-align: right; 
  border: 1px solid #AAAAAA; 
} 
.calendar tbody td.hilite { 
  background-color: #777777; 
  color: #FFFFFF; 
} 
.calendar tbody td.active, .calendar tbody td.selected { 
  font-weight: bold; 
  background-color: #FFFFFF; 
  color: #4169E1; 
} 
.calendar tbody td.today { 
  font-weight: bold; 
  background-color: #4169E1; 
  color: #FFFFFF; 
} 
.calendar tbody .disabled { 
  color: #777777; 
} 
.calendar tbody .emptycell { 
  visibility: hidden; 
} 
.calendar tbody .emptyrow { 
  display: none; 
} 
.calendar tfoot .ttip { 
  background-color: #777777; 
  color: #FFFFFF; 
  text-align: center; 
  border: 1px solid #333333; 
  padding: 1px; 
} 
.calendar tfoot .hilite { 
  padding: 1px; 
  background-color: 
  #EEEEEE; 
} 
.calendar tfoot .active { 
  padding: 2px 0px 0px 2px; 
} 
.calendar .combo { 
  background-color: #FFFFFF; 
  position: absolute; 
  display: none; 
  width: 4em; 
  top: 0px; 
  left: 0px; 
  cursor: default; 
  border: 1px solid #DDDDDD; 
  padding: 1px; 
  z-index: 100; 
} 
.calendar .combo .label, .calendar .combo .label-IEfix { 
  text-align: center; 
  padding: 1px; 
} 
.calendar .combo .label-IEfix { 
  width: 4em; 
} 
.calendar .combo .active { 
  background-color: #CCCCCC; 
  color: #FFFFFF; 
  padding: 0px; 
} 
.calendar .combo .hilite { 
  background-color: #777777; 
  color: #FFFFFF; 
} 
.floatleft { 
  float: left; 
} 
.CP_over { 
  background-color: #FFFFFF 
 } 


Kind regards,

Annet

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to