{% extends "layout.html" %}

{% block head %}
    {% if execute_progress %}
    <script type="application/javascript">
        function update_progress() {

            var progress = $('#progress');

            $.getJSON('/execute/progress.json', function(data) {
                $.each(data.item, function(key, value) {
                    progress.append('<li>' + value + '</li>');
                });
            });

            progress.animate({ scrollTop: progress.attr("scrollHeight") }, 500);

            setTimeout('update_progress()', 1000);
        }
        $(document).ready(update_progress);
    </script>
    {% endif %}
{% endblock %}

{% block main %}
<h1>Manually start execution</h1>

<form action="{{ url_for('index') }}" method="post" class="simple">
    <fieldset>
        <legend>Execute FlexGet</legend>
        <div>
            <label for="options">Options</label>
            <input type="text" id="options" name="options" value="{{ options }}" size="40">
        </div>
        <div class="buttons">
            <button type="submit">Start Execution</button>
        </div>
    </fieldset>
</form>
<div>
    {% if execute_progress %}
    <ul id="progress">
        {% for item in progress %}
        <li>{{ item }}</li>
        {% endfor %}
    </ul>
    {% endif %}
    <pre>{{ help }}</pre>
</div>
{% endblock %}

{% extends "layout.html" %}

{% block head %}
    {% if execute_progress %}
    <script type="application/javascript">
        function update_progress() {

            var progress = $('#progress');

            $.getJSON('/execute/progress.json', function(data) {
                $.each(data.items, function(key, value) {
                    progress.append('<li>' + value + '</li>');
                });
            });

            progress.animate({ scrollTop: progress.attr("scrollHeight") }, 500);

            setTimeout('update_progress()', 1000);
        }
        $(document).ready(update_progress);
    </script>
    {% endif %}
{% endblock %}

{% block main %}
<h1>Manually start execution</h1>

<form action="{{ url_for('index') }}" method="post" class="simple">
    <fieldset>
        <legend>Execute FlexGet</legend>
        <div>
            <label for="options">Options</label>
            <input type="text" id="options" name="options" value="{{ options }}" size="40">
        </div>
        <div class="buttons">
            <button type="submit">Start Execution</button>
        </div>
    </fieldset>
</form>
<div>
    {% if execute_progress %}
    <ul id="progress">
        {% for item in progress %}
        <li>{{ item }}</li>
        {% endfor %}
    </ul>
    {% endif %}
    <pre>{{ help }}</pre>
</div>
{% endblock %}

Fix the live output scroller in exec plugin.
Fix the live output scroller in exec plugin.

git-svn-id: 555d7295f8287ebc42f8316c6775e40d702c4756@1730 3942dd89-8c5d-46d7-aeed-044bccf3e60c
