1 {% extends 'layout/base.html' %}
2 {% from 'forms/_form.html' import form_rows %}
5 {%- trans %}Features{% endtrans -%}
8 {% block description %}
10 You can enable/disable various features for your event.
11 Disabling a feature will hide it from both managers and users.
16 <div class=
"flashed-messages"></div>
18 <div class=
"i-form horizontal" id=
"features-container">
26 var urlTemplate
= {{ url_rule_to_js('event_features.switch') | tojson
}};
27 $('#features-container input:checkbox').ajaxCheckbox({
30 return this.checked
? 'PUT' : 'DELETE';
33 return build_url(urlTemplate
, {
34 confId
: {{ event
.id
}},
38 }).on('ajaxCheckbox:changed', function(e
, state
) {
39 $('.js-event-feature-{0}'.format(this.name
)).toggle(state
);