From 064ecc1423fcd944fb4ea6dc3c63c369c430e8ae Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Tue, 26 Apr 2016 00:36:40 +0200 Subject: [PATCH] add field select templates --- js/theme.js | 1 + templates/field_custom.tpl | 6 ++++++ templates/field_select.tpl | 8 ++++++++ templates/field_select_raw.tpl | 8 ++++++++ templates/field_themeselect.tpl | 10 ++++++++++ 5 files changed, 33 insertions(+) create mode 100644 templates/field_custom.tpl create mode 100644 templates/field_select.tpl create mode 100644 templates/field_select_raw.tpl create mode 100644 templates/field_themeselect.tpl diff --git a/js/theme.js b/js/theme.js index 690c774186..b81c94cf3c 100644 --- a/js/theme.js +++ b/js/theme.js @@ -40,6 +40,7 @@ $(document).ready(function(){ } // give select fields an boostrap classes + // @todo: this needs to be changed in friendica core $(".field.select, .field.custom").addClass("form-group"); $(".field.select > select, .field.custom > select").addClass("form-control"); diff --git a/templates/field_custom.tpl b/templates/field_custom.tpl new file mode 100644 index 0000000000..20f529278d --- /dev/null +++ b/templates/field_custom.tpl @@ -0,0 +1,6 @@ + +
+ + {{$field.2}} + {{$field.3}} +
diff --git a/templates/field_select.tpl b/templates/field_select.tpl new file mode 100644 index 0000000000..9c03151214 --- /dev/null +++ b/templates/field_select.tpl @@ -0,0 +1,8 @@ + +
+ + + {{$field.3}} +
\ No newline at end of file diff --git a/templates/field_select_raw.tpl b/templates/field_select_raw.tpl new file mode 100644 index 0000000000..d4f4768603 --- /dev/null +++ b/templates/field_select_raw.tpl @@ -0,0 +1,8 @@ + +
+ + + {{$field.3}} +
\ No newline at end of file diff --git a/templates/field_themeselect.tpl b/templates/field_themeselect.tpl new file mode 100644 index 0000000000..04f4e82b1c --- /dev/null +++ b/templates/field_themeselect.tpl @@ -0,0 +1,10 @@ + +{{if $field.5=="preview"}}{{/if}} +
+ + + {{$field.3}} + {{if $field.5=="preview"}}
{{/if}} +
\ No newline at end of file -- 2.39.5