File tree Expand file tree Collapse file tree 5 files changed +14
-8
lines changed
templates/admin/layout/forms Expand file tree Collapse file tree 5 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export default {
26
26
id: String ,
27
27
format: {
28
28
type: String ,
29
- default: ' dd.MM.yyyy'
29
+ // default: 'dd.MM.yyyy'
30
30
},
31
31
multiple: {
32
32
type: Boolean ,
Original file line number Diff line number Diff line change @@ -14,9 +14,11 @@ export default {
14
14
15
15
setTimeout ( ( ) => {
16
16
if ( el . getAttribute ( 'type' ) === 'radio' ) {
17
- if ( el . checked ) {
17
+ if ( el . checked ) {
18
18
vnode . dirs [ 0 ] . instance . $root . forms [ id ] = val ;
19
19
}
20
+ } else if ( el . getAttribute ( 'type' ) === 'checkbox' ) {
21
+ vnode . dirs [ 0 ] . instance . $root . forms [ id ] = Boolean ( val ) ;
20
22
} else {
21
23
vnode . dirs [ 0 ] . instance . $root . forms [ id ] = val ;
22
24
}
Original file line number Diff line number Diff line change 3
3
git reset --hard HEAD
4
4
git pull
5
5
composer install --no-dev --optimize-autoloader
6
+ bin/console cache:pool:clear cache.global_clearer
7
+ bin/console doctrine:cache:clear-metadata
6
8
bin/console doctrine:schema:update --force --dump-sql
7
9
bin/console doctrine:migrations:migrate --no-interaction
8
10
yarn install
9
11
yarn run build
10
- pm2 stop all
11
- pm2 delete all
12
+ pm2 stop pdadmin
13
+ pm2 delete pdadmin
12
14
pm2 start
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
apps : [
3
3
{
4
- name : 'queue' ,
4
+ name : 'pd- queue' ,
5
5
interpreter : 'php' ,
6
6
script : 'bin/console' ,
7
7
args : 'messenger:consume async --memory-limit=256M --time-limit=3600' ,
8
8
instances : 2 ,
9
9
autorestart : true ,
10
10
watch : false ,
11
11
max_memory_restart : '1G' ,
12
+ namespace : 'pdadmin'
12
13
} ,
13
14
{
14
- name : 'cron' ,
15
+ name : 'pd- cron' ,
15
16
interpreter : 'php' ,
16
17
script : 'bin/console' ,
17
18
args : 'schedule:run' ,
@@ -20,6 +21,7 @@ module.exports = {
20
21
instances : 1 ,
21
22
autorestart : false ,
22
23
watch : false ,
24
+ namespace : 'pdadmin'
23
25
}
24
26
]
25
27
} ;
Original file line number Diff line number Diff line change 103
103
{%- endblock choice_widget_options -%}
104
104
105
105
{%- block checkbox_widget -%}
106
- <input type =" checkbox" v-model =" $root.forms.{{ id | trim }}" {{ block (' widget_attributes' ) }} {% if value is defined %} value =" {{ value }}" {% endif %}{% if checked %} checked = " checked " {% endif %} />
106
+ <input type =" checkbox" v-set-value = " {{ checked | default ( 0 ) | json_encode }} " v- model =" $root.forms.{{ id | trim }}" {{ block (' widget_attributes' ) }} {% if value is defined %} value =" {{ value }}" {% endif %}/>
107
107
{%- endblock checkbox_widget -%}
108
108
109
109
{%- block radio_widget -%}
110
- <input type =" radio" v-model =" $root.forms.{{ id | trim }}" v-set-value =" ' {{ value | json_encode }}' " {{ block (' widget_attributes' ) }}{% if value is defined %} value =" {{ value }}" {% endif %}{% if checked %} checked =" checked" {% endif %} />
110
+ <input type =" radio" v-model =" $root.forms.{{ id | trim }}" v-set-value =" {{ value | json_encode }}" {{ block (' widget_attributes' ) }}{% if value is defined %} value =" {{ value }}" {% endif %}{% if checked %} checked =" checked" {% endif %} />
111
111
{%- endblock radio_widget -%}
112
112
113
113
{%- block datetime_widget -%}
You can’t perform that action at this time.
0 commit comments