Skip to content
Snippets Groups Projects
Commit cdbdfd95 authored by Alex's avatar Alex
Browse files

Add logic in compute button

parent 8de8453a
No related branches found
No related tags found
1 merge request!1Include Wowa Training
Pipeline #5651 passed
......@@ -43,10 +43,17 @@
<p>
<b>AUC Roc curve</b> :
@if($wowa->roc == null)
<a class="btn btn-primary btn-sm"
href="{{ action('WowaController@computeAUCRoc', ['wowa' => $wowa]) }}">
Compute AUC Roc
</a>
@if($wowa->status == \App\Wowa::STATE_RUNNING)
<a class="btn btn-primary btn-sm" disabled
href="{{ action('WowaController@computeAUCRoc', ['wowa' => $wowa]) }}">
Compute AUC Roc
</a>
@else
<a class="btn btn-primary btn-sm"
href="{{ action('WowaController@computeAUCRoc', ['wowa' => $wowa]) }}">
Compute AUC Roc
</a>
@endif
@else
{{ $wowa->roc }}
@endif
......@@ -54,10 +61,22 @@
<p>
<b>AUC P-R curve</b> :
@if($wowa->pr == null)
<a class="btn btn-primary btn-sm"
href="{{ action('WowaController@computeAUCPR', ['wowa' => $wowa]) }}">
Compute AUC P-R
</a>
@if($wowa->status == \App\Wowa::STATE_RUNNING)
<a class="btn btn-primary btn-sm" disabled
href="{{ action('WowaController@computeAUCPR', ['wowa' => $wowa]) }}">
Compute AUC P-R
</a>
@else
<a id="pr" class="btn btn-primary btn-sm" onclick="toggleButton()"
href="{{ action('WowaController@computeAUCPR', ['wowa' => $wowa]) }}">
Compute AUC P-R
</a>
<script>
function toggleButton() {
document.getElementById("pr").setAttribute("disabled", "disabled");
}
</script>
@endif
@else
{{ $wowa->pr }}
@endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment