Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions client/common/directives/ModelField/ModelField.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,12 @@ angular.module('dashboard.directives.ModelField', [
ngOptions = 'text in display.options';
}
template = '<label class="col-sm-2 control-label">{{ display.label || key }}:</label>\
<div class="col-sm-10">\
<label ng-repeat="'+ngOptions+'" class="radio"><input type="radio" ng-model="data[key]" ng-value="value || text" ng-disabled="display.readonly" name="{{key}}"> {{text}}</label>\
<div class="col-sm-10">\
<div class="radio" ng-repeat="'+ngOptions+'"> \
<label><input type="radio" ng-model="data[key]" ng-value="value || text" ng-disabled="display.readonly" name="{{key}}"> {{text}}</label>\
<div class="model-field-description" ng-if="display.description !== false">{{ display.description }}</div>\
</div>';
</div>\
</div>';
break;
case 'slider':
template = '<label class="col-sm-2 control-label">{{ display.label || key }}:</label>\
Expand Down
3 changes: 3 additions & 0 deletions client/css/main.styl
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ a:hover
.no-script-warning
padding: 10px
text-align: center
.radio
margin-top: 0px
margin-bottom: 0px