aboutsummaryrefslogtreecommitdiff
path: root/forged/templates/group.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-08-12 08:41:09 +0800
committerRunxi Yu <me@runxiyu.org>2025-08-12 08:41:09 +0800
commit6cceade2da5425a2a1c46ac032263c961e81affb (patch)
treee183ad90d4fd2109d66d57498b3a43649f098fae /forged/templates/group.tmpl
parentRemove hr and forge name footer from error page templates (diff)
downloadforge-6cceade2da5425a2a1c46ac032263c961e81affb.tar.gz
forge-6cceade2da5425a2a1c46ac032263c961e81affb.tar.zst
forge-6cceade2da5425a2a1c46ac032263c961e81affb.zip
Sticky footer
Diffstat (limited to 'forged/templates/group.tmpl')
-rw-r--r--forged/templates/group.tmpl118
1 files changed, 60 insertions, 58 deletions
diff --git a/forged/templates/group.tmpl b/forged/templates/group.tmpl
index b15c316..3338f9b 100644
--- a/forged/templates/group.tmpl
+++ b/forged/templates/group.tmpl
@@ -12,66 +12,68 @@
</head>
<body class="group">
{{- template "header" . -}}
- <div class="padding-wrapper">
- {{- if .description -}}
- <p>{{- .description -}}</p>
- {{- end -}}
- {{- template "group_view" . -}}
- </div>
- {{- if .direct_access -}}
+ <main>
<div class="padding-wrapper">
- <form method="POST" enctype="application/x-www-form-urlencoded">
- <table>
- <thead>
- <tr>
- <th class="title-row" colspan="2">
- Create repo
- </th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <th scope="row">Name</th>
- <td class="tdinput">
- <input id="repo-name-input" name="repo_name" type="text" />
- </td>
- </tr>
- <tr>
- <th scope="row">Description</th>
- <td class="tdinput">
- <input id="repo-desc-input" name="repo_desc" type="text" />
- </td>
- </tr>
- <tr>
- <th scope="row">Contrib</th>
- <td class="tdinput">
- <select id="repo-contrib-input" name="repo_contrib">
- <option value="public">Public</option>
- <option value="ssh_pubkey">SSH public key</option>
- <option value="federated">Federated service</option>
- <option value="registered_user">Registered user</option>
- <option value="closed">Closed</option>
- </select>
- </td>
- </tr>
- </tbody>
- <tfoot>
- <tr>
- <td class="th-like" colspan="2">
- <div class="flex-justify">
- <div class="left">
- </div>
- <div class="right">
- <input class="btn-primary" type="submit" value="Create" />
- </div>
- </div>
- </td>
- </tr>
- </tfoot>
- </table>
- </form>
+ {{- if .description -}}
+ <p>{{- .description -}}</p>
+ {{- end -}}
+ {{- template "group_view" . -}}
</div>
- {{- end -}}
+ {{- if .direct_access -}}
+ <div class="padding-wrapper">
+ <form method="POST" enctype="application/x-www-form-urlencoded">
+ <table>
+ <thead>
+ <tr>
+ <th class="title-row" colspan="2">
+ Create repo
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th scope="row">Name</th>
+ <td class="tdinput">
+ <input id="repo-name-input" name="repo_name" type="text" />
+ </td>
+ </tr>
+ <tr>
+ <th scope="row">Description</th>
+ <td class="tdinput">
+ <input id="repo-desc-input" name="repo_desc" type="text" />
+ </td>
+ </tr>
+ <tr>
+ <th scope="row">Contrib</th>
+ <td class="tdinput">
+ <select id="repo-contrib-input" name="repo_contrib">
+ <option value="public">Public</option>
+ <option value="ssh_pubkey">SSH public key</option>
+ <option value="federated">Federated service</option>
+ <option value="registered_user">Registered user</option>
+ <option value="closed">Closed</option>
+ </select>
+ </td>
+ </tr>
+ </tbody>
+ <tfoot>
+ <tr>
+ <td class="th-like" colspan="2">
+ <div class="flex-justify">
+ <div class="left">
+ </div>
+ <div class="right">
+ <input class="btn-primary" type="submit" value="Create" />
+ </div>
+ </div>
+ </td>
+ </tr>
+ </tfoot>
+ </table>
+ </form>
+ </div>
+ {{- end -}}
+ </main>
<footer>
{{- template "footer" . -}}
</footer>