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/frontend/public/templates/components/toggled_multiselect.html

31 lines
1.2 KiB

<span class="inline-label">
<select filter-value-select
ng-if="!isMultiselect"
name="v[{{name}}][]"
ng-model="$parent.values"
ng-disabled="disabled"
id="values-{{name}}"
class="form--select -small"
style="vertical-align: top;"
require>
<option ng-repeat="value in availableOptions" value="{{ value[1] }}" ng-selected="isSelected(value[1])" label="{{ value[0] }}">{{ value[0] }}</option>
</select>
<select multiple
filter-value-select
ng-if="isMultiselect"
name="v[{{name}}][]"
ng-model="$parent.values"
ng-disabled="disabled"
id="values-{{name}}"
class="form--select -small"
style="vertical-align: top;"
require>
<option ng-repeat="value in availableOptions" value="{{ value[1] }}" ng-selected="isSelected(value[1])" label="{{ value[0] }}">{{ value[0] }}</option>
</select>
<a href class="form-label 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>