aboutsummaryrefslogtreecommitdiff
path: root/app/views/extension
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-08 12:01:47 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-08 12:01:47 +0100
commitc6dfec3ad351ee3b828c6a2c0a273bad5d9ac0df (patch)
tree53a8881481b44c4bddeacf81c77ff8fbc5798fdc /app/views/extension
parent2232d1e02a4bc9dbaa99cdbd22efad116ec01403 (diff)
Add behaviour to configure action (extensions)
- Put extension configure view in dir_ext/configure.phtml - Handle POST action in Extension->handleConfigureAction() method See https://github.com/FreshRSS/FreshRSS/issues/252
Diffstat (limited to 'app/views/extension')
-rw-r--r--app/views/extension/configure.phtml17
1 files changed, 14 insertions, 3 deletions
diff --git a/app/views/extension/configure.phtml b/app/views/extension/configure.phtml
index a79e9baac..295080d5e 100644
--- a/app/views/extension/configure.phtml
+++ b/app/views/extension/configure.phtml
@@ -7,6 +7,17 @@ if (!Minz_Request::param('ajax')) {
?>
<div class="post">
- <h1>Extension name</h1>
- Not implemented yet!
-</div> \ No newline at end of file
+ <h1><?php echo $this->extension->getName(); ?> (<?php echo $this->extension->getVersion(); ?>) — <?php echo $this->extension->getType(); ?></h1>
+
+ <p class="alert alert-warn"><?php echo $this->extension->getDescription(); ?> — <?php echo _t('gen.by'), ' ', $this->extension->getAuthor(); ?></p>
+
+ <h2><?php echo _t('gen.actions.manage'); ?></h2>
+ <?php
+ $configure_view = $this->extension->getConfigureView();
+ if ($configure_view !== false) {
+ echo $configure_view;
+ } else {
+ ?>
+ <p class="alert alert-warn"><?php echo _t('admin.extensions.no_configure_view'); ?></p>
+ <?php } ?>
+</div>