text/html
•
2.03 KB
•
70 lines
<html>
<head>
<title>{{ user.name }}/settings</title>
</head>
<body>
{% include "partials/sidebar.html" %}
<main>
<section>
<div class="page-header">
<h1 class="project-header"><a href="{{ user.uri() }}">{{ user.name }}</a> / <a
href="/settings">settings</a></h1>
</div>
{% match message %}
{% when Some with (msg) %}
<div class="message" role="status">{{ msg }}</div>
{% when None %}
{% endmatch %}
<form method="post" action="/settings" class="stack card simple-form">
{{ csrf_token_field|safe }}
<div class="form-row">
<label>
ID (can't be changed)
<input name="slug" type="text" value="{{ user.slug }}" readonly>
</label>
<label>
Name
<input name="name" type="text" value="{{ user.name }}">
</label>
</div>
<div class="form-row">
<label>
Email
<input name="email" type="email" value="{{ user.email }}">
</label>
<label>
Website
<input name="website" type="text" value="{{ user.website }}">
</label>
</div>
<label>
Bio
<textarea name="description">{{ user.description }}</textarea>
</label>
<br/>
<hr/>
<br/>
<label>
Default branch name (main / master)
<input name="default_main_branch" type="text" value="{{ user.default_main_branch }}">
</label>
<label>
SSH public keys (one per line)
<textarea name="ssh_keys" spellcheck="false">{% for key in ssh_keys %}{{ key }}
{% endfor %}</textarea>
</label>
<button type="submit"><span class="icon i-save"></span> Save</button>
</form>
</section>
</main>
</body>
</html>