Skip to content

Commit

Permalink
Fix bootstrap class name for checkbox in form
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Apr 1, 2019
1 parent 8bbffff commit b84da45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions contribs/gmf/src/print/component.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@

<div
ng-if="attribute.type === 'checkbox'"
class="checkbox">
<label>
class="form-check">
<label class="form-check-label">
<input
class="form-check-input"
ng-model="attribute.value"
type="checkbox">
<span>{{attribute.name | translate}}</span>
Expand Down
5 changes: 3 additions & 2 deletions src/editing/attributescomponent.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@

<div
ng-switch-when="boolean"
class="checkbox">
<label>
class="form-check">
<label class="form-check-label">
<input
name="{{::attribute.name}}"
class="form-check-input"
ng-model="attrCtrl.properties[attribute.name]"
ng-change="attrCtrl.handleInputChange(attribute.name);"
type="checkbox">
Expand Down

0 comments on commit b84da45

Please sign in to comment.