{% extends "sentry/bases/modal.html" %}

{% load crispy_forms_tags %}
{% load i18n %}
{% load sentry_features %}

{% block global_sidebar %}{% endblock %}
{% block title %}{% trans "New Project" %} | {{ block.super }}{% endblock %}
{% block sub-header %}{% endblock %}

{% block main %}
<div class="create-flow">
  <h2 class="m-b-1">{% trans "Create a New Project" %}</h2>

  <p>{% blocktrans %}Projects allow you to scope events to a specific application in your organization. For example, you might have separate projects for production vs development instances, or separate projects for your web app and mobile app.{% endblocktrans %}</p>

  <form action="" method="post">
    {% csrf_token %}
    {% if form.errors %}
      <div class="alert alert-block alert-error">{% trans "Please correct the errors below." %}</div>
    {% endif %}

    {{ form|as_crispy_errors }}

    {{ form.name|as_crispy_field }}
    {% if form.team %}
      {{ form.team|as_crispy_field }}
    {% endif %}

    <div class="form-actions">
      <button type="submit" class="btn btn-primary" name="action_save">{% trans "Create Project" %}</button>
  </div>
  </form>
</div>
{% endblock %}
