Fixing correct keys page

selenium-screenshot-testing
Kevin Chung 2016-02-03 12:13:03 -05:00
parent 95f6d6b202
commit 3997446aeb
1 changed files with 26 additions and 12 deletions

View File

@ -1,20 +1,34 @@
{% extends "admin/base.html" %}
{% block stylesheets %}
<style>
.btn-primary { background-color: #337ab7; }
.btn-danger { background-color: #d9534f; }
</style>
{% endblock %}
{% block content %}
<div class="row">
<h1>Correct Key Submissions</h1>
<div id="confirm" class="reveal-modal" data-reveal>
<h2 class="text-center">Delete Key</h2>
<form method="POST">
<input id="nonce" type="hidden" name="nonce" value="{{ nonce }}">
<div class="small-6 small-centered text-center columns">
<p>Are you sure you want to delete successful key submission for team: <strong id="confirm-team-name"></strong> in challenge: <strong id="confirm-chal-name"></strong>?</p>
<button type="button" class="button alert radius" onclick="$('#confirm').foundation('reveal', 'close');">No</button>
<button type="button" id="delete-solve" class="button success radius">Yes</button>
<div id="confirm" class="modal fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header text-center">
<h3>Delete Key</h3>
</div>
<div class="modal-body">
<form method="POST" action="/admin/chal/delete">
<input id="nonce" type="hidden" name="nonce" value="{{ nonce }}">
<div class="small-6 small-centered text-center columns">
<p>Are you sure you want to delete successful key submission for team: <strong id="confirm-team-name"></strong> in challenge: <strong id="confirm-chal-name"></strong>?</p>
<a onclick="$('#confirm').modal('hide')" class="btn btn-primary">No</a>
<button class="btn btn-danger" id="delete-solve" type="button">Yes</button>
</div>
</form>
</div>
</div>
</form>
<a class="close-reveal-modal">&#215;</a>
</div>
</div>
<table id="teamsboard">
<thead>
@ -74,7 +88,7 @@ function load_confirm_modal(team, chal, team_name, chal_name){
modal.find('#confirm-team-name').text(team_name)
modal.find('#confirm-chal-name').text(chal_name)
$('#confirm form').attr('action', '/admin/solves/'+team+'/'+chal+'/delete');
$('#confirm').foundation('reveal', 'open');
$('#confirm').modal('show');
}
$('.fa-times').click(function(){