Skip to content

Commit

Permalink
Version in configuration page
Browse files Browse the repository at this point in the history
  • Loading branch information
Quoc Dat Pham committed Jun 20, 2017
1 parent 33ebd8f commit cd4d221
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
3 changes: 1 addition & 2 deletions src/lemonway/lemonway.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,7 @@ public function getContent()
}
}



$this->context->smarty->assign('module_version', $this->version);
$this->context->smarty->assign('module_dir', $this->_path);
$this->context->smarty->assign('api_configuration_form', $this->renderForm('API'));

Expand Down
32 changes: 22 additions & 10 deletions src/lemonway/views/templates/admin/configure.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,30 @@

<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li class="active"><a href="#about_us" role="tab" data-toggle="tab">{l s='About us' mod='lemonway'}</a></li>
<li class=""><a href="#access_api" role="tab" data-toggle="tab">{l s='Account configuration' mod='lemonway'}</a></li>
{foreach from=$methodForms item=method key=methodCode}
<li class=""><a href="#method_{$methodCode}" role="tab" data-toggle="tab">{$method['title']}</a></li>
{/foreach}
<li class="active"><a href="#about_us" role="tab" data-toggle="tab">{l s='About us' mod='lemonway'}</a></li>
<li class=""><a href="#access_api" role="tab" data-toggle="tab">{l s='Account configuration' mod='lemonway'}</a></li>
{foreach from=$methodForms item=method key=methodCode}
<li class=""><a href="#method_{$methodCode}" role="tab" data-toggle="tab">{$method['title']}</a></li>
{/foreach}
</ul>

<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="about_us">{include file='./about_us.tpl'}</div>
<div class="tab-pane" id="access_api">{$api_configuration_form}</div>
{foreach from=$methodForms item=method key=methodCode}
<div class="tab-pane" id="method_{$methodCode}">{$method['form']}</div>
{/foreach}
<div class="tab-pane active" id="about_us">
{include file='./about_us.tpl'}
</div>

<div class="tab-pane" id="access_api">
{$api_configuration_form}
</div>

{foreach from=$methodForms item=method key=methodCode}
<div class="tab-pane" id="method_{$methodCode}">
{$method['form']}
</div>
{/foreach}

<div class="text-right">
<small>v{$module_version}</small>
</div>
</div>

0 comments on commit cd4d221

Please sign in to comment.