Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4391 Widoki

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>
Awatar
Odrzuć
Najlepsza odpowiedź

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/

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lip 24
4535
3
kwi 24
5658
0
wrz 21
2293
1
mar 15
5203
0
gru 23
1781