OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/public/templates/components/toggled_multiselect.html

31 lines
1.1 KiB

<div>
<select filter-value-select
ng-show="!isMultiselect"
name="v[{{name}}][]"
ng-model="values"
ng-disabled="disabled"
id="values-{{name}}"
class="select-small"
style="vertical-align: top;"
require>
<option ng-repeat="value in availableOptions" value="{{ value[1] }}" ng-selected="isSelected(value[1])">{{ value[0] }}</option>
</select>
<select multiple
filter-value-select
ng-show="isMultiselect"
name="v[{{name}}][]"
ng-model="values"
ng-disabled="disabled"
id="values-{{name}}"
class="select-small"
style="vertical-align: top;"
require>
<option ng-repeat="value in availableOptions" value="{{ value[1] }}" ng-selected="isSelected(value[1])">{{ value[0] }}</option>
</select>
<a href class="no-decoration-on-hover" title="{{I18n.t('js.work_packages.label_enable_multi_select')}}" ng-click="toggleMultiselect()">
<icon-wrapper icon-name="plus"
icon-title="{{I18n.t('js.work_packages.label_enable_multi_select')}}"/>
</a>
</div>