Skip to content

Commit

Permalink
Improve UI on remove project page (fixes getsentryGH-586)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Sep 4, 2012
1 parent cb5d901 commit 202a0d9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/sentry/templates/sentry/projects/remove.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,22 @@
<button type="submit" class="btn btn-danger">{% trans "Confirm" %}</button> <a href="{% url sentry-manage-project project.slug %}" class="btn">{% trans "Cancel" %}</a>
</fieldset>
</form>
<script>
(function(){
$('input[name="removal_type"]').change(function(){
$el = $(this);
if ($el.val() == 2 && $el.is(':checked')) {
$('.control-group[data-name="project"]').show();
} else {
$('.control-group[data-name="project"]').hide();
}
}).change();
}());
</script>
<style>
.control-group[data-name="project"] {
margin-left: 20px;
}
</style>
</section>
{% endblock %}

0 comments on commit 202a0d9

Please sign in to comment.