Skip to content

Commit 8beafea

Browse files
committed
Fix 'Configuration' button on Snippets list page
Conversion to ModernUI generated invalid HTML (form within a form)
1 parent dbc1e6c commit 8beafea

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

pages/snippet_list.php

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,29 @@
3636
<?php echo plugin_lang_get( $global ? "list_global_title" : "list_title" ) ?>
3737
</h4>
3838
<?php echo form_security_field( "plugin_Snippets_list_action" ) ?>
39+
</div>
40+
41+
<div class="widget-body">
42+
<div class="widget-main no-padding">
43+
<div class="table-responsive">
3944

4045
<?php
4146
if( $global ) {
4247
?>
43-
<input type="hidden" name="global" value="true"/>
48+
<input type="hidden" name="global" value="true"/>
4449
<?php
4550
if( $admin ) {
46-
print_form_button( plugin_page( 'config_page' ), plugin_lang_get( 'config' ) );
51+
?>
52+
<div class="widget-toolbox padding-8 clearfix">
53+
<a class="btn btn-xs btn-primary btn-white btn-round"
54+
href="<?php echo plugin_page( 'config_page' ); ?>">
55+
<?php echo plugin_lang_get( 'config' ); ?>
56+
</a>
57+
</div>
58+
<?php
4759
}
4860
}
4961
?>
50-
</div>
51-
52-
<div class="widget-body">
53-
<div class="widget-main no-padding">
54-
<div class="table-responsive">
5562

5663
<table class="table table-striped table-bordered table-condensed table-hover">
5764
<thead>

0 commit comments

Comments
 (0)