n_dialog_with_url(data.response, 'Success!!!', ".")
            } else {
                $('div.error').remove();
                for (var key in data.response) {
                    $('#' + key).after('<div class="error">' + data.response[key] + '</div>');
                }
            }
        }
    });

        $('.img-url').click(function (e) {
            e.preventDefault();
            window.location = 'https://peeljobs.s3.amazonaws.com/' + $(this).attr('id')
        })

    </script>
{% endblock %}