~cedric/newspipe

ref: 3ab30e029adedbd7e652552c6da1eafbeadb40cd newspipe/newspipe/templates/edit_category.html -rw-r--r-- 1.4 KiB
3ab30e02Cédric Bonhomme chg: [ui] improved article_pub template. 1 year, 4 months ago
                                                                                
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
{% 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.name.id }}" class="col-sm-3 control-label">{{ form.name.label }}</label>
                <div class="col-sm-9">
                    {{ form.name(class_="form-control", size="100%") }}
                </div>
                {% for error in form.name.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
            </div>
            <div class="form-group">
                <label for="{{ form.name.id }}" class="col-sm-3 control-label">{{ form.feeds.label }}</label>
                <div class="col-sm-9">
                    {{ form.feeds(class_="selectpicker", **{'data-live-search':'true', 'data-width':'auto'}) }}
                </div>
                {% for error in form.feeds.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
            </div>
            <div class="form-group">
                <div class="col-sm-offset-3 col-sm-9">
                    {{ form.submit(class_="btn btn-primary") }}
                </div>
            </div>
        </form>
    </div>
</div><!-- /.container -->
<script>
$(document).ready(function() {
    $('.selectpicker').selectpicker();
});
</script>
{% endblock %}