anchor.diff:            </div>
           </div>
   
  +        <div class='row <%= @type == 'chart' ? 'hidden' : '' %>' id='singledate'>
  +          <div class='col-md-12'>
  +            <div class='form-group col-md-6'>
  +              <label for='date' class='col-md-3 text-right'>Date</label>
  +              <div class='input-group date col-md-9' id='date'>
  +                <input type='text' class="form-control" id='new-date' name='date'/>
  +                <span class="input-group-addon">
  +                  <i class="fa fa-calendar"></i>
  +                </span>
  +              </div>
  +            </div>
  +          </div>
  +        </div>
  +
           <% if @to %>
   
           <div class="row">
  
positive.code: 
      <div role="tabpanel" class="tab-pane" id="dates">
  
          <div class='row'>
            <div class='col-md-12'>
              <div class='form-group col-md-6'>
                <label for='oldest' class='col-md-3 text-right'>From</label>
  
negative.code:   });
  
    $('input[name="type"]').change(function(){
      if ($(this).val() == 'chart') {
        $('#singledate').addClass('hidden')
        $('#tofrom').removeClass('hidden')
      } else {
        $('#singledate').removeClass('hidden')
        $('#tofrom').addClass('hidden')
      }
      updateEmbedCode({
        type: $(this).val()
      })
    })
  
  })
  </script>
  