{% extends "freeadmin/generic_model_add.html" %}

{% block buttons_extra %}
    <button id="btn_Fake" data-dojo-type="dijit.form.Button"type="button">
        <script type="dojo/method" data-dojo-event="onClick" data-dojo-args="evt">
            form = getForm(this);
            Middleware.call('keychaincredential.generate_ssh_key_pair', [], function(data) {
                form.set('value', data);
            });
        </script>
        {% trans "Generate" %}
    </button>
{% endblock %}
