# HG changeset patch # User Goffi # Date 1597387626 -7200 # Node ID dbdaf1d7442be6adf9d161821aac44671ec722bb # Parent b6937cf854f04b10d5dc94876df8411a8c0363cd bulma (invitation/manager.html): simpler manager, taking profit of dynamism diff -r b6937cf854f0 -r dbdaf1d7442b sat_templates/templates/bulma/invitation/manager.html --- a/sat_templates/templates/bulma/invitation/manager.html Fri Aug 14 08:47:06 2020 +0200 +++ b/sat_templates/templates/bulma/invitation/manager.html Fri Aug 14 08:47:06 2020 +0200 @@ -1,6 +1,7 @@ {% import 'input/form.html' as form with context %} {% import 'input/field.html' as field with context %} {% import 'input/textbox.html' as textbox with context %} +{% import 'dialogs/macros.html' as dialog with context %}
@@ -15,27 +16,17 @@

{% trans %}people who can access this album{% endtrans %}

+ {% call form.form(id="invitation_form", class="mt-4") %} + {{ textbox.head(event_service, event_node, 'event') }} + {{ field.meta('event_id', event_id) }} + {% call dialog.search_dialog(id="invitation_contact_search", class="is-block") %} + {{ field.text("contact", placeholder=_("name or identifier of a person to invite"), autocomplete="off", icon_left="person") }} + {% endcall %} + + {% endcall %} -
-
-

{% trans %}invite people{% endtrans %}

-
- {% call form.form(id="invitation_form") %} - {{ textbox.head(event_service, event_node, 'event') }} - {{ field.meta('event_id', event_id) }} - {{ field.textarea("jids", - _("enter here a list of jid (one per line) to invite") - ) - }} - {{ field.textarea("emails", - _("enter here a list of emails addresses (one per line) to invite") - ) - }} - {{ field.submit(_("Invite people"), id="invitation_submit") }} - {% endcall %} -
-
-
diff -r b6937cf854f0 -r dbdaf1d7442b sat_templates/templates/bulma/static/styles.css --- a/sat_templates/templates/bulma/static/styles.css Fri Aug 14 08:47:06 2020 +0200 +++ b/sat_templates/templates/bulma/static/styles.css Fri Aug 14 08:47:06 2020 +0200 @@ -170,6 +170,10 @@ display: block; } +div.dropdown-item.selected { + background-color: var(--col-primary); +} + /********** * panels * **********/