simple form: refactor DText form fields to use SimpleForm.

* Refactors DText form fields to use a custom SimpleForm input instead
  of manually generated html. This fixes it so that DText fields use the
  same markup as normal SimpleForm fields, which lets us apply browser
  maxlength validations to DText input fields.

* Fixes autocomplete for @-mentions only working in comments and forum posts.
  Now @-mention autocomplete works in all DText fields, including dmails.
  Known bug: it applies in artist commentary fields when it shouldn't.
This commit is contained in:
evazion
2020-06-25 15:54:06 -05:00
parent fccdcbe7cc
commit 883856d4af
22 changed files with 75 additions and 77 deletions

View File

@@ -39,7 +39,7 @@ form.simple_form {
padding-left: 1em;
}
&.text {
&.text, &.dtext {
.hint {
padding-left: 0;
display: block;