aboutsummaryrefslogtreecommitdiff
path: root/src/web/templates/edit_bookmark.html
blob: 573e3d7a9d7b985f65f4e4052d8877c43d3902f7 (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
68
69
70
71
72
{% extends "layout.html" %}
{% block content %}
<div class="container">
    <div class="well">
        <h3>{{ action }}</h3>
        <form action="" method="post" name="save" class="form-horizontal">
            {{ form.hidden_tag() }}
            <div class="form-group">
                <label for="{{ form.href.id }}" class="col-sm-3 control-label">{{ form.href.label }}</label>
                <div class="col-sm-9">
                    {{ form.href(class_="form-control", size="100%") }}
                </div>
                {% for error in form.href.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
            </div>

            <div class="form-group">
                <label for="{{ form.title.id }}" class="col-sm-3 control-label">{{ form.title.label }}</label>
                <div class="col-sm-9">
                    {{ form.title(class_="form-control", size="100%") }}
                </div>
                {% for error in form.title.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
            </div>

            <div class="form-group">
                <label for="{{ form.description.id }}" class="col-sm-3 control-label">{{ form.description.label }}</label>
                <div class="col-sm-9">
                    {{ form.description(class_="form-control", size="100%") }}
                </div>
                {% for error in form.description.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
            </div>

            <div class="form-group">
                <label for="{{ form.tags.id }}" class="col-sm-3 control-label">{{ form.tags.label }}</label>
                <div class="col-sm-9">
                    {{ form.tags(class_="form-control", size="100%") }}
                </div>
                {% for error in form.tags.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
            </div>

            <div class="form-group">
                <label for="{{ form.shared.id }}" class="col-sm-3 control-label">{{ form.shared.label }}</label>
                <div class="col-sm-9">
                    <div class="checkbox">
                        {{ form.shared(class_="checkbox",  style="margin-left: 0px;") }}
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label for="{{ form.to_read.id }}" class="col-sm-3 control-label">{{ form.to_read.label }}</label>
                <div class="col-sm-9">
                    <div class="checkbox">
                        {{ form.to_read(class_="checkbox",  style="margin-left: 0px;") }}
                    </div>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-offset-3 col-sm-9">
                    {{ form.submit(class_="btn btn-default") }}
                </div>
            </div>
        </form>
    </div>
    {% if action == "Add a bookmark" %}
        <div>
            <p>{{ _('You can add a bookmark with a bookmarklet. Drag the following button to your browser bookmarks.') }}</p>
            {{ _('<a class="btn btn-default" href="%(bookmarklet)s" rel="bookmark">Manage your bookmarks using Newspipe</a>', bookmarklet='javascript:window.location="%s?href="+encodeURIComponent(document.location)' % url_for('bookmark.bookmarklet', _external=True)) }}
        </div>
    {% endif %}
</div><!-- /.container -->
{% endblock %}
bgstack15