Although most Consul Democracy installations will only have a few available languages using `config.i18n.available_locales`, there's a chance some installation will keep every language as available and will enable the desired ones using the admin interface. In these cases, enabling (or disabling) every language would be tedious, particularly when casually experimenting in a staging environment or while using the official Consul Democracy demo. So we're adding buttons to simplify the process. Since some installations might have only a couple of available languages, and in this case these buttons would be pretty much useless, we're only showing them when there are many languages available.
13 lines
364 B
Plaintext
13 lines
364 B
Plaintext
<ul class="check-all-none">
|
|
<li>
|
|
<%= button_tag t("shared.check_all"),
|
|
type: "button",
|
|
data: { field_name: field_name, check_all: true } %>
|
|
</li>
|
|
<li>
|
|
<%= button_tag t("shared.check_none"),
|
|
type: "button",
|
|
data: { field_name: field_name, check_none: true } %>
|
|
</li>
|
|
</ul>
|