refactor: replace form fields with table in user.html

This commit is contained in:
Your Name (aider) committed 2025-04-27 23:04:47 +08:00
1 parent b0c35f6059
commit 9a9d3f0670
1 file changed
+22 -30
+22 -30
View File
@@ -42,36 +42,28 @@
<div class="form-section">
<h2>User Profile</h2>
<div class="user-profile">
<div class="field">
<label class="label" for="username">Username:</label>
<div class="control">
<input class="input" type="text" id="username" name="username" value="@username" readonly>
</div>
</div>
<div class="field">
<label class="label" for="created">Created:</label>
<div class="control">
<input class="input" type="text" id="created" name="created" value="January 1, 2023" readonly>
</div>
</div>
<div class="field">
<label class="label" for="submissions">Submissions:</label>
<div class="control">
<input class="input" type="text" id="submissions" name="submissions" value="10" readonly>
</div>
</div>
<div class="field">
<label class="label" for="comments">Comments:</label>
<div class="control">
<input class="input" type="text" id="comments" name="comments" value="50" readonly>
</div>
</div>
<div class="field">
<label class="label" for="favorites">Favorites:</label>
<div class="control">
<input class="input" type="text" id="favorites" name="favorites" value="20" readonly>
</div>
</div>
<table class="table is-bordered">
<tr>
<th>Username:</th>
<td>@username</td>
</tr>
<tr>
<th>Created:</th>
<td>January 1, 2023</td>
</tr>
<tr>
<th>Submissions:</th>
<td>10</td>
</tr>
<tr>
<th>Comments:</th>
<td>50</td>
</tr>
<tr>
<th>Favorites:</th>
<td>20</td>
</tr>
</table>
</div>
</div>
</div>