diff options
Diffstat (limited to 'settings/templates/apps.php')
-rw-r--r-- | settings/templates/apps.php | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/settings/templates/apps.php b/settings/templates/apps.php index 0adf5dfcc6f..1b6e5e60327 100644 --- a/settings/templates/apps.php +++ b/settings/templates/apps.php @@ -29,6 +29,50 @@ script( <?php endif; ?> </script> + +<script id="app-template-installed" type="text/x-handlebars"> +<div class="section" id="app-{{id}}"> + <div class="app-image app-image-icon hidden"></div> + <h2 class="app-name"> + {{#if detailpage}} + <a href="{{detailpage}}" target="_blank" rel="noreferrer">{{name}}</a> + {{else}} + {{name}} + {{/if}} + </h2> + <div class="app-version"> {{version}}</div> + <div class="app-level"> + {{{level}}} + </div> + + <div> + {{#if active}} + <div class="groups-enable"> + <input type="checkbox" class="groups-enable__checkbox checkbox" id="groups_enable-{{id}}"/> + <label for="groups_enable-{{id}}"><?php p($l->t('Limit to groups')); ?></label> + <input type="hidden" id="group_select" title="<?php p($l->t('All')); ?>"> + </div> + {{/if}} + </div> + + <div class="actions"> + <div class="app-dependencies update hidden"> + <p><?php p($l->t('This app has an update available.')); ?></p> + </div> + <div class="warning hidden"></div> + {{#if active}} + <input class="enable" type="submit" data-appid="{{id}}" data-active="true" value="<?php p($l->t("Disable"));?>"/> + {{else}} + <input class="enable{{#if needsDownload}} needs-download{{/if}}" type="submit" data-appid="{{id}}" data-active="false" {{#unless canInstall}}disabled="disabled"{{/unless}} value="<?php p($l->t("Enable"));?>"/> + {{/if}} + <input class="update hidden" type="submit" value="<?php p($l->t('Update to %s', array('{{update}}'))); ?>" data-appid="{{id}}" /> + {{#if canUnInstall}} + <input class="uninstall" type="submit" value="<?php p($l->t('Uninstall app')); ?>" data-appid="{{id}}" /> + {{/if}} + </div> +</div> +</script> + <script id="app-template" type="text/x-handlebars"> <div class="section" id="app-{{id}}"> {{#if preview}} |