-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use POST for /run/delete and add confirmation form
Fixes #248.
- Loading branch information
Showing
6 changed files
with
78 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{% extends 'layout/base.twig' %} | ||
|
||
{% block title %} | ||
- Delete a run | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<h1>Delete a run</h1> | ||
|
||
<form class="form-stacked" action="{{ url('run.delete.submit') }}" method="post"> | ||
<p>Are you sure you want to delete <a href="{{ url('run.view', {'id': result.id|trim }) }}">run {{ result.id }}</a>?</p> | ||
<table class="table table-hover"> | ||
<tr> | ||
<th class="span2">Method</th> | ||
<td>{{result.meta('SERVER.REQUEST_METHOD')}}</td> | ||
</tr> | ||
<tr> | ||
<th class="span2">URL</th> | ||
<td> | ||
{% set addr = result.meta('SERVER.SERVER_NAME') ~ result.meta.url %} | ||
{{ addr }} | ||
</td> | ||
</tr> | ||
<tr> | ||
<th class="span2">Time</th> | ||
<td>{{ result.date|date(date_format) }}</td> | ||
</tr> | ||
</table> | ||
<div class="form-actions"> | ||
<input type="hidden" name="id" value="{{ run_id }}" /> | ||
<input class="btn btn-large btn-danger" type="submit" value="Delete run" /> | ||
</div> | ||
</form> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters