Skip to content

Commit

Permalink
Merge pull request #4583 from solgenomics/topic/solgs/html-elems-posi…
Browse files Browse the repository at this point in the history
…tioning

position html elements next to each other properly
  • Loading branch information
lukasmueller authored Jul 13, 2023
2 parents a27a8b3 + 70b4aee commit c4286d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions mason/solgs/tools/anova/analysis.mas
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ $training_pop_id => undef,

<div id="anova_canvas">

<div id="anova_select_a_trait_div" style="float:left; z-index:10; position:absolute; "></div>
<input style="position:absolute;margin-left:300px;" id="run_anova" class="btn btn-success" type="button" value="Run ANOVA" />

<div>
<div id="anova_select_a_trait_div" style="display:inline-block;"></div>
<button style="display:inline-block;" id="run_anova" class="btn btn-success" type="button">Run ANOVA</button>
</div>
<div id="anova_selected_trait_div" style="display:none">

<input type="hidden" id="anova_selected_trait_name" value="" />
Expand Down
6 changes: 3 additions & 3 deletions mason/solgs/tools/select_menu.mas
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ Isaak Y Tecle ([email protected])

<%args>
$analysis_type
$wizard_link_txt =>'Create a new list or dataset',
$wizard_link_txt => ''
$breeder_search_params =>''
</%args>
<%perl>
my $label = $analysis_type =~ s/_/ /gr;
my $analysis_abbr = $analysis_type =~ /correlation/ ? 'corr' : $analysis_type;

$wizard_link_txt = 'Create a new list or dataset' if !$wizard_link_txt;
</%perl>

<& /util/import_css.mas, paths => ['/static/css/solgs/solgs.css'] &>
<& /util/import_javascript.mas, classes => [ "solGS.Dataset", "CXGN.List", "solGS.selectMenu"] &>

<div id="select_menu">
<div class="select_menu_block" id="<% $analysis_type %>_pops_label">
<label for="<% $analysis_abbr %>_pops_label">Select a <% $label %> population</label>
<label for="<% $analysis_abbr %>_pops_label">Select a population</label>
</div>
<div class="select_menu_block" id="<% $analysis_abbr %>_pops_list"></div>
<div class="select_menu_block go_btn" id="<% $analysis_abbr %>_pop_go_btn">
Expand Down

0 comments on commit c4286d2

Please sign in to comment.