Commit c42a1446 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[ui] Use simple input, not textarea, for agent's name

parent d1400cd1e233
......@@ -18,6 +18,7 @@ from yams import BASE_TYPES
from cubicweb import tags, neg_role
from cubicweb.utils import UStringIO
from cubicweb.web import formwidgets as fw
# XXX alias to avoid side effect: uicfg will become our uicfg submodule. Not necessary with 3.23?
from cubicweb.web.views import uicfg as cwuicfg
......@@ -27,11 +28,13 @@ _ = unicode
pvs = cwuicfg.primaryview_section
afs = cwuicfg.autoform_section
affk = cwuicfg.autoform_field_kwargs
rec = cwuicfg.reledit_ctrl
pvs.tag_subject_of(('*', 'container', '*'), 'hidden')
pvs.tag_object_of(('*', 'container', '*'), 'hidden')
afs.tag_subject_of(('*', 'container', '*'), 'main', 'hidden')
afs.tag_object_of(('*', 'container', '*'), 'main', 'hidden')
affk.tag_attribute(('Agent', 'name'), {'widget': fw.TextInput({'size': 80})})
def rtags_from_xsd_element(etype, element_name):
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