aboutsummaryrefslogtreecommitdiff
path: root/views/manage_feed.tpl
blob: dce9dc54a34eeda28a46f661b0b3a8311074ece1 (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
<!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>
                % tags = feed["tags"]
                % for i, tag in enumerate(tags):
                    % if i > 0:
                        {{", "}}
                    % end
                    <span class="tag">{{tag}}</span>
                % end
            </td>
        </tr>
    </table>
    <form method="post">
        <input type="number" name="id" value="{{feed['id']}}" style="display: none;">
        <label>Title:
            <input type="text" name="title" value="{{feed['title']}}"><br>
        </label>
        <label>Source:
            <input type="text" name="source" value="{{feed['source']}}"><br>
        </label>
        % include("tag_input.tpl", input_name="tags", input_value=feed["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>