-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
唐磊
committed
Apr 20, 2017
1 parent
f3ebcc7
commit 0f870b0
Showing
7 changed files
with
143 additions
and
6 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<div class="form-group {{form.htmlClass}} schema-form-treemultiselect" | ||
ng-class="{'has-error': form.disableErrorState !== true && hasError(), 'has-success': form.disableSuccessState !== true && hasSuccess()}"> | ||
<label ng-if="!form.notitle" class="control-label {{form.labelHtmlClass}}" ng-class="{'schema-form-required': form.inputrequired === true}" ng-show="showTitle()">{{form.title}}<span ng-if="form.inputrequired === true" class="join-required"></span></label> | ||
<div class="joininputcol ui-select-container ui-select-multiple select2 select2-container select2-container-multi" ng-href="" ng-click="form.openSelect()"> | ||
<div ng-if="form.addDataOption" class="input-group"><ul class="select2-choices"> | ||
<li class="select2-search-field" ng-if="!$$value$$ || $$value$$.length == 0"><input type="text" class="select2-input ui-select-search ng-pristine" readonly="readonly" placeholder="{{form.placeholder}}"></li> | ||
<li class="ui-select-match-item select2-search-choice" ng-repeat="item in $$value$$"> | ||
<div ng-bind-html="$$value$$[form.map.displayProp]"></div> | ||
<small ng-if="form.map.moreitemname1" ng-bind="$$value$$[form.map.moreitemname1]" style="padding-right: 10px;" ng-bind="item.uoiId.shortName"></small> | ||
<small ng-if="form.map.moreitemname2" ng-bind="$$value$$[form.map.moreitemname2]"></small></li> | ||
</ul> | ||
<span class="input-group-btn"><button class="btn" ng-class="form.addDataOption.class" type="button" ng-click="form.addDataOption.cb($event,form)"><span class="icon-activities_icon_add" style="padding-right:5px;" ng-if="!form.addDataOption.title"></span>{{form.addDataOption.title||'新增'}}</button></span> | ||
</div> | ||
<ul ng-if="!form.addDataOption" class="select2-choices"> | ||
<li class="select2-search-field" ng-if="!$$value$$ || $$value$$.length == 0"><input type="text" class="select2-input ui-select-search ng-pristine" readonly="readonly" placeholder="{{form.placeholder}}"></li> | ||
<li class="ui-select-match-item select2-search-choice" ng-repeat="item in $$value$$"> | ||
<div ng-bind-html="item[form.map.displayProp]"></div> | ||
<small ng-if="form.map.moreitemname1" ng-bind="item[form.map.moreitemname1]" style="padding-right: 10px;" ng-bind="item.uoiId.shortName"></small> | ||
<small ng-if="form.map.moreitemname2" ng-bind="item[form.map.moreitemname2]"></small></li> | ||
</ul> | ||
<div class="help-block" sf-message="form.description"></div> | ||
</div> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div class="form-group {{form.htmlClass}} schema-form-treeselect" | ||
ng-class="{'has-error': form.disableErrorState !== true && hasError(), 'has-success': form.disableSuccessState !== true && hasSuccess(), 'has-feedback': form.feedback !== false }"> | ||
<label ng-if="!form.notitle" class="control-label {{form.labelHtmlClass}}" ng-show="showTitle()" ng-class="{'schema-form-required': form.inputrequired === true}">{{form.title}}<span ng-if="form.inputrequired === true" class="join-required"></span></label> | ||
<div class="joininputcol ui-select-container ui-select-bootstrap dropdown" ng-href="" ng-click="form.openSelect()"><div ng-if="form.addDataOption" class="input-group"><div class="ui-select-match" ng-class="form.fieldHtmlClass"> | ||
<span tabindex="-1" class="btn btn-default form-control ui-select-toggle" style="outline: 0;"> | ||
<span class="ui-select-match-text pull-left"><div ng-bind-html="($$value$$?$$value$$[form.map.displayProp]:'') || form.placeholder"></div> | ||
<small ng-if="$$value$$ && form.map.moreitemname1" ng-bind="$$value$$[form.map.moreitemname1]" style="padding-right: 10px;" ng-bind="item.uoiId.shortName"></small> | ||
<small ng-if="$$value$$ && form.map.moreitemname2" ng-bind="$$value$$[form.map.moreitemname2]"></small> | ||
</span> | ||
<i class="caret pull-right"></i> | ||
</span> | ||
</div> | ||
<span class="input-group-btn"><button class="btn" ng-class="form.addDataOption.class" type="button" ng-click="form.addDataOption.cb($event,form)"><span class="icon-activities_icon_add" style="padding-right:5px;" ng-if="!form.addDataOption.title"></span>{{form.addDataOption.title||'新增'}}</button> | ||
</span></div><div ng-if="!form.addDataOption" class="ui-select-match" ng-class="form.fieldHtmlClass"> | ||
<span tabindex="-1" class="btn btn-default form-control ui-select-toggle" style="outline: 0;"> | ||
<span class="ui-select-match-text pull-left"><span ng-bind-html="$$value$$[form.map.displayProp] || form.placeholder"></span></span> | ||
<i class="caret pull-right"></i> | ||
</span> | ||
</div> | ||
<div class="help-block" sf-message="form.description"></div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters