Merge pull request #4255 from christianbeeznest/OFAJ-19231-datepicker

Minor : Add placeholder to datepicker - refs BT#19231
pull/4267/head
Angel Fernando Quiroz Campos 3 years ago committed by GitHub
commit 975c0151b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/main/inc/lib/formvalidator/Element/DatePicker.php
  2. 2
      public/main/inc/lib/formvalidator/Element/DateTimePicker.php

@ -44,7 +44,7 @@ class DatePicker extends HTML_QuickForm_text
return '
<div id="'.$id.'" class="flex flex-row mt-1">
<input '.$this->_getAttrString($this->_attributes).'
class="form-control" type="text" value="'.$value.'" data-input>
class="form-control border" type="text" value="'.$value.'" placeholder="'.get_lang('Select date ..').'" data-input>
<div class="ml-1" id="button-addon3">
<button class="btn btn-outline-secondary" type="button" data-toggle>
<i class="fas fa-calendar-alt"></i>

@ -53,7 +53,7 @@ class DateTimePicker extends HTML_QuickForm_text
return '
<div id="div_'.$id.'" class="flex flex-row mt-1">
<input '.$this->_getAttrString($this->_attributes).'
class="form-control" type="text" value="'.$value.'" data-input>
class="form-control border" type="text" value="'.$value.'" placeholder="'.get_lang('Select datetime ..').'" data-input>
<div class="ml-1" id="button-addon3">
<button class="btn btn-outline-secondary" type="button" data-toggle>
<i class="fas fa-calendar-alt"></i>

Loading…
Cancel
Save