- <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
- <input type="submit" name="delete" value="Delete" class="btn btn-danger" />
+ {% if package.approved %}
+ <p>
+ Unapproving a package will put it back into Work in Progress, where
+ it can be submitted for approval again.
+ </p>
+ {% endif %}
+
+ <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
+
+ <a class="btn btn-secondary float-right" href="{{ package.getDetailsURL() }}">Cancel</a>
+
+ <input type="submit" name="delete" value="Remove" class="btn btn-danger mr-2" />
+
+ {% if package.approved %}