aboutsummaryrefslogtreecommitdiff
path: root/views/manage_feed.tpl
blob: cdeaf987609c70f1130c922aefc31d819cb0186d (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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Manage Feed | TagRSS</title>
    <link href="/static/styles/main.css" rel="stylesheet">
</head>
<body>
    <a href="/" class="no-visited-indication">&lt; home</a>
    % if get("after_update", False):
        <p><em>Updated feed details.</em></p>
    % end
    <h1>Manage feed</h1>
    <table>
        <tr>
            <th>Title</th>
            <td>{{feed.title}}</td>
        </tr>
        <tr>
            <th>Source</th>
            <td><a href="{{feed.source}}" class="no-visited-indication">{{feed.source}}</a></td>
        </tr>
        <tr>
            <th>Tags</th>
            <td>
                % for i, tag in enumerate(feed.tags):
                    % if i > 0:
                        {{", "}}
                    % end
                    <span class="tag">{{tag}}</span>
                % end
            </td>
        </tr>
    </table>
    <form method="post">
        <input type="hidden" name="id" value="{{feed.id}}">
        <div>
            <label for="title-input">Title:</label>
            <input type="text" name="title" value="{{feed.title}}" id="title-input">
        </div>
        <div>
            <label for="source-input">Source:</label>
            <input type="text" name="source" value="{{feed.source}}" id="source-input">
        </div>
        % include("tag_input.tpl", input_name="tags", input_value=serialised_tags)
        <input type="submit" value="Update" name="update_feed">
    </form>
    <hr>
    <form method="post" action="/delete_feed">
        <input type="number" name="id" value="{{feed.id}}" style="display: none;">
        <input type="submit" value="Delete" name="delete_feed">
    </form>
    % include("footer.tpl")
</body>
</html>