{% extends 'layout/base.html' %}
{% from 'forms/_form.html' import form_header, form_row, form_footer  %}

{% block title %}LiveSync{% endblock %}

{% block subtitle %}
    {%- if agent -%}
        {% trans %}Edit Agent{% endtrans %}
    {%- else -%}
        {% trans backend=backend.title %}Add {{ backend }} agent{% endtrans %}
    {%- endif -%}
{% endblock %}

{% block description %}
    {{ backend.description }}
{% endblock %}

{% block content %}
    {{ form_header(form) }}
    {% for field in form.visible_fields %}
        {{ form_row(field) }}
    {% endfor %}
    {% call form_footer(form) %}
        <input class="i-button big highlight" type="submit" value="{% trans %}Save{% endtrans %}" data-disabled-until-change>
        <a href="{{ url_for('plugins.details', plugin='livesync') }}" class="i-button big">{% trans %}Cancel{% endtrans %}</a>
    {% endcall %}
{% endblock %}

{% extends 'layout/base.html' %}
{% from 'forms/_form.html' import form_header, form_row, form_footer  %}

{% block title %}LiveSync{% endblock %}

{% block subtitle %}
    {%- if agent -%}
        {% trans %}Edit Agent{% endtrans %}
    {%- else -%}
        {% trans backend=backend.title %}Add {{ backend }} agent{% endtrans %}
    {%- endif -%}
{% endblock %}

{% block description %}
    {{ backend.description }}
{% endblock %}

{% block content %}
    {{ form_header(form) }}
    {% for field in form.visible_fields %}
        {{ form_row(field) }}
    {% endfor %}
    {% call form_footer(form) %}
        <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 %}

Fix agent creation with unchanged form
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.
