diff options
| author | 2014-12-08 12:01:47 +0100 | |
|---|---|---|
| committer | 2014-12-08 12:01:47 +0100 | |
| commit | c6dfec3ad351ee3b828c6a2c0a273bad5d9ac0df (patch) | |
| tree | 53a8881481b44c4bddeacf81c77ff8fbc5798fdc /app/views/extension | |
| parent | 2232d1e02a4bc9dbaa99cdbd22efad116ec01403 (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.phtml | 17 |
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> |
