Skip to content
Snippets Groups Projects
Verified Commit 94bae1da authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Pomale vyhledavani

parent 93418470
No related branches found
No related tags found
No related merge requests found
......@@ -11,10 +11,9 @@ our %Lexicon = (
INPUT_MEET_DESCRIPTION_PLACEHOLDER => 'Popis místnosti',
INPUT_MEET_DESCRIPTION_LABEL => 'Popis místnosti',
INPUT_MEET_ADD_GROUPS_LABEL => 'Přidat skupiny',
INPUT_MEET_ADD_GROUPS_PLACEHOLDER => 'Začněte psát název skupiny pro hledání',
INPUT_MEET_ADD_USERS_PLACEHOLDER => 'Začněte psát jméno osoby pro hledání',
INPUT_MEET_ADD_GROUPS_PLACEHOLDER => 'Zadejte název skupiny pro hledání',
INPUT_MEET_ADD_USERS_PLACEHOLDER => 'Zadejte jméno osoby pro hledání',
INPUT_MEET_ADD_GROUPS_LABEL => 'Přidat skupiny',
INPUT_MEET_ADD_GROUPS_PLACEHOLDER => 'Začněte psát název skupiny pro hledání',
ERROR_SERVERSIDE => 'Chyba na straně serveru',
ERROR_MEET_NAME_REQURED => "Název nové místnosti je povinný",
ERROR_MEET_NAME_DUPLICITY => 'Duplicitní název mistnosti',
......@@ -22,6 +21,8 @@ our %Lexicon = (
ENTER => 'Vstoupit',
COPY_LINK => 'Zkopírovat odkaz',
'Search person' => 'Vyhledat osobu',
'Search groups' => 'Vyhledat skupiny',
'About meet' => 'O mistnosti',
'Add groups' => 'Přidat skupiny',
'Add moderators' => 'Přidat moderatory',
......
......@@ -12,7 +12,13 @@
% if ( $roles->{owner} || $roles->{moderator} ) {
<div v-effect="searchGroups()">
<label class="form-field__label" for="name"><%=l 'Adding groups' %></label>
<input type="text" class="w-full text-input" value="" v-model="filter['group']" id="search_group" placeholder="<%=l 'INPUT_MEET_ADD_GROUPS_PLACEHOLDER' %>"/>
<div class="flex flex-row">
<input type="text" class="w-full text-input" value="" v-model.lazy="filter['group']" id="search_group" placeholder="<%=l 'INPUT_MEET_ADD_GROUPS_PLACEHOLDER' %>"/>
<button class="btn btn--green-400 btn--hoveractive w-1/5 text-sm" @click="searchGroups()">
<div class="btn__body w-full"><%=l 'Search groups' %></div>
</button>
</div>
<div class="overflow-y-auto h-64 mb-4 border p-2 text-sm" v-if="search['group'].length > 0">
<div v-for="group in search['group']" class="checkbox form-field__control mb-1" >
<input name="groups" type="checkbox" v-bind:title="group.id" v-bind:value="group.id" v-model="selected['group']" >
......
......@@ -12,14 +12,20 @@
% if ( $roles->{owner} ) {
<div v-effect="searchUsers('moderator')">
<label class="form-field__label" for="name"><%=l 'Adding moderators' %></label>
<input type="text" class="w-full text-input" value="" v-model="filter['moderator']" id="search_moderator" placeholder="<%=l 'INPUT_MEET_ADD_USERS_PLACEHOLDER' %>"/>
<div class="overflow-y-auto h-64 mb-4 border p-2 text-sm" v-if="search['moderator'].length > 0">
<div class="flex flex-row">
<input type="text" class="w-full text-input" value="" v-model.lazy="filter['moderator']" id="search_moderator" placeholder="<%=l 'INPUT_MEET_ADD_USERS_PLACEHOLDER' %>"/>
<button class="btn btn--red-600 btn--hoveractive w-1/5 text-sm" @click="searchUsers('moderator')">
<div class="btn__body w-full"><%=l 'Search person' %></div>
</button>
</div>
<div class="overflow-y-auto h-64 mb-4 border p-2 text-sm" v-if="search['moderator'].length > 0">
<div v-for="user in search['moderator']" class="checkbox form-field__control mb-1" >
<input name="moderators" type="checkbox" :value="user.uuid" v-model="selected['moderator']" >
<label style="max-width: 100%">{{user.name}} ({{ user.username }})<span v-if="user.region.length > 0" class="text-grey-300 text-xs"> | {{ user.region }}</span></label>
</div>
</div>
<div class="form-field" v-if="selected['moderator'].length > 0">
</div>
<div class="form-field" v-if="selected['moderator'].length > 0">
<button class="btn btn--red-600 btn--hoveractive text-lg" @click="addUsers('moderator')">
<div class="btn__body"><%=l 'Add moderators' %></div>
</button>
......
......@@ -12,7 +12,13 @@
% if ( $roles->{owner} || $roles->{moderator} ) {
<div v-effect="searchUsers('participant')">
<label class="form-field__label" for="name"><%=l 'Adding people' %></label>
<input type="text" class="w-full text-input" value="" v-model="filter['participant']" id="search_participant" placeholder="<%=l 'INPUT_MEET_ADD_USERS_PLACEHOLDER' %>"/>
<div class="flex flex-row">
<input type="text" class="w-4/5 text-input text-sm" value="" v-model.lazy="filter['participant']" id="search_participant" placeholder="<%=l 'INPUT_MEET_ADD_USERS_PLACEHOLDER' %>"/>
<button class="btn btn--blue-300 btn--hoveractive w-1/5 text-sm" @click="searchUsers('participant')">
<div class="btn__body w-full"><%=l 'Search person' %></div>
</button>
</div>
<div class="overflow-y-auto h-64 mb-4 border p-2 text-sm" v-if="search['participant'].length > 0">
<div v-for="user in search['participant']" class="checkbox form-field__control mb-1" >
<input name="participants" type="checkbox" :value="user.uuid" v-model="selected['participant']" >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment