Blame progit/templates/new_issue.html

Pierre-Yves Chibon 508fa0
{% extends "repo_master.html" %}
Pierre-Yves Chibon 508fa0
{% from "_formhelper.html" import render_field_in_row %}
Pierre-Yves Chibon 508fa0
Pierre-Yves Chibon 1a7791
{% block title %}New issue - {{ repo.name }}{% endblock %}
Pierre-Yves Chibon 508fa0
{%block tag %}new_project{% endblock %}
Pierre-Yves Chibon 508fa0
Pierre-Yves Chibon 508fa0
Pierre-Yves Chibon 508fa0
{% block repo %}
Pierre-Yves Chibon 508fa0
Pierre-Yves Chibon 25febe
{% if not type or type == 'new' %}
Pierre-Yves Chibon 508fa0

New issue

Pierre-Yves Chibon 25febe
{% elif type and type == 'edit' %}
Pierre-Yves Chibon 25febe

Edit issue #{{ issue.id }}

Pierre-Yves Chibon 25febe
{% endif %}
Pierre-Yves Chibon 25febe
Pierre-Yves Chibon 508fa0
Pierre-Yves Chibon 508fa0
<section class="new_issue"></section>
Pierre-Yves Chibon 25febe
  {% if not type or type == 'new' %}
Pierre-Yves Chibon 556a8e
    
Pierre-Yves Chibon 556a8e
                     username=username, repo=repo.name) }}" method="post">
Pierre-Yves Chibon 172952
Pierre-Yves Chibon 25febe
  {% elif type and type == 'edit' %}
Pierre-Yves Chibon 556a8e
      
Pierre-Yves Chibon 172952
                       repo=repo.name, issueid=issue.id) }}" method="post">
Pierre-Yves Chibon 25febe
  {% endif %}
Pierre-Yves Chibon 25febe
Pierre-Yves Chibon 508fa0
    
Pierre-Yves Chibon 508fa0
      {{ render_field_in_row(form.title) }}
Pierre-Yves Chibon c5a9a2
      {{ render_field_in_row(form.issue_content) }}
Pierre-Yves Chibon 48ad4d
      {{ render_field_in_row(form.status) }}
Pierre-Yves Chibon 508fa0
    
Pierre-Yves Chibon 508fa0
    

Pierre-Yves Chibon c5a1c3
      {% if not type or type == 'new' %}
Pierre-Yves Chibon 508fa0
      <input class="submit positive button" type="submit" value="Create">
Pierre-Yves Chibon c5a1c3
      {% elif type and type == 'edit' %}
Pierre-Yves Chibon c5a1c3
      <input class="submit positive button" type="submit" value="Edit">
Pierre-Yves Chibon c5a1c3
      {% endif %}
Pierre-Yves Chibon 508fa0
      <input class="button" onclick="history.back();" type="button" value="Cancel">
Pierre-Yves Chibon 508fa0
      {{ form.csrf_token }}
Pierre-Yves Chibon 508fa0
    

Pierre-Yves Chibon 508fa0
  
Pierre-Yves Chibon 508fa0
Pierre-Yves Chibon 508fa0
Pierre-Yves Chibon 508fa0
{% endblock %}