Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation message styling through validationHtmlClass #444

Open
wants to merge 3 commits into
base: development
Choose a base branch
from
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
78 changes: 0 additions & 78 deletions dist/bootstrap-decorator.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/bootstrap-decorator.min.js

This file was deleted.

2,335 changes: 0 additions & 2,335 deletions dist/schema-form.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/schema-form.min.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/directives/decorators/bootstrap/array.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h3 ng-show="form.title && form.notitle !== true">{{ form.title }}</h3>
{{ form.add || 'Add'}}
</button>
</div>
<div class="help-block"
<div class="help-block {{form.validationHtmlClass}}"
ng-show="(hasError() && errorMessage(schemaError())) || form.description"
ng-bind-html="(hasError() && errorMessage(schemaError())) || form.description"></div>
</div>
2 changes: 1 addition & 1 deletion src/directives/decorators/bootstrap/checkbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
name="{{form.key.slice(-1)[0]}}">
<span ng-bind-html="form.title"></span>
</label>
<div class="help-block" sf-message="form.description"></div>
<div class="help-block {{form.validationHtmlClass}}" sf-message="form.description"></div>
</div>
2 changes: 1 addition & 1 deletion src/directives/decorators/bootstrap/checkboxes.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
</label>

</div>
<div class="help-block" sf-message="form.description"></div>
<div class="help-block {{form.validationHtmlClass}}" sf-message="form.description"></div>
</div>
2 changes: 1 addition & 1 deletion src/directives/decorators/bootstrap/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@
id="{{form.key.slice(-1)[0] + 'Status'}}"
class="sr-only">{{ hasSuccess() ? '(success)' : '(error)' }}</span>

<div class="help-block" sf-message="form.description"></div>
<div class="help-block {{form.validationHtmlClass}}" sf-message="form.description"></div>
</div>
2 changes: 1 addition & 1 deletion src/directives/decorators/bootstrap/fieldset-trcl.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<fieldset ng-disabled="form.readonly" class="schema-form-fieldset {{form.htmlClass}}">
<legend ng-class="{'sr-only': !showTitle() }">{{ form.title }}</legend>
<div class="help-block" ng-show="form.description" ng-bind-html="form.description"></div>
<div class="help-block {{form.validationHtmlClass}}" ng-show="form.description" ng-bind-html="form.description"></div>
<div ng-transclude></div>
</fieldset>
2 changes: 1 addition & 1 deletion src/directives/decorators/bootstrap/fieldset.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<fieldset ng-disabled="form.readonly" class="schema-form-fieldset {{form.htmlClass}}">
<legend ng-class="{'sr-only': !showTitle() }">{{ form.title }}</legend>
<div class="help-block" ng-show="form.description" ng-bind-html="form.description"></div>
<div class="help-block {{form.validationHtmlClass}}" ng-show="form.description" ng-bind-html="form.description"></div>
<sf-decorator ng-repeat="item in form.items" form="item"></sf-decorator>
</fieldset>
2 changes: 1 addition & 1 deletion src/directives/decorators/bootstrap/radio-buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
<span ng-bind-html="item.name"></span>
</label>
</div>
<div class="help-block" sf-message="form.description"></div>
<div class="help-block {{form.validationHtmlClass}}" sf-message="form.description"></div>
</div>
2 changes: 1 addition & 1 deletion src/directives/decorators/bootstrap/radios-inline.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
<span ng-bind-html="item.name"></span>
</label>
</div>
<div class="help-block" sf-message="form.description"></div>
<div class="help-block {{form.validationHtmlClass}}" sf-message="form.description"></div>
</div>
2 changes: 1 addition & 1 deletion src/directives/decorators/bootstrap/radios.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
<span ng-bind-html="item.name"></span>
</label>
</div>
<div class="help-block" sf-message="form.description"></div>
<div class="help-block {{form.validationHtmlClass}}" sf-message="form.description"></div>
</div>
2 changes: 1 addition & 1 deletion src/directives/decorators/bootstrap/select.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
ng-options="item.value as item.name group by item.group for item in form.titleMap track by item[form.trackBy]"
name="{{form.key.slice(-1)[0]}}">
</select>
<div class="help-block" sf-message="form.description"></div>
<div class="help-block {{form.validationHtmlClass}}" sf-message="form.description"></div>
</div>
2 changes: 1 addition & 1 deletion src/directives/decorators/bootstrap/textarea.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
ng-bind-html="form.fieldAddonRight"></span>
</div>

<span class="help-block" sf-message="form.description"></span>
<span class="help-block {{form.validationHtmlClass}}" sf-message="form.description"></span>
</div>