Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4bbd97b

Browse files
Close angular-schema-form#612 add 'required' to css
1 parent 0cd0a1e commit 4bbd97b

13 files changed

+78
-40
lines changed

‎dist/angular-schema-form-bootstrap-bundled.js

Lines changed: 12 additions & 12 deletions
Large diffs are not rendered by default.

‎dist/angular-schema-form-bootstrap-bundled.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/angular-schema-form-bootstrap.js

Lines changed: 10 additions & 10 deletions
Large diffs are not rendered by default.

‎dist/angular-schema-form-bootstrap.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-schema-form-bootstrap",
3-
"version": "1.0.0-alpha.4",
3+
"version": "1.0.0-alpha.5",
44
"description": "Bootstrap 3 decorator for Angular Schema Form",
55
"main": "dist/angular-schema-form-bootstrap.js",
66
"scripts": {
@@ -51,7 +51,7 @@
5151
"sinon": "^1.17.4",
5252
"sinon-chai": "^2.8.0",
5353
"streamqueue": "^0.1.3",
54-
"uglify-js": "^2.6.2",
54+
"uglify-js": "github:mishoo/UglifyJS2#harmony",
5555
"webpack": "^2.1.0-beta.27",
5656
"webpack-dev-server": "^2.1.0-beta.12"
5757
}

‎src/bootstrap/checkbox.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<div class="checkbox schema-form-checkbox {{::form.htmlClass + ' ' + idClass}}"
2-
ng-class="{'has-error': form.disableErrorState !== true && hasError(), 'has-success': form.disableSuccessState !== true && hasSuccess()}">
2+
ng-class="{
3+
'has-error': form.disableErrorState !== true && hasError(),
4+
'has-success': form.disableSuccessState !== true && hasSuccess(),
5+
'has-feedback': form.feedback !== false,
6+
'required': form.required === true
7+
}">
38
<label class="{{::form.labelHtmlClass}}">
49
<input type="checkbox"
510
sf-changed="form"

‎src/bootstrap/checkboxes.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<div sf-field-model="sf-new-array"
22
sf-new-array
33
class="form-group schema-form-checkboxes {{::form.htmlClass + ' ' + idClass}}"
4-
ng-class="{'has-error': form.disableErrorState !== true && hasError(), 'has-success': form.disableSuccessState !== true && hasSuccess()}">
4+
ng-class="{
5+
'has-error': form.disableErrorState !== true && hasError(),
6+
'has-success': form.disableSuccessState !== true && hasSuccess(),
7+
'required': form.required === true
8+
}">
59
<label class="control-label {{::form.labelHtmlClass}}"
610
sf-field-model
711
schema-validate="form"

‎src/bootstrap/default.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<div class="form-group {{::form.htmlClass + ' schema-form-' + form.type + ' ' + idClass}}"
2-
ng-class="{ 'has-error': form.disableErrorState !== true && hasError(), 'has-success': form.disableSuccessState !== true && hasSuccess(), 'has-feedback': form.feedback !== false }">
2+
ng-class="{
3+
'has-error': form.disableErrorState !== true && hasError(),
4+
'has-success': form.disableSuccessState !== true && hasSuccess(),
5+
'has-feedback': form.feedback !== false,
6+
'required': form.required === true
7+
}">
38
<label class="control-label {{::form.labelHtmlClass}}" ng-class="{'sr-only': !showTitle()}" for="{{::fieldId(true, false)}}">{{form.title}}</label>
49

510
<input ng-if="!form.fieldAddonLeft && !form.fieldAddonRight"

‎src/bootstrap/radio-buttons.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<div class="form-group schema-form-radiobuttons {{::form.htmlClass + ' ' + idClass}}"
2-
ng-class="{'has-error': form.disableErrorState !== true && hasError(), 'has-success': form.disableSuccessState !== true && hasSuccess()}">
2+
ng-class="{
3+
'has-error': form.disableErrorState !== true && hasError(),
4+
'has-success': form.disableSuccessState !== true && hasSuccess(),
5+
'required': form.required === true
6+
}">
37
<div>
48
<label class="control-label {{::form.labelHtmlClass}}" ng-show="showTitle()">{{form.title}}</label>
59
</div>

‎src/bootstrap/radios-inline.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<div class="form-group schema-form-radios-inline {{::form.htmlClass + ' ' + idClass}}"
2-
ng-class="{'has-error': form.disableErrorState !== true && hasError(), 'has-success': form.disableSuccessState !== true && hasSuccess()}">
2+
ng-class="{
3+
'has-error': form.disableErrorState !== true && hasError(),
4+
'has-success': form.disableSuccessState !== true && hasSuccess(),
5+
'required': form.required === true
6+
}">
37
<label class="control-label {{::form.labelHtmlClass}}"
48
ng-show="showTitle()" sf-field-model
59
schema-validate="form" >{{form.title}}</label>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /