-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Truly, I don't have a sense for visual design so I'm just going with what looks reasonable and functional enough Change-Id: I373111cf70082a6949cbd01590f7cf943a82c135 Signed-off-by: Ian Meyer <[email protected]>
- Loading branch information
Showing
4 changed files
with
150 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,41 @@ | ||
{{ template "header" . }} | ||
|
||
<h2>Editing board configuration</h2> | ||
<h2>Board statistics</h2> | ||
|
||
<div class="board-stats"> | ||
<div class="board-stats-item"> | ||
<span class="board-stats-label">Total posts</span> | ||
<span class="board-stats-value">{{ .BoardData.TotalThreadPosts.Int32 }}</span> | ||
</div> | ||
<div class="board-stats-item"> | ||
<span class="board-stats-label">Total threads</span> | ||
<span class="board-stats-value">{{ .BoardData.TotalThreads.Int32 }}</span> | ||
</div> | ||
<div class="board-stats-item"> | ||
<span class="board-stats-label">Total users</span> | ||
<span class="board-stats-value">{{ .BoardData.TotalMembers.Int32 }}</span> | ||
</div> | ||
</div> | ||
|
||
<h2>Edit board configuration</h2> | ||
|
||
<div class="form-container"> | ||
<form action="/admin" method="POST"> | ||
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}"> | ||
<div class="form-group"> | ||
<label for="board_title">Board Title</label> | ||
<input type="text" id="board_title" size="72px" name="board_title" value="{{ .BoardData.Title }}"> | ||
<input type="text" id="board_title" size="50px" name="board_title" value="{{ .BoardData.Title }}"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="edit_window">Edit window (in seconds)</label> | ||
<input type="text" id="location" size="72px" name="edit_window" value="{{ .BoardData.EditWindow.Int32 }}"> | ||
<input type="text" id="location" size="50px" name="edit_window" value="{{ .BoardData.EditWindow.Int32 }}"> | ||
</div> | ||
<div class="form-group"> | ||
<button type="submit">Update board config</button> | ||
<button type="submit">Update config</button> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
<a href="/">Back to board</a> | ||
|
||
|
||
{{ template "footer" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters