From: rabuzarus <> Date: Mon, 25 Apr 2016 22:36:40 +0000 (+0200) Subject: add field select templates X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=064ecc1423fcd944fb4ea6dc3c63c369c430e8ae;p=friendica.git add field select templates --- 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