Login
4 branches 0 tags
Ben (Desktop/Arch) ALlow manual CI execution 356a994 15 days ago 246 Commits
rubhub / templates / project / ci / new.html
<html>
  <head>
    <title>Run Manual Job - {{ owner.name }}/{{ project.name }}</title>
  </head>

  <body>
    {% include "partials/sidebar.html" %}
    <main>
      <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="/~{{ owner.slug }}/{{ project.slug }}/ci">CI</a> /
            new
          </h1>
        </div>

        {% include "partials/project_tabs.html" %}

        {% if let Some(msg) = message %}
        <div class="message" role="status">{{ msg }}</div>
        {% endif %}

        <form method="post" action="/~{{ owner.slug }}/{{ project.slug }}/ci/new" class="stack card simple-form">
          <label>
            Branch
            <select name="branch">
              {% for branch in branches %}
              <option value="{{ branch }}"{% if branch == default_branch %} selected{% endif %}>{{ branch }}</option>
              {% endfor %}
            </select>
          </label>
          <label>
            Workflow YAML
            <textarea name="workflow_yaml" rows="20" required>{{ workflow_content }}</textarea>
          </label>
          <button type="submit"><span class="icon i-play"></span> Run Job</button>
        </form>
      </section>
    </main>
  </body>

</html>