Skip to content

Commit 58e8ec9

Browse files
committed
Tomography: display by any dimension
1 parent 74890a0 commit 58e8ec9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

caterva2/services/plugins/tomography/templates/display.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<form class="d-inline-flex gap-2" hx-get="{{ href }}" hx-target="#image-div" hx-trigger="change">
2-
<select class="form-select" name="ndim" hx-on:change="updateDim(this)">
1+
<form class="d-flex gap-2" hx-get="{{ href }}" hx-target="#image-div" hx-trigger="change">
2+
<select class="form-select w-auto" name="ndim" hx-on:change="updateDim(this)">
33
{% for dim in shape %}
44
<option value="{{ loop.index0 }}" data-size="{{ dim }}">Dim {{ loop.index0 }} ({{ dim }})</option>
55
{% endfor %}
66
</select>
7-
<input class="form-control" type="number" min="0" max="{{ shape.0 - 1}}" name="i" value="0">
7+
<input class="form-control w-auto" type="number" min="0" max="{{ shape.0 - 1}}" name="i" value="0">
88
</form>
99

1010
<div hx-get="{{ href }}?i=0" hx-trigger="load" id="image-div"></div>

0 commit comments

Comments
 (0)