django-bootstrap4 icon indicating copy to clipboard operation
django-bootstrap4 copied to clipboard

radio buttons template outdated

Open Quayle57 opened this issue 7 years ago • 2 comments

Hello,

I tried this project with some radio buttons and the template need some changes:

  • form-group does not work with radio button, they need form-check
  • the label should have the class form-check-label, for now they have none

I pasted the example from the bootstrap doc to explain better:

<fieldset class="form-group row">
  <legend class="col-form-legend col-sm-2">Radios</legend>
    <div class="col-sm-10">
      <div class="form-check">
        <label class="form-check-label">
          <input class="form-check-input" type="radio" name="gridRadios" id="gridRadios1" value="option1" checked>
            Option one is this and that&mdash;be sure to include why it's great
        </label>
      </div>
      <div class="form-check">
        <label class="form-check-label">
          <input class="form-check-input" type="radio" name="gridRadios" id="gridRadios2" value="option2">
            Option two can be something else and selecting it will deselect option one
        </label>
      </div>
      <div class="form-check disabled">
        <label class="form-check-label">
          <input class="form-check-input" type="radio" name="gridRadios" id="gridRadios3" value="option3" disabled>
            Option three is disabled
        </label>
      </div>
    </div>
</fieldset>

Quayle57 avatar Apr 28 '17 09:04 Quayle57

Will check and give you update when it is fixed.

GabrielUlici avatar Apr 28 '17 15:04 GabrielUlici

+1

jobelenus avatar May 01 '17 21:05 jobelenus