comparison sat_templates/templates/bulma/photo/discover.html @ 245:10278ba367a2

bulma (photo/discover): design for the new theme + create button + delete button
author Goffi <goffi@goffi.org>
date Fri, 19 Jun 2020 17:57:13 +0200
parents 0e69b5843c2f
children
comparison
equal deleted inserted replaced
244:a62822c6a114 245:10278ba367a2
2 {% import 'components/block.html' as block with context %} 2 {% import 'components/block.html' as block with context %}
3 {% import 'input/form.html' as form with context %} 3 {% import 'input/form.html' as form with context %}
4 {% import 'input/field.html' as field with context %} 4 {% import 'input/field.html' as field with context %}
5 5
6 {% block body %} 6 {% block body %}
7 {{ icon_defs('file-image') }} 7 {{ icon_defs('file-image', 'trash-empty') }}
8 <section class="section"> 8 <section class="section">
9 <div class="content has-items-centered is-flex">
10 {{ component.action_button(url_photos_new) }}
11 </div>
12 {% if interests is defined %}
13 <div class="message is-info">
14 <div class="message-body">
15 {% trans nb_interests=interests|length%}
16 You have currently {{nb_interests}} album in your personal list
17 {% pluralize %}
18 You have currently {{nb_interests}} albums in your personal list
19 {% endtrans %}
20 </div>
21 </div>
22
23 {{block.interests_grid(interests, 'file-image')}}
24 {% endif %}
9 <article class="message has-text-centered"> 25 <article class="message has-text-centered">
10 <div class="message-body"> 26 <div class="message-body">
11 {% trans %} 27 {% trans %}
12 Photo discovery is not implemented yet, however you can enter a jid below to find its albums 28 Photo discovery is not implemented yet, however you can enter a jid below to find its albums
13 {% endtrans %} 29 {% endtrans %}
14 </div> 30 </div>
15 </article> 31 </article>
32 {% call form.form(class="form--single") %}
33 {{ field.text("jid", _("device full jid"), required=true)}}
34 {{ field.submit(_("Access")) }}
35 {% endcall %}
16 </section> 36 </section>
17 {% if interests is defined %}
18 <p class="message--note">
19 {% trans nb_interests=interests|length%}
20 You have currently {{nb_interests}} album in your personal list
21 {% pluralize %}
22 You have currently {{nb_interests}} albums in your personal list
23 {% endtrans %}
24 </p>
25
26 {{block.interests_grid(interests, 'file-image')}}
27 {% endif %}
28 {% call form.form(class="form--single") %}
29 {{ field.text("jid", _("device full jid"), required=true)}}
30 {{ field.submit(_("Access")) }}
31 {% endcall %}
32 {% endblock body %} 37 {% endblock body %}