init
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
<section id="notifications_widget">
|
||||
{% if requests %}
|
||||
<ul class="list">
|
||||
<li class="subheader">
|
||||
<div>
|
||||
<p>{{ __('invitations.received') }}</p>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<ul id="notifications_invitations" class="list middle spaced">{% for value in requests %}<li id="invitation-{{ value.jid|cleanupId }}" data-jid="{{ value.jid }}">
|
||||
<span class="primary icon bubble active" onclick="ChatActions_ajaxGetContact('{{ value.jid|echapJS }}');">
|
||||
<img src="{{ value.picture }}">
|
||||
</span>
|
||||
<span class="control icon green active" title="{{ __('button.accept') }}" onclick="Notifications_ajaxAccept('{{ value.jid|echapJS }}');">
|
||||
<i class="material-symbols">check</i>
|
||||
</span>
|
||||
<span class="control icon red active" title="{{ __('button.refuse') }}" onclick="Notifications_ajaxRefuse('{{ value.jid|echapJS }}');">
|
||||
<i class="material-symbols">close</i>
|
||||
</span>
|
||||
<div>
|
||||
<p class="line">
|
||||
{{ __('invitations.adds_you', value.truename) }}
|
||||
</p>
|
||||
<p class="line">{{ value.jid }}</p>
|
||||
</div>
|
||||
</li>{% endfor %}</ul>
|
||||
<div class="placeholder">
|
||||
<i class="material-symbols">person_add</i>
|
||||
<h4>{{ __('invitations.no_new') }}</h4>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if subscriptions %}
|
||||
<ul class="list">
|
||||
<li class="subheader">
|
||||
<div>
|
||||
<p>{{ __('subscription.nil') }}</p>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<ul id="notifications_subscriptions" class="list spaced">{% for value in subscriptions %}<li id="invitation-{{ value.jid|cleanupId }}" data-jid="{{ value.jid }}">
|
||||
<span class="primary icon bubble active" onclick="ChatActions_ajaxGetContact('{{ value.jid|echapJS }}');">
|
||||
<img src="{{ value.picture }}">
|
||||
</span>
|
||||
{% if value.ask == 'subscribe' %}
|
||||
<span class="control icon gray disabled" title="{{ __('room.invited') }}">
|
||||
<i class="material-symbols">chat_paste_go</i>
|
||||
</span>
|
||||
{% else %}
|
||||
<span class="control icon gray active" title="{{ __('button.add') }}" onclick="Notifications_ajaxAddAsk('{{ value.jid|echapJS }}'); Drawer.clear();">
|
||||
<i class="material-symbols">add</i>
|
||||
</span>
|
||||
{% endif %}
|
||||
<span class="control icon gray active" title="{{ __('button.delete') }}" onclick="Notifications_ajaxDeleteContact('{{ value.jid|echapJS }}'); Drawer.clear();">
|
||||
<i class="material-symbols">delete</i>
|
||||
</span>
|
||||
<div>
|
||||
<p class="line">
|
||||
{{ value.truename }}
|
||||
</p>
|
||||
<p class="line">{{ value.jid }}</p>
|
||||
</div>
|
||||
</li>{% endfor %}</ul>
|
||||
<div class="placeholder">
|
||||
<i class="material-symbols">person_check</i>
|
||||
<h4>{{ __('invitations.no_subscriptions') }}</h4>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if not requests and not subscriptions %}
|
||||
<div class="placeholder">
|
||||
<i class="material-symbols">notifications</i>
|
||||
<h4>{{ __('invitations.no_new') }}</h4>
|
||||
</div>
|
||||
{% endif %}
|
||||
</section>
|
||||
@@ -0,0 +1,56 @@
|
||||
<section>
|
||||
<h3>{% if edit %}{{ __('button.edit') }}{% else %}{{ __('roster.add_title') }}{% endif %}</h3>
|
||||
<ul class="list thick">
|
||||
<li>
|
||||
<span class="primary icon bubble">
|
||||
<img src="{{ contact.picture }}">
|
||||
</span>
|
||||
<div>
|
||||
<p class="line">
|
||||
{{ contact.truename }}
|
||||
</p>
|
||||
<p>{{ contact.id }}</p>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<form name="add" onsubmit="return false;">
|
||||
{% if contact.id %}
|
||||
<input name="searchjid" id="searchjid" type="hidden" value="{{ contact.id }}"/>
|
||||
{% else %}
|
||||
<div>
|
||||
<input name="searchjid" id="searchjid" type="email" required placeholder="user@server.tld"/>
|
||||
<label for="searchjid">{{ __('roster.add_contact_info1') }}</label>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div>
|
||||
<input
|
||||
name="alias"
|
||||
id="alias"
|
||||
placeholder="{{ __('edit.alias') }}"
|
||||
value="{{ alias }}"/>
|
||||
<label for="alias">{{ __('edit.alias') }}</label>
|
||||
</div>
|
||||
<div>
|
||||
<datalist id="group_list" style="display: none;">
|
||||
{% for value in groups %}
|
||||
<option value="{{ value }}"/>
|
||||
{% endfor %}
|
||||
</datalist>
|
||||
<input
|
||||
name="group"
|
||||
list="group_list"
|
||||
id="group"
|
||||
placeholder="{{ __('edit.group') }}"
|
||||
value="{{ group }}"/>
|
||||
<label for="group">{{ __('edit.group') }}</label>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
<footer>
|
||||
<button onclick="Dialog_ajaxClear()" class="button flat">
|
||||
{{ __('button.close') }}
|
||||
</button>
|
||||
<button onclick="Notifications_ajaxAdd(MovimUtils.formToJson('add'))" class="button flat">
|
||||
{% if edit %}{{ __('button.save') }}{% else %}{{ __('button.add') }}{% endif %}
|
||||
</button>
|
||||
</footer>
|
||||
@@ -0,0 +1,18 @@
|
||||
<section>
|
||||
<h3>{{ __('delete.title') }}</h3>
|
||||
<br />
|
||||
<h4 class="gray">{{ __('delete.text') }}</h4>
|
||||
<br />
|
||||
<h4 class="gray">{{ jid }}</h4>
|
||||
</section>
|
||||
<footer>
|
||||
<button onclick="Dialog_ajaxClear()" class="button flat">
|
||||
{{ __('button.cancel') }}
|
||||
</button>
|
||||
<button
|
||||
name="submit"
|
||||
class="button flat"
|
||||
onclick="Notifications_ajaxDelete('{{ jid|echapJS }}'); Dialog_ajaxClear()">
|
||||
{{ __('button.delete') }}
|
||||
</button>
|
||||
</footer>
|
||||
Reference in New Issue
Block a user