콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4238 화면

I'm inheriting template from online events app. there's registration for events there and I've added some field that user fills with text. I need this text to be saved in database so i can display what user inputed in he's profile in online events attendees. Below is the template part where I added place to input text by user. I think getting data from website is done with controllers but I just don't know how.

<div class="input-group">
    <t t-foreach="event.question_id" t-as="question">
        <span class="input-group-addon"><t t-esc='question.title'/>
            <input type="text" class="form-control" t-attf-answers="#{counter}-answers" widget="text" t-att-placeholder="'Question #%s' %question.id"/>
        </span>
    </t>
</div>
아바타
취소
베스트 답변

If you want to save user input, you also need to add the necessary amendments in the backend. Please read the corresponding docs, which you can find here:https://www.odoo.com/documentation/9.0/

아바타
취소
관련 게시물 답글 화면 활동
2
7월 24
4183
3
4월 24
4886
0
9월 21
1948
1
3월 15
4756
0
12월 23
1369