Sha256: 5227d4e72c0c43c38ea9e46f515dfae75b71446b00a7af623ee40bb6d7fd42dc
Contents?: true
Size: 1.9 KB
Versions: 8
Compression:
Stored size: 1.9 KB
Contents
<div> <select ui-select2="options" id="{{ element_id }}" ng-model="model" data-placeholder="asda asdasdasd" name="{{ field.name }}" ng-required="required" ng-if="field.type === 'belongs_to'" ng-change="on_select_change()"> <option ng-repeat="item in all_options" value="{{ item.id }}" title="{{ item[titleField] || item }}" ng-selected="item.id === model.id">{{ item[titleField] || item }}</option> </select> <select ui-select2="options" id="{{ element_id }}" ng-model="model" data-placeholder="dfsd{{ placeholder }}" name="{{ field.name }}" ng-required="required" multiple ng-if="field.type === 'has_many'" ng-change="on_select_change()"> <option ng-repeat="item in all_options" value="{{ item.id }}" title="{{ item[titleField] || item }}" ng-selected="have(item.id)">{{ item[titleField] || item }}</option> </select> <select ui-select2="options" id="{{ element_id }}" ng-model="model" name="{{ field.name }}" data-placeholder="sdf {{ placeholder }}" ng-required="required" ng-if="field.type === 'in'" ng-change="on_select_change()"> <option ng-repeat="item in field.choices" value="{{ item.name }}" title="{{ item.title }}" ng-selected="model === item.name">{{ item.title }}</option> </select> <!-- Add and Refresh buttons --> <div class="float-left"> <span class="helptext" ng-if="options.help_text && show_help_text">{{ options.help_text }}</span> </div> <div class="float-right relation_links" ng-if="(field.type === 'belongs_to') || (field.type === 'has_many')"> <span ng-click="help_btn_clicked()" ng-if="show_help_btn"> <i class="fa fa-question"></i> </span> <span> <a ng-href="#{{ field.to }}/new" target="_blank"> <i class="fa fa-plus"></i> </a> </span> <span ng-click="update_collection()"> <i class="fa fa-refresh"></i> </span> </div> <small id="{{ msg_element_id }}"></small> <!-- --------------------------------- --> </div>
Version data entries
8 entries across 8 versions & 1 rubygems