mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Discourage long event short forms
This commit is contained in:
@@ -27,6 +27,11 @@
|
|||||||
references as an abbreviation to reference this event.
|
references as an abbreviation to reference this event.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="slug-length alert alert-warning helper-display-none-soft">
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
We strongly recommend against using short forms of more then 16 characters.
|
||||||
|
{% endblocktrans %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% bootstrap_field form.date_from layout="control" %}
|
{% bootstrap_field form.date_from layout="control" %}
|
||||||
|
|||||||
@@ -358,6 +358,10 @@ var form_handlers = function (el) {
|
|||||||
el.find(".simple-subevent-choice").change(function () {
|
el.find(".simple-subevent-choice").change(function () {
|
||||||
$(this).closest("form").submit();
|
$(this).closest("form").submit();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
el.find("input[name=basics-slug]").bind("keyup keydown change", function () {
|
||||||
|
$(this).closest(".form-group").find(".slug-length").toggle($(this).val().length > 16);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|||||||
@@ -139,6 +139,9 @@ p.bigger {
|
|||||||
.helper-display-inline {
|
.helper-display-inline {
|
||||||
display: inline !important;
|
display: inline !important;
|
||||||
}
|
}
|
||||||
|
.helper-display-none-soft {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
.helper-display-none {
|
.helper-display-none {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user