aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/collections/remove.html
blob: faee4f782ef000f327e42ff93ee8f726d4771dcf (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
<div id="myModal">
    <div class="modal-header">
        <h3>Add to collection</h3>
        <p>You have three choices: Use your default collection, create a new named collection,
        or add the traits to an existing collection.</p>
    </div>
    <div class="modal-body">
        <form action="/collections/new" data-validate="parsley" id="add_form">
            <fieldset>
                <legend>Use your default collection</legend>
                <span class="help-block">Choose this if you're in a hurry or don't plan on using the collection again.</span>
                <span class="help-block"><em></em>If you are unsure this is probably the option you want.</em></span>
                <button type="submit" name="Default" class="btn">Continue</button>
            </fieldset>
            <hr />


            <input type="hidden" name="traits" value="{{ traits }}" />
            <fieldset>
                <legend>Or create a new named collection</legend>
                <label>New collection name</label>
                <input type="text" name="new_collection" placeholder="Name of new collection..."
                    data-trigger="change" data-minlength="5" data-maxlength="50">
                <span class="help-block">Type the name of the new collection.</span>
                <button type="submit" name="create_new" class="btn">Create and add traits</button>
            </fieldset>

            <hr />
            <fieldset>
                <legend>Or add to an existing collection</legend>
                <label>Existing collection name</label>

                <select name="existing_collection" class="form-control">
                {% for col in user_collections %}
                    <option value="{{ col.id }}">{{ col.name }}</option>
                {% endfor %}
                </select>
                <br />

                <button type="submit" name="add_to_existing" class="btn">Add to existing collection</button>
            </fieldset>
        </form>
    </div>
</div>

<script>
    $('#add_form').parsley();
</script>