Login
4 branches 0 tags
Ben (Desktop/Arch) Improved commit pagination and better mobile layout eb42355 1 month ago 92 Commits
rubhub / templates / project_settings.html
<!DOCTYPE html>
<html>

<head>
  <title>{{ owner.name }}/{{ project.name }}/settings</title>
</head>

<body>
    <section>
        <div class="page-header">
          <h1 class="project-header">
            <a href="{{ owner.uri() }}">{{ owner.name }}</a> /
            <a href="{{ project.uri() }}">{{ project.name }}</a> /
            <a href="{{ project.uri_settings() }}">settings</a>
          </h1>
        </div>
        {% if let Some(msg) = message %}
        <div class="message" role="status">{{ msg }}</div>
        {% endif %}
        <form method="post" action="{{ project.uri_settings() }}" class="stack card simple-form">
            <label>
                ID (used in URIs, can't be changed)
                <input name="slug" type="text" value="{{ project.slug }}" readonly>
            </label>

            <div class="form-row">
                <label>
                    Name
                    <input name="name" type="text" value="{{ project.name }}">
                </label>

                <label>
                    Website
                    <input name="website" type="text" value="{{ project.website }}">
                </label>
            </div>

            <div class="form-row">
                <label>
                    Public access
                    <select name="public_access">
                        <option value="none" {% if project.public_access==AccessType::None %}selected{% endif %}>None
                        </option>
                        <option value="read" {% if project.public_access==AccessType::Read %}selected{% endif %}>Read
                        </option>
                        <option value="write" {% if project.public_access==AccessType::Write %}selected{% endif %}>Write
                        </option>
                    </select>
                </label>

                <label>
                    Default branch name (main / master)
                    <input name="main_branch" type="text" value="{{ project.main_branch }}">
                </label>
            </div>

            <label>
                Description
                <textarea name="description">{{ project.description }}</textarea>
            </label>

            <button type="submit">Save</button>
        </form>
    </section>
</body>

</html>