aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/app.tpl2
-rw-r--r--view/tpl/app_install.tpl12
2 files changed, 13 insertions, 1 deletions
diff --git a/view/tpl/app.tpl b/view/tpl/app.tpl
index 5809a3edb..69af0436b 100644
--- a/view/tpl/app.tpl
+++ b/view/tpl/app.tpl
@@ -12,7 +12,7 @@
<div class="app-tools">
<form action="{{$hosturl}}appman" method="post">
<input type="hidden" name="papp" value="{{$app.papp}}" />
- {{if $action_label}}<button type="submit" name="install" value="{{$action_label}}" class="btn btn-outline-{{if $installed}}secondary{{else}}success{{/if}} btn-sm" title="{{$action_label}}" ><i class="fa fa-fw {{if $installed}}fa-refresh{{else}}fa-arrow-circle-o-down{{/if}}" ></i> {{$action_label}}</button>{{/if}}
+ {{if $action_label}}<button type="submit" name="install" value="{{$action_label}}" class="btn btn-{{if $installed}}outline-secondary{{else}}success{{/if}} btn-sm" title="{{$action_label}}" ><i class="fa fa-fw {{if $installed}}fa-refresh{{else}}fa-arrow-circle-o-down{{/if}}" ></i> {{$action_label}}</button>{{/if}}
{{if $edit}}<input type="hidden" name="appid" value="{{$app.guid}}" /><button type="submit" name="edit" value="{{$edit}}" class="btn btn-outline-secondary btn-sm" title="{{$edit}}" ><i class="fa fa-fw fa-pencil" ></i></button>{{/if}}
{{if $delete}}<button type="submit" name="delete" value="{{if $deleted}}{{$undelete}}{{else}}{{$delete}}{{/if}}" class="btn btn-outline-secondary btn-sm" title="{{if $deleted}}{{$undelete}}{{else}}{{$delete}}{{/if}}" ><i class="fa fa-fw fa-trash-o drop-icons"></i></button>{{/if}}
{{if $settings_url}}<a href="{{$settings_url}}/?f=&rpath={{$rpath}}" class="btn btn-outline-secondary btn-sm"><i class="fa fa-fw fa-cog"></i></a>{{/if}}
diff --git a/view/tpl/app_install.tpl b/view/tpl/app_install.tpl
new file mode 100644
index 000000000..fa2a02eb5
--- /dev/null
+++ b/view/tpl/app_install.tpl
@@ -0,0 +1,12 @@
+<div>
+ <h2>{{$papp.name}}</h2>
+</div>
+<div class="mb-3">
+ {{$papp.desc}}
+</div>
+<form action="appman" method="post">
+ <input type="hidden" name="papp" value="{{$papp_encoded}}" />
+ <button type="submit" name="install" value="install" class="btn btn-success">
+ <i class="fa fa-fw fa-arrow-circle-o-down"></i> {{$install}}
+ </button>
+</form>