{% extends "project-base.html" %}
{# {% extends "settings.html" %} #}

{% block content %}
<div class="container">
<div class="row">
  <div class="col-md-6">
    <h3>Rename Repository</h3>
    <form method="POST">
      {{csrf_token()}}
      <div class="form-group">
        <label for="name" class="d-block">
          New project name:
        </label>
        <input
          type="text"
          class="form-control {{valid.cls('name')}}"
          id="name"
          name="name"
          value="{{name or project.name}}"
          maxlength="128"
          required />
        {{valid.summary('name')}}
      </div>
      <p>
        This will change the canonical URL of your project. A redirect from
        the old URL to the new one will be in place until you create another
        project with the same name.
      </p>
      <button type="submit" class="btn btn-primary pull-right">
        Rename project {{icon("caret-right")}}
      </button>
    </form>
  </div>
</div>
</div>
{% endblock %}
