From e6036b8266a1bb895104fccdabbc780ff1e3c23f Mon Sep 17 00:00:00 2001 From: "Dr. Tobias Quathamer" Date: Sat, 6 Jan 2024 20:00:33 +0100 Subject: [PATCH 1/2] Clean up smarty templates. This simplifies some logic in if-conditions, because smarty just returns an empty string for undefined variables. Also, this commit removes unnecessary values from HTML input attributes. --- view/templates/field_checkbox.tpl | 2 +- view/templates/field_input.tpl | 4 ++-- view/templates/field_intcheckbox.tpl | 4 ++-- view/templates/field_openid.tpl | 2 +- view/templates/field_password.tpl | 2 +- view/templates/field_select.tpl | 4 ++-- view/templates/field_textarea.tpl | 2 +- view/templates/field_themeselect.tpl | 2 +- view/theme/frio/templates/field_checkbox.tpl | 4 ++-- view/theme/frio/templates/field_fileinput.tpl | 2 +- view/theme/frio/templates/field_input.tpl | 2 +- view/theme/frio/templates/field_intcheckbox.tpl | 2 +- view/theme/frio/templates/field_openid.tpl | 2 +- view/theme/frio/templates/field_password.tpl | 2 +- view/theme/frio/templates/field_select.tpl | 4 ++-- view/theme/frio/templates/field_textarea.tpl | 2 +- view/theme/frio/templates/field_themeselect.tpl | 2 +- 17 files changed, 22 insertions(+), 22 deletions(-) diff --git a/view/templates/field_checkbox.tpl b/view/templates/field_checkbox.tpl index b1e6540d88..caf7a050cd 100644 --- a/view/templates/field_checkbox.tpl +++ b/view/templates/field_checkbox.tpl @@ -1,7 +1,7 @@
- + {{if $field.3}} {{$field.3 nofilter}} {{/if}} diff --git a/view/templates/field_input.tpl b/view/templates/field_input.tpl index 3455891b9d..d5c9c078db 100644 --- a/view/templates/field_input.tpl +++ b/view/templates/field_input.tpl @@ -1,7 +1,7 @@ - +
- + {{if $field.3}} {{$field.3 nofilter}} {{/if}} diff --git a/view/templates/field_intcheckbox.tpl b/view/templates/field_intcheckbox.tpl index 0bb6ef2c54..b039083301 100644 --- a/view/templates/field_intcheckbox.tpl +++ b/view/templates/field_intcheckbox.tpl @@ -1,8 +1,8 @@ - +
- + {{if $field.4}} {{$field.4 nofilter}} {{/if}} diff --git a/view/templates/field_openid.tpl b/view/templates/field_openid.tpl index 033a1f8e50..4a30d9e780 100644 --- a/view/templates/field_openid.tpl +++ b/view/templates/field_openid.tpl @@ -1,6 +1,6 @@
- + {{if $field.3}} {{$field.3 nofilter}} {{/if}} diff --git a/view/templates/field_password.tpl b/view/templates/field_password.tpl index a0ac6a735f..9831c79b87 100644 --- a/view/templates/field_password.tpl +++ b/view/templates/field_password.tpl @@ -1,6 +1,6 @@
- + {{if $field.3}} {{$field.3 nofilter}} {{/if}} diff --git a/view/templates/field_select.tpl b/view/templates/field_select.tpl index f02110628e..fff54424f0 100644 --- a/view/templates/field_select.tpl +++ b/view/templates/field_select.tpl @@ -4,9 +4,9 @@ diff --git a/view/templates/field_textarea.tpl b/view/templates/field_textarea.tpl index 797556ea9f..16feaaa736 100644 --- a/view/templates/field_textarea.tpl +++ b/view/templates/field_textarea.tpl @@ -1,7 +1,7 @@
- + {{if $field.3}} {{$field.3 nofilter}} {{/if}} diff --git a/view/templates/field_themeselect.tpl b/view/templates/field_themeselect.tpl index 60676e5d1f..d8de748dc6 100644 --- a/view/templates/field_themeselect.tpl +++ b/view/templates/field_themeselect.tpl @@ -6,7 +6,7 @@ {{if $field.3}} diff --git a/view/theme/frio/templates/field_checkbox.tpl b/view/theme/frio/templates/field_checkbox.tpl index 2fd4641c33..448b2b8eea 100644 --- a/view/theme/frio/templates/field_checkbox.tpl +++ b/view/theme/frio/templates/field_checkbox.tpl @@ -1,8 +1,8 @@
- -