euscanwww: Adding a problem reporting form in package page
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
		@@ -24,6 +24,13 @@
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
 | 
			
		||||
{% if thanks_for_reporting %}
 | 
			
		||||
  <div class="alert alert-success">
 | 
			
		||||
    <strong>Thanks!</strong> Your report has been sent to admins
 | 
			
		||||
  </div>
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
<h2>
 | 
			
		||||
  {{ package.category }}/{{ package.name }}
 | 
			
		||||
 | 
			
		||||
@@ -144,6 +151,40 @@
 | 
			
		||||
  {% endif %}
 | 
			
		||||
</dl>
 | 
			
		||||
 | 
			
		||||
<hr/>
 | 
			
		||||
 | 
			
		||||
<h3>Report problems</h3>
 | 
			
		||||
 | 
			
		||||
<form action="." method="post" class="form-horizontal">
 | 
			
		||||
  <div class="control-group {% if problem_form.version.errors %}error{% endif %}">
 | 
			
		||||
    <label class="control-label" for="version">{{ problem_form.version.label }}</label>
 | 
			
		||||
    <div class="controls">
 | 
			
		||||
      {{ problem_form.version }}
 | 
			
		||||
      <span class="help-inline">{{ problem_form.version.errors.as_text }}</span>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="control-group {% if problem_form.subject.errors %}error{% endif %}">
 | 
			
		||||
    <label class="control-label" for="subject">{{ problem_form.subject.label }}</label>
 | 
			
		||||
    <div class="controls">
 | 
			
		||||
      {{ problem_form.subject }}
 | 
			
		||||
      <span class="help-inline">{{ problem_form.subject.errors.as_text }}</span>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="control-group {% if problem_form.message.errors %}error{% endif %}">
 | 
			
		||||
    <label class="control-label" for="message">{{ problem_form.message.label }}</label>
 | 
			
		||||
    <div class="controls">
 | 
			
		||||
      {{ problem_form.message }}
 | 
			
		||||
      <span class="help-inline">{{ problem_form.message.errors.as_text }}</span>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
 | 
			
		||||
  <div class="control-group">
 | 
			
		||||
    <div class="controls">
 | 
			
		||||
      <input class="btn" type="submit" value="Submit" />
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</form>
 | 
			
		||||
 | 
			
		||||
<script type="text/javascript">
 | 
			
		||||
  $(".refresh-button").click(function() {
 | 
			
		||||
    var url = "{% url "refresh_package" "XXX" "YYY" %}";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user