SillyTavern/public/scripts/templates/admin.html

93 lines
4.5 KiB
HTML
Raw Normal View History

2024-04-08 01:38:20 +02:00
<div class="adminTabs wide100p">
<nav class="adminNav flex-container alignItemsCenter justifyCenter">
<button type="button" class="manageUsersButton menu_button menu_button_icon" data-target-tab="usersList">
<h4>Manage Users</h4>
</button>
<button type="button" class="newUserButton menu_button menu_button_icon" data-target-tab="registerNewUserBlock">
<h4>New User</h4>
</button>
</nav>
<div class="userAccountTemplate template_element">
<div class="flex-container userAccount alignItemsCenter flexGap10">
<div>
<div class="avatar">
<img src="img/ai4.png" alt="avatar">
</div>
</div>
<div class="flex1 flex-container flexFlowColumn flexNoGap justifyLeft">
<div class="flex-container flexGap10 alignItemsCenter">
<i class="hasPassword fa-solid fa-lock"></i>
<i class="noPassword fa-solid fa-lock-open"></i>
<h3 class="userName margin0"></h3>
<small class="userHandle">@userhandle</small>
</div>
<div class="flex-container flexFlowColumn flexNoGap">
<span>
<span>Role:</span>
<span class="userRole"></span>
</span>
<span>
<span>Status:</span>
<span class="userStatus">Status</span>
</span>
<span>
<span>Created:</span>
<span class="userCreated">Date</span>
</span>
</div>
</div>
<div class="flex-container">
2024-04-09 21:43:47 +02:00
<div class="userEditButton menu_button disabled">
<i class="fa-fw fa-solid fa-pencil"></i>
</div>
<div class="userEnableButton menu_button" title="Enable user account.">
<i class="fa-fw fa-solid fa-check"></i>
</div>
<div class="userDisableButton menu_button" title="Disable user account.">
<i class="fa-fw fa-solid fa-ban"></i>
</div>
<div class="userPromoteButton menu_button" title="Promote user to admin.">
<i class="fa-fw fa-solid fa-arrow-up"></i>
</div>
<div class="userDemoteButton menu_button" title="Demote user to regular user.">
<i class="fa-fw fa-solid fa-arrow-down"></i>
</div>
<div class="userBackupButton menu_button menu_button_icon" title="Download a backup of user data.">
<i class="fa-fw fa-solid fa-download"></i>
</div>
2024-04-08 01:38:20 +02:00
</div>
</div>
</div>
<div class="navTab usersList flex-container flexFlowColumn">
</div>
<div class="navTab registerNewUserBlock" style="display: none;">
<form class="flex-container flexFlowColumn flexGap10 userCreateForm" action="javascript:void(0);">
<h3>
Register New SillyTavern User
</h3>
<div class="flex-container flexNoGap">
<span>User Handle:</span>
<input name="handle" class="text_pole" placeholder="Lowercase letters, numbers, and dashes only." type="text" pattern="[a-z0-9-]+">
</div>
<div class="flex-container flexNoGap">
<span>Display Name:</span>
2024-04-09 21:43:47 +02:00
<input name="_name" class="text_pole" type="text" placeholder="Anonymous" autocomplete="username">
2024-04-08 01:38:20 +02:00
</div>
<div class="flex-container flexNoGap">
<span>Password:</span>
2024-04-09 21:43:47 +02:00
<input name="password" class="text_pole" type="password" placeholder="[ No password ]" autocomplete="new-password">
2024-04-08 01:38:20 +02:00
</div>
<div class="flex-container flexNoGap">
<span>Confirm Password:</span>
2024-04-09 21:43:47 +02:00
<input name="confirm" class="text_pole" type="password" placeholder="[ No password ]" autocomplete="new-password">
2024-04-08 01:38:20 +02:00
</div>
<span>
This will create a new subfolder in the /data/ directory with the user's handle as the folder name.
</span>
<div class="flex-container justifyCenter">
<button type="submit" class="menu_button newUserRegisterFinalizeButton">Create</div>
</div>
</form>
</div>
</div>