Login
4 branches 0 tags
Ben (Desktop/Arch) No more postgres 783a786 1 month ago 76 Commits
rubhub / templates / user_settings.html
<!DOCTYPE html>
<html>
<head>
    <title>{{ user.name }}/settings</title>
</head>
<body>
    <section>
        <div class="page-header">
            <h1 class="project-header"><a href="/{{ user.slug }}">{{ 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">
            <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">Save</button>
        </form>
    </section>
</body>
</html>