Skip to content

Commit

Permalink
Fix broken styles in admin and plugin config pages
Browse files Browse the repository at this point in the history
  • Loading branch information
syncguru committed Dec 5, 2014
1 parent 9cb1d37 commit a09acda
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 83 deletions.
2 changes: 1 addition & 1 deletion adm_config_report.php
Expand Up @@ -409,7 +409,7 @@ function print_option_list_from_array( array $p_array, $p_filter_value ) {

?>
<!-- Repeated Info Rows -->
<tr width="100%">
<tr>
<td>
<?php echo ($v_user_id == 0) ? lang_get( 'all_users' ) : string_display_line( user_get_name( $v_user_id ) ) ?>
</td>
Expand Down
4 changes: 2 additions & 2 deletions core/collapse_api.php
Expand Up @@ -174,10 +174,10 @@ function collapse_display( $p_block ) {
global $g_collapse_cache_token;

if( !isset( $g_collapse_cache_token[$p_block] ) ) {
return true;
return false;
}

return( true == $g_collapse_cache_token[$p_block] );
return( false == $g_collapse_cache_token[$p_block] );
}

/**
Expand Down
59 changes: 34 additions & 25 deletions manage_custom_field_edit_page.php
Expand Up @@ -64,8 +64,6 @@

print_manage_menu( 'manage_custom_field_page.php' );

print_manage_menu( 'manage_custom_field_edit_page.php' );

$t_definition = custom_field_get_definition( $f_field_id );
?>
<div class="col-md-12 col-xs-12">
Expand Down Expand Up @@ -113,7 +111,8 @@
<?php echo lang_get( 'custom_field_possible_values' ) ?>
</td>
<td>
<input type="text" id="custom-field-possible-values" name="possible_values" class="input-sm" value="<?php echo string_attribute( $t_definition['possible_values'] ) ?>" />
<input type="text" id="custom-field-possible-values" name="possible_values" class="input-sm" size="80%" value="<?php echo string_attribute( $t_definition['possible_values'] ) ?>" />
<small>(separate list items by "|")</small>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -155,28 +154,38 @@
</label>
</td>
</tr>
<div class="field-container">
<label for="custom-field-length-min"><span><?php echo lang_get( 'custom_field_length_min' ) ?></span></label>
<span class="input"><input type="text" id="custom-field-length-min" name="length_min" size="32" maxlength="64" value="<?php echo $t_definition['length_min'] ?>" /></span>
<span class="label-style"></span>
</div>
<div class="field-container">
<label for="custom-field-length-max"><span><?php echo lang_get( 'custom_field_length_max' ) ?></span></label>
<span class="input"><input type="text" id="custom-field-length-max" name="length_max" size="32" maxlength="64" value="<?php echo $t_definition['length_max'] ?>" /></span>
<span class="label-style"></span>
</div>
<div class="field-container">
<label for="custom-field-filter-by"><span><?php echo lang_get( 'custom_field_filter_by' ) ?></span></label>
<span class="checkbox">
<input type="checkbox" id="custom-field-filter-by" name="filter_by"
<?php
if( $t_definition['filter_by'] ) {
echo 'checked="checked"';
}
?> />
</span>
<span class="label-style"></span>
</div>
<tr>
<td class="category">
<?php echo lang_get( 'custom_field_length_min' ) ?>
</td>
<td>
<input type="text" id="custom-field-length-min" name="length_min" class="input-sm" size="32" maxlength="64" value="<?php echo $t_definition['length_min'] ?>" />
</td>
</tr>
<tr>
<td class="category">
<?php echo lang_get( 'custom_field_length_min' ) ?>
</td>
<td>
<input type="text" id="custom-field-length-max" name="length_max" class="input-sm" size="32" maxlength="64" value="<?php echo $t_definition['length_max'] ?>" />
</td>
</tr>
<tr>
<td class="category">
<?php echo lang_get( 'custom_field_filter_by' ) ?>
</td>
<td>
<label>
<input type="checkbox" class="ace" id="custom-field-filter-by" name="filter_by" value="1"
<?php
if( $t_definition['filter_by'] ) {
echo 'checked="checked"';
}
?> />
<span class="lbl"></span>
</label>
</td>
</tr>
<tr>
<td class="category">
<?php echo lang_get( 'custom_field_display_report' ) ?>
Expand Down
3 changes: 1 addition & 2 deletions manage_proj_edit_page.php
Expand Up @@ -109,7 +109,6 @@
<div class="table-responsive">
<table class="table table-bordered table-condensed table-striped">
<fieldset>
<legend><span><?php echo lang_get( 'edit_project_title' ) ?></span></legend>
<?php echo form_security_field( 'manage_proj_update' ) ?>
<input type="hidden" name="project_id" value="<?php echo $f_project_id ?>" />
<tr>
Expand Down Expand Up @@ -186,7 +185,7 @@
<?php echo lang_get( 'description' ) ?>
</td>
<td>
<textarea class="form-control" id="project-description" name="description" cols="70" rows="5"><?php echo string_textarea( $row['description'] ) ?></textarea>
<textarea class="form-control" id="project-description" name="description" cols="70" rows="5"><?php echo string_textarea( $t_row['description'] ) ?></textarea>
</td>
</tr>

Expand Down
2 changes: 1 addition & 1 deletion manage_proj_ver_edit_page.php
Expand Up @@ -119,7 +119,7 @@
</td>
<td>
<label>
<input type="checkbox" class="ace" id="proj-version-released" name="released" <?php check_checked( (int)$t_version->released, VERSION_RELEASED ); ?> />
<input type="checkbox" class="ace" id="proj-version-released" name="released" <?php check_checked( (boolean)$t_version->released, VERSION_RELEASED ); ?> />
<span class="lbl"></span>
</label>
</td>
Expand Down
2 changes: 0 additions & 2 deletions plugins/MantisCoreFormatting/pages/config.php
Expand Up @@ -31,8 +31,6 @@

print_manage_menu( 'manage_plugin_page.php' );

print_manage_menu( );

?>

<div class="col-md-12 col-xs-12">
Expand Down
8 changes: 0 additions & 8 deletions plugins/MantisGraph/pages/config.php
Expand Up @@ -31,8 +31,6 @@

print_manage_menu( 'manage_plugin_page.php' );

print_manage_menu( );

$g_current_font_selected = array(
'arial' => false,
'verdana' => false,
Expand Down Expand Up @@ -146,17 +144,14 @@ function print_font_checked( $p_font_name ) {
<input type="radio" class="ace" name="font" value="arial"<?php echo print_font_checked( 'arial' )?>/>
<span class="lbl"> Arial </span>
</label></div>
<br />
<div class="radio"><label>
<input type="radio" class="ace" name="font" value="verdana"<?php echo print_font_checked( 'verdana' )?>/>
<span class="lbl"> Verdana </span>
</label></div>
<br />
<div class="radio"><label>
<input type="radio" class="ace" name="font" value="trebuchet"<?php echo print_font_checked( 'trebuchet' )?>/>
<span class="lbl"> Trebuchet </span>
</label></div>
<br />
<div class="radio"><label>
<input type="radio" class="ace" name="font" value="verasans"<?php echo print_font_checked( 'verasans' )?>/>
<span class="lbl"> Vera Sans </span>
Expand All @@ -168,12 +163,10 @@ function print_font_checked( $p_font_name ) {
<input type="radio" class="ace" name="font" value="times"<?php echo print_font_checked( 'times' )?>/>
<span class="lbl"> Times </span>
</label></div>
<br />
<div class="radio"><label>
<input type="radio" class="ace" name="font" value="georgia"<?php echo print_font_checked( 'georgia' )?>/>
<span class="lbl"> Georgia </span>
</label></div>
<br />
<div class="radio"><label>
<input type="radio" class="ace" name="font" value="veraserif"<?php echo print_font_checked( 'veraserif' )?>/>
<span class="lbl"> Vera Serif </span>
Expand All @@ -183,7 +176,6 @@ function print_font_checked( $p_font_name ) {
<input type="radio" class="ace" name="font" value="courier"<?php echo print_font_checked( 'courier' )?>/>
<span class="lbl"> Courier </span>
</label></div>
<br />
<div class="radio"><label>
<input type="radio" class="ace" name="font" value="veramono"<?php echo print_font_checked( 'veramono' )?>/>
<span class="lbl"> Vera Mono </span>
Expand Down
97 changes: 55 additions & 42 deletions plugins/XmlImportExport/pages/config_page.php
Expand Up @@ -4,60 +4,73 @@

access_ensure_global_level( config_get( 'manage_plugin_threshold' ) );

html_page_top();
//print_manage_menu();
layout_page_header( plugin_lang_get( 'config_title' ) );

layout_page_begin( 'manage_overview_page.php' );

print_manage_menu( 'manage_plugin_page.php' );
?>

<br />
<div class="col-md-12 col-xs-12">
<div class="space-10"></div>
<div class="form-container">
<form action="<?php echo plugin_page( 'config' ) ?>" method="post">
<fieldset>
<legend>
<?php echo plugin_lang_get( 'config_title' ) ?>
</legend>
<div class="widget-box widget-color-blue2">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-exchange"></i>
<?php echo plugin_lang_get( 'config_title' ) ?>
</h4>
</div>

<?php echo form_security_field( 'plugin_XmlImportExport_config' ) ?>
<?php echo form_security_field( 'plugin_XmlImportExport_config' ) ?>
<div class="widget-body">
<div class="widget-main no-padding">
<div class="table-responsive">
<table class="table table-bordered table-condensed table-striped">

<!-- Import Access Level -->
<div class="field-container">
<label for="import_threshold">
<span><?php echo plugin_lang_get( 'import_threshold' ) ?></span>
</label>
<span class="select">
<select id="import_threshold" name="import_threshold"><?php
print_enum_string_option_list(
'access_levels',
plugin_config_get( 'import_threshold' )
);
?></select>
</span>
<span class="label-style"></span>
</div>

<tr>
<td class="category">
<?php echo plugin_lang_get( 'import_threshold' ) ?>
</td>
<td>
<select id="import_threshold" name="import_threshold" class="input-sm"><?php
print_enum_string_option_list(
'access_levels',
plugin_config_get( 'import_threshold' )
);
?></select>
</td>
</tr>
<!-- Export Access Level -->
<div class="field-container">
<label for="export_threshold">
<span><?php echo plugin_lang_get( 'export_threshold' ) ?></span>
</label>
<span class="select">
<select id="export_threshold" name="export_threshold"><?php
print_enum_string_option_list(
'access_levels',
plugin_config_get( 'export_threshold' )
);
?></select>
</span>
<span class="label-style"></span>
</div>

<!-- Update button -->
<div class="submit-button">
<input type="submit" value="<?php echo plugin_lang_get( 'action_update' ) ?>"/>
</div>
<tr>
<td class="category">
<?php echo plugin_lang_get( 'export_threshold' ) ?>
</td>
<td>
<select id="export_threshold" name="export_threshold" class="input-sm"><?php
print_enum_string_option_list(
'access_levels',
plugin_config_get( 'export_threshold' )
);
?></select>
</td>
</tr>

</table>
</div>
</div>
<div class="widget-toolbox padding-8 clearfix">
<input type="submit" class="btn btn-primary btn-white btn-round" value="<?php echo plugin_lang_get( 'action_update' ) ?>" />
</div>
</div>
</div>
</fieldset>
</form>
</div>
</div>

<?php
html_page_bottom();
layout_page_end();

0 comments on commit a09acda

Please sign in to comment.