]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
theme 98: profile view
authorBanana <mail@bananas-playground.net>
Mon, 10 Apr 2023 09:30:01 +0000 (11:30 +0200)
committerBanana <mail@bananas-playground.net>
Mon, 10 Apr 2023 09:30:01 +0000 (11:30 +0200)
TODO
webclient/view/98/profile/profile.html [new file with mode: 0644]

diff --git a/TODO b/TODO
index a1cabe7ea15078c4ec2a060c61cbb6e039067b0e..4541d2616ccc46e370154cc3e05992b9148607ec 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,4 +1,5 @@
 * change multiple-attachment to a field which tells it is used for a image gallery
+* complete profile view. Groups still missing.
 * minimal theme
 ** https://watercss.kognise.dev/
 * create a real fallback theme, which does not depend on any styling/css
diff --git a/webclient/view/98/profile/profile.html b/webclient/view/98/profile/profile.html
new file mode 100644 (file)
index 0000000..13e9b02
--- /dev/null
@@ -0,0 +1,34 @@
+<h3>Manage your profile</h3>
+
+<form method="post">
+       <div class="field-row">
+               <label for="username">Username</label>
+               <input id="username" type="text" autocomplete="off" name="fdata[username]"
+                      value="<?php echo Summoner::ifset($TemplateData['editData'], 'name'); ?>">
+       </div>
+       <div class="field-row">
+               <label for="password">Password</label>
+               <input id="password" type="password" autocomplete="off" name="fdata[password]">
+       </div>
+       <div class="field-row">
+               <label for="group">Main group</label>
+               <input class="uk-input" id="group" type="text" name="fdata[group]" disabled
+                       value="<?php echo Summoner::ifset($TemplateData['editData'], 'baseGroupName'); ?>">
+       </div>
+       <div class="field-row">
+               <label for="additionalGroups">Additional groups</label>
+               <input class="uk-input" id="additionalGroups" type="text" name="fdata[additionalGroups]" disabled
+                       value="To be done">
+       </div>
+       <div class="field-row">
+               <input id="refreshApiToken" type="checkbox" name="fdata[refreshApiToken]" value="1">
+               <label for="refreshApiToken">Create API Token</label>
+       </div>
+       <div class="field-row">
+               Valid until: <?php echo Summoner::ifset($TemplateData['editData'], 'apiTokenValidDate'); ?><br />
+               Key: <?php echo Summoner::ifset($TemplateData['editData'], 'apiToken'); ?>
+       </div>
+       <div class="field-row">
+               <input type="submit" name="submitForm" value="Save">
+       </div>
+</form>