From 56b600381e889f03bdea7bd3d3f6b46738457256 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Sun, 12 Jun 2016 00:15:48 +0200 Subject: [PATCH] frio: add some more settings templates --- view/theme/frio/templates/removeme.tpl | 24 ++++++++++ .../frio/templates/settings_features.tpl | 36 +++++++++++++++ view/theme/frio/templates/settings_oauth.tpl | 44 +++++++++++++++++++ .../frio/templates/settings_oauth_edit.tpl | 18 ++++++++ 4 files changed, 122 insertions(+) create mode 100644 view/theme/frio/templates/removeme.tpl create mode 100644 view/theme/frio/templates/settings_features.tpl create mode 100644 view/theme/frio/templates/settings_oauth.tpl create mode 100644 view/theme/frio/templates/settings_oauth_edit.tpl diff --git a/view/theme/frio/templates/removeme.tpl b/view/theme/frio/templates/removeme.tpl new file mode 100644 index 000000000..2e599a0da --- /dev/null +++ b/view/theme/frio/templates/removeme.tpl @@ -0,0 +1,24 @@ +
+ {{* include the title template for the settings title *}} + {{include file="section_title.tpl" title=$title }} + +
+
{{$desc}}
+ +
+ + +
+ + +
+
+ +
+ +
+
+
+
+
+ diff --git a/view/theme/frio/templates/settings_features.tpl b/view/theme/frio/templates/settings_features.tpl new file mode 100644 index 000000000..8d92caa5d --- /dev/null +++ b/view/theme/frio/templates/settings_features.tpl @@ -0,0 +1,36 @@ +
+ {{* include the title template for the settings title *}} + {{include file="section_title.tpl" title=$title }} + + +
+ + {{* We organize the settings in collapsable panel-groups *}} +
+ {{foreach $features as $g => $f}} +
+ +
+
+ {{foreach $f.1 as $fcat}} + {{include file="field_yesno.tpl" field=$fcat}} + {{/foreach}} + +
+ +
+
+
+
+
+ {{/foreach}} +
+ +
+
diff --git a/view/theme/frio/templates/settings_oauth.tpl b/view/theme/frio/templates/settings_oauth.tpl new file mode 100644 index 000000000..ffd40f2ab --- /dev/null +++ b/view/theme/frio/templates/settings_oauth.tpl @@ -0,0 +1,44 @@ +
+ {{* include the title template for the settings title *}} + {{include file="section_title.tpl" title=$title }} + + +
+ + + + + {{foreach $apps as $app}} +
+ + {{if $app.name}}

{{$app.name}}

{{else}}

{{$noname}}

{{/if}} + {{if $app.my}} + {{if $app.oauth_token}} +
+ {{/if}} + {{/if}} + {{if $app.my}} +   + + {{/if}} +
+ {{/foreach}} + +
+
diff --git a/view/theme/frio/templates/settings_oauth_edit.tpl b/view/theme/frio/templates/settings_oauth_edit.tpl new file mode 100644 index 000000000..91dfa0455 --- /dev/null +++ b/view/theme/frio/templates/settings_oauth_edit.tpl @@ -0,0 +1,18 @@ + +

{{$title}}

+ +
+ + + {{include file="field_input.tpl" field=$name}} + {{include file="field_input.tpl" field=$key}} + {{include file="field_input.tpl" field=$secret}} + {{include file="field_input.tpl" field=$redirect}} + {{include file="field_input.tpl" field=$icon}} + +
+ +
+
+ +