{% extends "admin/base_site.html" %}
{% load static %}
{% block content %}
<h1>Run task on selected nodes</h1>
<form method="post">{% csrf_token %}
    <input type="hidden" name="action" value="run_task">
    {% for node in nodes %}
    <input type="hidden" name="_selected_action" value="{{ node.pk }}">
    {% endfor %}
    <p>Selected nodes:</p>
    <ul>
        {% for node in nodes %}
        <li>{{ node }}</li>
        {% endfor %}
    </ul>
    <textarea name="recipe" rows="10" class="code-editor"></textarea>
    <p><input type="submit" name="apply" value="Run"></p>
</form>
<link rel="stylesheet" href="{% static 'app/code_editor.css' %}">
<script src="{% static 'app/code_editor.js' %}"></script>
{% endblock %}

