8 |
9 |
10 | {%
11 | if request.args(0)=='login':
12 | if not 'register' in auth.settings.actions_disabled:
13 | form.add_button(T('Sign Up'),URL(args='register', vars={'_next': request.vars._next} if request.vars._next else None),_class='btn btn-default')
14 | pass
15 | if not 'request_reset_password' in auth.settings.actions_disabled:
16 | form.add_button(T('Lost Password'),URL(args='request_reset_password'),_class='btn btn-default')
17 | pass
18 | pass
19 | =form
20 | %}
21 |
22 |
23 |
24 |
25 |
26 | {%block page_js%}
27 |
35 | {%end page_js%}
36 |
--------------------------------------------------------------------------------
/views/generic.html:
--------------------------------------------------------------------------------
1 | {%extend 'layout.html'%}
2 | {%"""
3 |
4 | You should not modify this file.
5 | It is used as default when a view is not provided for your controllers
6 |
7 | """%}
8 |
93 |
94 | {%block center%}
95 | {%include%}
96 | {%end%}
97 | {%=response.toolbar() if configuration.get('app.toolbar') else ''%}
98 |
99 |
100 |
101 | {%block footer%}
102 |
111 | {%end%}
112 |
113 |
114 |
115 | {%block page_js%}{%end page_js%}
116 | {%if response.google_analytics_id:%}
117 |
118 |
119 |
124 | {%pass%}
125 |
126 |
127 |
128 |
129 |
--------------------------------------------------------------------------------
/views/web2py_ajax.html:
--------------------------------------------------------------------------------
1 |
11 | {%
12 | response.files.insert(0,URL('static','js/jquery.js'))
13 | response.files.insert(1,URL('static','css/calendar.css'))
14 | response.files.insert(2,URL('static','js/calendar.js'))
15 | response.files.insert(3,URL('static','js/web2py.js'))
16 | response.include_meta()
17 | response.include_files()
18 | %}
19 |
--------------------------------------------------------------------------------
/webpack.mix.js:
--------------------------------------------------------------------------------
1 | const path = require('path')
2 | const webpack = require('webpack')
3 | const mix = require('laravel-mix')
4 | // const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
5 |
6 | mix
7 | .js('resources/assets/js/app.js', 'static/public/js')
8 | .stylus('resources/assets/stylus/app.styl', 'static/public/css')
9 | .sourceMaps()
10 | .disableNotifications()
11 | .copyDirectory('resources/assets/img', 'static/public/img')
12 |
13 | if (mix.inProduction()) {
14 | mix.version()
15 |
16 | mix.extract([
17 | 'vue',
18 | 'vform',
19 | 'axios',
20 | 'vuex',
21 | 'vue-i18n',
22 | 'vue-meta',
23 | 'js-cookie',
24 | 'vue-router',
25 | 'vuetify',
26 | 'vee-validate',
27 | 'vuex-router-sync'
28 | ])
29 | }
30 |
31 | mix.webpackConfig({
32 | plugins: [
33 | ],
34 | resolve: {
35 | alias: {
36 | '~': path.join(__dirname, './resources/assets/js')
37 | }
38 | }
39 | })
40 |
--------------------------------------------------------------------------------