summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/reattach.html
blob: 1eeed3a8a178c41c02bffa6165c0b9a20e7adf0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{% extends "base.html" %}
{% load url from future %}
{% load hk_generic %}
{% load storm %}


{% block title %}
Reattach a thread - {{ mlist.display_name|default:mlist.name|escapeemail }} - {{ app_name|title }}
{% endblock %}

{% block content %}

<div class="row-fluid reattach-thread">

{% include 'threads/month_list.html' %}

    <div class="span7">

        <h1>Re-attach a thread to another</h1>

        <p>Thread to re-attach:
            <a href="{% url 'thread' mlist_fqdn=mlist.name threadid=thread.thread_id %}"
               >{{ thread.subject }}</a>
            (started {{ thread.starting_email|get_date }}, last active: {{ thread|get_date }})
        </p>
        <form action="{% url 'thread_reattach_suggest' mlist_fqdn=mlist.name threadid=thread.thread_id %}"
              method="GET" class="search">
            <p>Re-attach it to:
            <span class="input-append">
            <input type="text" name="q" placeholder="Search for the parent thread"
                /><button type="submit" class="btn">Search</button>
            </span>
            </p>
        </form>
        <form action="" method="POST">
            {% csrf_token %}
            <ul class="unstyled suggestions">
                <img alt="Loading..." class="ajaxloader" src="{{ STATIC_URL }}hyperkitty/img/ajax-loader.gif" />
            </ul>
            <ul class="unstyled">
                <li class="manual">
                    <input type="radio" name="parent" value="" />
                    <label>this thread ID:
                        <input type="text" name="parent-manual" size="32" placeholder="{{ thread.thread_id }}" />
                    </label>
                </li>
            </ul>
            <p class="buttons">
                <button type="submit" class="btn btn-primary">Do it</button> (there's no undoing!), or
                <a href="{% url 'thread' mlist_fqdn=mlist.name threadid=thread.thread_id %}"
                   >go back to the thread</a>.
            </p>
        </form>

    </div>

</div>

{% endblock %}

{% block additionaljs %}
<script type="text/javascript">
    $(document).ready(function() {
        setup_reattach();
    });
</script>
{% endblock %}