parent
4397566f1e
commit
36930259d2
@ -33,7 +33,7 @@
|
|||||||
if (processed_last_submit === true) {
|
if (processed_last_submit === true) {
|
||||||
processed_last_submit = false;
|
processed_last_submit = false;
|
||||||
const toast = Toastify({
|
const toast = Toastify({
|
||||||
text: "Group is being added...",
|
text: $_('group-is-being-added'),
|
||||||
duration: -1,
|
duration: -1,
|
||||||
}).showToast();
|
}).showToast();
|
||||||
let postdata = {
|
let postdata = {
|
||||||
@ -47,7 +47,7 @@
|
|||||||
modal_open = false;
|
modal_open = false;
|
||||||
//
|
//
|
||||||
Toastify({
|
Toastify({
|
||||||
text: "Group added",
|
text: $_('group-added'),
|
||||||
duration: 500,
|
duration: 500,
|
||||||
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
|
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
|
||||||
}).showToast();
|
}).showToast();
|
||||||
@ -105,23 +105,22 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
|
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
|
||||||
<h3 class="text-lg leading-6 font-medium text-gray-900">
|
<h3 class="text-lg leading-6 font-medium text-gray-900">
|
||||||
Create a new user group
|
{$_('create-a-new-user-group')}
|
||||||
</h3>
|
</h3>
|
||||||
<div class="mt-2 mb-6">
|
<div class="mt-2 mb-6">
|
||||||
<p class="text-sm text-gray-500">
|
<p class="text-sm text-gray-500">
|
||||||
Please provide the required information for creating a new
|
{$_('please-provide-the-required-information-for-creating-a-new-user-group')}
|
||||||
user group.
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-6 gap-6">
|
<div class="grid grid-cols-6 gap-6">
|
||||||
<div class="col-span-6">
|
<div class="col-span-6">
|
||||||
<label
|
<label
|
||||||
for="firstname"
|
for="firstname"
|
||||||
class="block text-sm font-medium text-gray-700">Name</label>
|
class="block text-sm font-medium text-gray-700">{$_('name')}</label>
|
||||||
<input
|
<input
|
||||||
use:focus
|
use:focus
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
placeholder="Name"
|
placeholder="{$_('name')}"
|
||||||
class:border-red-500={!isNameValid}
|
class:border-red-500={!isNameValid}
|
||||||
class:focus:border-red-500={!isNameValid}
|
class:focus:border-red-500={!isNameValid}
|
||||||
class:focus:ring-red-500={!isNameValid}
|
class:focus:ring-red-500={!isNameValid}
|
||||||
@ -132,17 +131,17 @@
|
|||||||
{#if !isNameValid}
|
{#if !isNameValid}
|
||||||
<span
|
<span
|
||||||
class="flex items-center font-medium tracking-wide text-red-500 text-xs mt-1 ml-1">
|
class="flex items-center font-medium tracking-wide text-red-500 text-xs mt-1 ml-1">
|
||||||
Name is required
|
{$_('name-is-required')}
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-span-6">
|
<div class="col-span-6">
|
||||||
<label
|
<label
|
||||||
for="trackname"
|
for="trackname"
|
||||||
class="block text-sm font-medium text-gray-700">Description(optional)</label>
|
class="block text-sm font-medium text-gray-700">{$_('description-optional')}</label>
|
||||||
<input
|
<input
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
placeholder="Something about the group.."
|
placeholder="{$_('something-about-the-group')}"
|
||||||
bind:value={description_input_value}
|
bind:value={description_input_value}
|
||||||
type="text"
|
type="text"
|
||||||
name="trackname"
|
name="trackname"
|
||||||
|
@ -175,7 +175,7 @@
|
|||||||
{#if !isGroupnameValid}
|
{#if !isGroupnameValid}
|
||||||
<span
|
<span
|
||||||
class="flex items-center font-medium tracking-wide text-red-500 text-xs mt-1 ml-1">
|
class="flex items-center font-medium tracking-wide text-red-500 text-xs mt-1 ml-1">
|
||||||
Group name is required
|
{$_('group-name-is-required')}
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
@ -26,7 +26,7 @@ UserGroupService,
|
|||||||
});
|
});
|
||||||
function submit() {
|
function submit() {
|
||||||
Toastify({
|
Toastify({
|
||||||
text: "updating permissions...",
|
text: $_('updating-permissions'),
|
||||||
duration: 2500,
|
duration: 2500,
|
||||||
}).showToast();
|
}).showToast();
|
||||||
to_delete.forEach((d) => {
|
to_delete.forEach((d) => {
|
||||||
@ -160,7 +160,7 @@ UserGroupService,
|
|||||||
{$_('verfuegbare')}
|
{$_('verfuegbare')}
|
||||||
</div>
|
</div>
|
||||||
<div class="my-1 px-1 w-full overflow-hidden sm:w-1/2">
|
<div class="my-1 px-1 w-full overflow-hidden sm:w-1/2">
|
||||||
granted
|
{$_('granted')}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- -->
|
<!-- -->
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<section class="container p-5">
|
<section class="container p-5">
|
||||||
<span class="mb-1 text-3xl font-extrabold leading-tight">
|
<span class="mb-1 text-3xl font-extrabold leading-tight">
|
||||||
User Groups
|
{$_('user-groups')}
|
||||||
{#if store.state.jwtinfo.userdetails.permissions.includes('USERGROUP:CREATE')}
|
{#if store.state.jwtinfo.userdetails.permissions.includes('USERGROUP:CREATE')}
|
||||||
<button
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
@ -17,7 +17,7 @@
|
|||||||
}}
|
}}
|
||||||
type="button"
|
type="button"
|
||||||
class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:ml-3 sm:w-auto sm:text-sm">
|
class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:ml-3 sm:w-auto sm:text-sm">
|
||||||
Add User Group
|
{$_('add-user-group')}
|
||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<div class="text-center items-center justify-center">
|
<div class="text-center items-center justify-center">
|
||||||
<p class="mb-16 text-lg text-gray-500">
|
<p class="mb-16 text-lg text-gray-500">
|
||||||
<img class="w-full h-44" src={groups_empty} alt="" />
|
<img class="w-full h-44" src={groups_empty} alt="" />
|
||||||
<span class="font-bold">There are no groups yet.</span><br />
|
<span class="font-bold">{$_('there-are-no-groups-yet')}.</span><br />
|
||||||
<span>Add your first group</span>
|
<span>{$_('add-your-first-group')}</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
@ -78,8 +78,7 @@
|
|||||||
active_deletes[group.id] = false;
|
active_deletes[group.id] = false;
|
||||||
}}
|
}}
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
class="ml-4 text-indigo-600 hover:text-indigo-900 cursor-pointer">Cancel
|
class="ml-4 text-indigo-600 hover:text-indigo-900 cursor-pointer">{$_('cancel-delete')}</button>
|
||||||
Delete</button>
|
|
||||||
<button
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
UserGroupService.userGroupControllerRemove(group.id, true)
|
UserGroupService.userGroupControllerRemove(group.id, true)
|
||||||
|
@ -284,5 +284,19 @@
|
|||||||
"verfuegbare": "availdable",
|
"verfuegbare": "availdable",
|
||||||
"welcome_wavinghand": "Welcome 👋",
|
"welcome_wavinghand": "Welcome 👋",
|
||||||
"you-can-now-use-your-new-password-to-log-in-to-your-account": "You can now use your new password to log in to your account! 🎉",
|
"you-can-now-use-your-new-password-to-log-in-to-your-account": "You can now use your new password to log in to your account! 🎉",
|
||||||
"zip-postal-code": "ZIP/ postal code"
|
"zip-postal-code": "ZIP/ postal code",
|
||||||
|
"group-name-is-required": "Group name is required",
|
||||||
|
"updating-permissions": "updating permissions...",
|
||||||
|
"granted": "granted",
|
||||||
|
"group-is-being-added": "Group is being added...",
|
||||||
|
"group-added": "Group added",
|
||||||
|
"create-a-new-user-group": "Create a new user group",
|
||||||
|
"please-provide-the-required-information-for-creating-a-new-user-group": "Please provide the required information for creating a new user group.",
|
||||||
|
"name-is-required": "Name is required",
|
||||||
|
"description-optional": "Description(optional)",
|
||||||
|
"something-about-the-group": "Something about the group...",
|
||||||
|
"add-user-group": "Add User Group",
|
||||||
|
"user-groups": "User Groups",
|
||||||
|
"there-are-no-groups-yet": "There are no groups yet",
|
||||||
|
"add-your-first-group": "Add your first group"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user