LiveSync: Fix agent creation with unchanged form

The debug agent has no settings for example. data-disabled-until-change
doesn't let you submit it until you change the default title which is a
bit stupid.
This commit is contained in:
Adrian Moennich 2015-11-19 11:58:42 +01:00
parent bb4acd183a
commit ea65a3d62c

View File

@ -21,7 +21,7 @@
{{ form_row(field) }}
{% endfor %}
{% call form_footer(form) %}
<input class="i-button big highlight" type="submit" value="{% trans %}Save{% endtrans %}" data-disabled-until-change>
<input class="i-button big highlight" type="submit" value="{% trans %}Save{% endtrans %}" {% if agent %}data-disabled-until-change{% endif %}>
<a href="{{ url_for('plugins.details', plugin='livesync') }}" class="i-button big">{% trans %}Cancel{% endtrans %}</a>
{% endcall %}
{% endblock %}