Skip to content

Instantly share code, notes, and snippets.

@Doopin
Created April 4, 2015 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Doopin/d639d045f6985b671f05 to your computer and use it in GitHub Desktop.
Save Doopin/d639d045f6985b671f05 to your computer and use it in GitHub Desktop.
How to fix this On Select2 4 with Bootstrap 3.3.4
<div>
<div class="form-group">
<div class="col-sm-6">
<label class="control-label" for="gender"><?php echo ucfirst($this->translate('sexe')); ?></label>
<div class="input-group">
<span class="input-group-addon">
<span class="icomoon-mars"></span>
</span>
<select required class="select-without-search form-control" name="gender" data-fv-notempty
data-placeholder="Select gender"
data-fv-icon="false" datsimple-selectizea-fv-notempty-message="<?php echo ucfirst(sprintf($this->translate('%s requis'), $this->translate("sexe"))) ?>." >
<option value=""><?php echo ucfirst($this->translate('sexe')) ?></option>
<option value="M"><?php echo ucfirst($this->translate('homme')) ?></option>
<option value="F"><?php echo ucfirst($this->translate('femme')) ?></option>
</select>
</div>
</div>
</div>
<div class="form-group" style="margin-top: -25%">
<div class="col-sm-6">
<label class="control-label" for="birthday"><?php echo ucfirst($this->translate('anniversaire')); ?></label>
<div class="input-group birthday-feedback-icon">
<span class="input-group-addon">
<span class="icomoon-calendar2"></span>
</span>
<input required name="birthday" placeholder="<?php echo $this->translate('AAAA-MM-JJ') ?>" type="text" class="form-control date-picker revalidate" id="birthday"
data-fv-notempty-message="<?php echo ucfirst(sprintf($this->translate('%s requise'), $this->translate("date d'anniversaire"))) ?>."
data-fv-date="true" data-fv-icon="false" data-fv-date-format="YYYY-MM-DD" data-fv-date-message="<?php echo ucfirst(sprintf($this->translate('%s invalide'), $this->translate("date d'anniversaire"))) ?>." />
</div>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment