2018-02-15 15:50:55 +01:00
|
|
|
<form class="roster-filter-form input-button-group {[ if (!o.visible) { ]} hidden {[ } ]}">
|
2018-02-19 16:05:29 +01:00
|
|
|
<div class="form-inline flex-nowrap">
|
2018-02-19 16:24:05 +01:00
|
|
|
<div class="btn-group">
|
|
|
|
<input value="{{{o.filter_text}}}"
|
|
|
|
class="roster-filter form-control {[ if (o.filter_type === 'state') { ]} hidden {[ } ]}"
|
|
|
|
placeholder="{{{o.placeholder}}}">
|
2018-02-21 16:10:13 +01:00
|
|
|
<span class="clear-input fa fa-times {[ if (!o.filter_text) { ]} hidden {[ } ]}"></span>
|
2018-02-19 16:24:05 +01:00
|
|
|
</div>
|
2018-02-15 15:50:55 +01:00
|
|
|
|
2018-02-19 16:05:29 +01:00
|
|
|
<select class="form-control state-type {[ if (o.filter_type !== 'state') { ]} hidden {[ } ]}">
|
2018-02-15 15:50:55 +01:00
|
|
|
<option value="">{{{o.label_any}}}</option>
|
|
|
|
<option {[ if (o.chat_state === 'unread_messages') { ]} selected="selected" {[ } ]}
|
|
|
|
value="unread_messages">{{{o.label_unread_messages}}}</option>
|
|
|
|
<option {[ if (o.chat_state === 'online') { ]} selected="selected" {[ } ]}
|
|
|
|
value="online">{{{o.label_online}}}</option>
|
|
|
|
<option {[ if (o.chat_state === 'chat') { ]} selected="selected" {[ } ]}
|
|
|
|
value="chat">{{{o.label_chatty}}}</option>
|
|
|
|
<option {[ if (o.chat_state === 'dnd') { ]} selected="selected" {[ } ]}
|
|
|
|
value="dnd">{{{o.label_busy}}}</option>
|
|
|
|
<option {[ if (o.chat_state === 'away') { ]} selected="selected" {[ } ]}
|
|
|
|
value="away">{{{o.label_away}}}</option>
|
|
|
|
<option {[ if (o.chat_state === 'xa') { ]} selected="selected" {[ } ]}
|
|
|
|
value="xa">{{{o.label_xa}}}</option>
|
|
|
|
<option {[ if (o.chat_state === 'offline') { ]} selected="selected" {[ } ]}
|
|
|
|
value="offline">{{{o.label_offline}}}</option>
|
|
|
|
</select>
|
|
|
|
|
2018-02-19 16:05:29 +01:00
|
|
|
<div class="filter-by d-flex flex-nowrap">
|
|
|
|
<span class="fa fa-user {[ if (o.filter_type === 'contacts') { ]} selected {[ } ]}" data-type="contacts" title="{{{o.title_contact_filter}}}"></span>
|
|
|
|
<span class="fa fa-users {[ if (o.filter_type === 'groups') { ]} selected {[ } ]}" data-type="groups" title="{{{o.title_group_filter}}}"></span>
|
|
|
|
<span class="fa fa-circle {[ if (o.filter_type === 'state') { ]} selected {[ } ]}" data-type="state" title="{{{o.title_status_filter}}}"></span>
|
2018-02-15 15:50:55 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-30 16:45:52 +02:00
|
|
|
</form>
|