mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-21 10:40:58 +02:00
[ticket/10631] Various front-end fixes (extensions manager)
Add Back button from details Add cancel button from actions Correct language strings PHPBB3-10631
This commit is contained in:
committed by
Unknown Bliss
parent
47898cb37a
commit
dce04b2d03
@ -2,6 +2,8 @@
|
||||
|
||||
<a name="maincontent"></a>
|
||||
|
||||
<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">« {L_BACK}</a>
|
||||
|
||||
<h1>{L_EXTENSIONS_ADMIN}</h1>
|
||||
|
||||
<fieldset>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<h1>{L_EXTENSIONS_ADMIN}</h1>
|
||||
|
||||
<p>{L_EXTENSIONS_EXPLAIN}</p>
|
||||
<p>{L_ENABLE_EXPLAIN}</p>
|
||||
<p>{L_DISABLE_EXPLAIN}</p>
|
||||
|
||||
<!-- IF PRE -->
|
||||
<div class="errorbox">
|
||||
@ -15,7 +15,8 @@
|
||||
<form id="acp_extensions" method="post" action="{U_DISABLE}">
|
||||
<fieldset class="submit-buttons">
|
||||
<legend>{L_DISABLE}</legend>
|
||||
<input class="button1" type="submit" name="{L_DISABLE}" value="{L_DISABLE}" />
|
||||
<input class="button1" type="submit" name="disable" value="{L_DISABLE}" />
|
||||
<input class="button2" type="submit" name="cancel" value="{L_CANCEL}" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<!-- ELSEIF S_NEXT_STEP -->
|
||||
|
@ -15,7 +15,8 @@
|
||||
<form id="acp_extensions" method="post" action="{U_ENABLE}">
|
||||
<fieldset class="submit-buttons">
|
||||
<legend>{L_ENABLE}</legend>
|
||||
<input class="button1" type="submit" name="{L_ENABLE}" value="{L_ENABLE}" />
|
||||
<input class="button1" type="submit" name="enable" value="{L_ENABLE}" />
|
||||
<input class="button2" type="submit" name="cancel" value="{L_CANCEL}" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<!-- ELSEIF S_NEXT_STEP -->
|
||||
|
@ -5,7 +5,7 @@
|
||||
<h1>{L_EXTENSIONS_ADMIN}</h1>
|
||||
|
||||
<p>{L_EXTENSIONS_EXPLAIN}</p>
|
||||
<p>{L_ENABLE_EXPLAIN}</p>
|
||||
<p>{L_PURGE_EXPLAIN}</p>
|
||||
|
||||
<!-- IF PRE -->
|
||||
<div class="errorbox">
|
||||
@ -15,7 +15,8 @@
|
||||
<form id="acp_extensions" method="post" action="{U_PURGE}">
|
||||
<fieldset class="submit-buttons">
|
||||
<legend>{L_PURGE}</legend>
|
||||
<input class="button1" type="submit" name="{L_PURGE}" value="{L_PURGE}" />
|
||||
<input class="button1" type="submit" name="purge" value="{L_PURGE}" />
|
||||
<input class="button2" type="submit" name="cancel" value="{L_CANCEL}" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<!-- ELSEIF S_NEXT_STEP -->
|
||||
|
@ -43,6 +43,13 @@ class acp_extensions
|
||||
|
||||
$action = $request->variable('action', 'list');
|
||||
$ext_name = $request->variable('ext_name', '');
|
||||
|
||||
// Cancel action
|
||||
if ($request->is_set_post('cancel'))
|
||||
{
|
||||
$action = 'list';
|
||||
$ext_name = '';
|
||||
}
|
||||
|
||||
// If they've specificed an extension, let's load the metadata manager and validate it.
|
||||
if ($ext_name)
|
||||
@ -162,6 +169,8 @@ class acp_extensions
|
||||
// Output it to the template
|
||||
$md_manager->output_template_data();
|
||||
|
||||
$template->assign_var('U_BACK', $this->u_action . '&action=list');
|
||||
|
||||
$this->tpl_name = 'acp_ext_details';
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user