{% extends 'generic/object_create.html' %}

{% block buttons %}
    {% if editing %}
        <button type="submit" name="_dryrun_update" class="btn btn-warning">Update & Dry Run</button>
        <button type="submit" name="_update" class="btn btn-primary">Update & Sync</button>
    {% else %}
        <button type="submit" name="_dryrun_create" class="btn btn-info">Create & Dry Run</button>
        <button type="submit" name="_create" class="btn btn-primary">Create & Sync</button>
        <button type="submit" name="_addanother" class="btn btn-primary">Create and Add Another</button>
    {% endif %}
    <a href="{{ return_url }}" class="btn btn-default">Cancel</a>
{% endblock %}