ui Poner el texto de ayuda sobre el área de texto

parent 35fdbd51
Pipeline #359 passed with stage
in 5 seconds
......@@ -431,9 +431,29 @@ class ProyectoUpdateFieldView(LoginRequiredMixin, ChecksMixin, UpdateView):
raise Http404(_("No puede editar ese campo."))
if campo not in ("titulo", "departamento", "licencia", "ayuda"):
return modelform_factory(
formulario = modelform_factory(
Proyecto, fields=(campo,), widgets={campo: SummernoteWidget()}
def as_p(self):
Return this form rendered as HTML <p>s,
with the helptext over the textarea.
return self._html_output(
help_text_html='<span class="helptext">%s</span>',
formulario.as_p = as_p
return formulario
self.fields = (campo,)
return super().get_form_class()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment