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

27 lines
1.1 KiB

<div>
<select ng-show="!isMultiselect"
name="v[{{name}}][]"
ng-model="values"
id="values-{{name}}"
class="select-small"
style="vertical-align: top;"
require>
<option ng-repeat="value in availableFilterValues" value="{{ value[1] }}" ng-selected="values.indexOf(value[1]) >= 0">{{ value[0] }}</option>
</select>
<select multiple
ng-show="isMultiselect"
name="v[{{name}}][]"
ng-model="values"
id="values-{{name}}"
class="select-small"
style="vertical-align: top;"
require>
<option ng-repeat="value in availableFilterValues" value="{{ value[1] }}" ng-selected="values.indexOf(value[1]) >= 0">{{ value[0] }}</option>
</select>
<a alt="Toggle multiselect" href="#" style="vertical-align: bottom;" title="Toggle multiselect" ng-click="toggleMultiselect()">
<img alt="Bullet_toggle_plus" src="/assets/bullet_toggle_plus.png"/>
<span class="hidden-for-sighted">{{ I18n.t('js.work_packages.label_enable_multi_select') }}</span>
</a>
</div>