anchor.diff:    $('#from-date').on('dp.change', function (e) {
       $('#to-date').data('DateTimePicker').minDate(e.date)
     })
  +
     $('#to-date').on('dp.change', function (e) {
       $('#from-date').data('DateTimePicker').maxDate(e.date)
     })
  
positive.code:           </div>
          </div>
  
          <% if @to %>
  
          <div class="row">
  
negative.code: 
      <div role="tabpanel" class="tab-pane" id="dates">
  
          <div class='row <%= @type == 'chart' ? '' : 'hidden' %>' id='tofrom'>
            <div class='col-md-12'>
              <div class='form-group col-md-6'>
                <label for='oldest' class='col-md-3 text-right'>From</label>
  