Skip to content

Commit

Permalink
Fuss with formatting of import_parties_2.html
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-ide committed Jan 3, 2024
1 parent 0b49127 commit 29a1be0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions webapp/home/home_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from flask_login import current_user

import psutil
from pympler import muppy, summary
from pympler import muppy, summary, asizeof

from webapp.home.utils.hidden_buttons import is_hidden_button, handle_hidden_buttons

Expand Down Expand Up @@ -108,8 +108,6 @@ def log_available_memory():


def log_profile_details(all_objects_before, all_objects_after):
from pympler import asizeof

ids_before = {id(obj) for obj in all_objects_before}
ids_after = {id(obj) for obj in all_objects_after}

Expand Down
8 changes: 4 additions & 4 deletions webapp/home/templates/import_parties_2.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<div class="col-md-10">
<form method="POST" action="" class="form" role="form">
{{ form.csrf_token }}
<table>
<table width="100%">

<script>
function choose_options(all) {
Expand Down Expand Up @@ -97,9 +97,9 @@
}
</script>
<tr><h5>Select responsible parties to import from "{{ source_filename }}":
&nbsp;&nbsp;&nbsp;&nbsp;[&nbsp;<button class="link" type="button" onclick="choose_options(true); return false;">Select All</button>&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;[&nbsp;<button class="link" type="button" onclick="choose_options(false); return false;">Clear All</button>&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;[&nbsp;<button class="link" type="button" onclick="toggle_order(); return false;">Toggle Sort</button>&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="white-space: nowrap;">[ <button class="link" type="button" onclick="choose_options(true); return false;">Select All</button>&nbsp;]</span>
&nbsp;&nbsp;<span style="white-space: nowrap;">[&nbsp;<button class="link" type="button" onclick="choose_options(false); return false;">Clear All</button>&nbsp;]</span>
&nbsp;&nbsp;<span style="white-space: nowrap;">[&nbsp;<button class="link" type="button" onclick="toggle_order(); return false;">Toggle Sort</button>&nbsp;]</span>
<input type="hidden" id="sorted" value="false" >
</h5>
</tr>
Expand Down

0 comments on commit 29a1be0

Please sign in to comment.