Skip to content

Commit 6873047

Browse files
committed
Move the "Execute pipeline now" in the modal footer #1000
Signed-off-by: tdruez <tdruez@nexb.com>
1 parent a7845f7 commit 6873047

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

scanpipe/templates/scanpipe/modals/add_pipeline_modal.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,16 @@
2121
{% endfor %}
2222
</div>
2323
</div>
24-
<hr class="my-4">
25-
<div class="field">
26-
<label class="checkbox" for="{{ add_pipeline_form.execute_now.id_for_label }}">
27-
{{ add_pipeline_form.execute_now }}
28-
{{ add_pipeline_form.execute_now.label }}
29-
</label>
30-
</div>
3124
</section>
32-
<footer class="modal-card-foot">
33-
<button id="add-pipeline-button" name="add-pipeline-submit" class="button is-link is-no-close" type="submit">Add pipeline</button>
34-
<button class="button" type="button">Close</button>
25+
<footer class="modal-card-foot is-justify-content-space-between">
26+
<label class="checkbox" for="{{ add_pipeline_form.execute_now.id_for_label }}">
27+
{{ add_pipeline_form.execute_now }}
28+
{{ add_pipeline_form.execute_now.label }}
29+
</label>
30+
<div>
31+
<button id="add-pipeline-button" name="add-pipeline-submit" class="button is-link is-no-close" type="submit">Add pipeline</button>
32+
<button class="button" type="button">Close</button>
33+
</div>
3534
</footer>
3635
</div>
3736
</form>

scanpipe/templates/scanpipe/panels/project_pipelines.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<button class="button is-link is-outlined is-fullwidth modal-button" data-target="add-pipeline-modal" aria-haspopup="true">
1616
Add pipeline
1717
</button>
18-
{% include "scanpipe/modals/add_pipeline_modal.html" %}
1918
{% if project.can_start_pipelines %}
2019
<a class="button is-success is-fullwidth ml-2 execute-pipeline-link" href="{% url 'project_execute_pipelines' project.slug %}">
2120
<span class="icon width-1">
@@ -26,4 +25,5 @@
2625
{% endif %}
2726
{% endif %}
2827
</div>
28+
{% include "scanpipe/modals/add_pipeline_modal.html" %}
2929
</article>

0 commit comments

Comments
 (0)