~jfb-tempo-consulting/unifield-web/US-4948

« back to all changes in this revision

Viewing changes to addons/openerp/controllers/templates/error_page.mako

  • Committer: jf
  • Date: 2018-07-27 10:02:17 UTC
  • Revision ID: jfb@tempo-consulting.fr-20180727100217-ejhx5wiucrh58r69
Let me fix it: expanded and scrolled down

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        };
34
34
 
35
35
        jQuery(document).ready(function () {
 
36
            setTimeout("jQuery('#error').scrollTop(1000)", 5);
36
37
            new openerp.ui.TextArea('error');
37
38
            jQuery('.error-section h5[id!="non-fold-error-link"]').click(function () {
38
39
                jQuery(this).parent().toggleClass('expanded-error collapsed-error');
98
99
                <form id="view_form" action="/openerp/errorpage/submit" method="POST">
99
100
                    <div>
100
101
                        <h4 style="padding-top:10px;">${_("An %(error_type)s has been reported.", error_type=title)}</h4>
101
 
                        <div class="error-section collapsed-error">
 
102
                        <div class="error-section">
102
103
                            <h5><label for="error">${_('Let me fix it')}</label></h5>
103
104
                            <div class="details">
104
105
                                <textarea id="error" name="error" class="text" readonly="readonly" rows="15" >${error}</textarea>
106
107
                        </div>
107
108
                        <div class="error-section ${maintenance_default}">
108
109
                            % if maintenance['status'] != 'full':
109
 
                            <h5 id="non-fold-error-link"><a href="${MAINTENANCE_CONTRACTS_URL}" target="_blank">${_('Fix it for me')}</a></h5>
 
110
                            <!-- <h5 id="non-fold-error-link"><a href="${MAINTENANCE_CONTRACTS_URL}" target="_blank">${_('Fix it for me')}</a></h5> -->
110
111
                            % else:
111
112
                            <h5>${_('Fix it for me')}</h5>
112
113
                            <div class="details">