<input class="${python: ' error' if view.error else None}"
       autofocus="${python:'autofocus' if fieldname == 'title' else None}"
       name="${name}"
       type="text"
       value="${view/request/?name|view/context/session/?fieldname|nothing}"
       tal:define="
         name view/name;
         fieldname view/field/__name__;
       "
/>
