Skip to content

Commit

Permalink
Merge branch 'Patient_User' into PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-png authored May 11, 2018
2 parents f7b1fbd + 68c732e commit ada6f7e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions resources/views/workflow.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

@section('content')
{{--makes inputs for all the required variables--}}
<?php if (!empty($decodeRes)): ?>
@if (!empty($decodeRes))
<div class="container">
<h3><?php echo $decodeRes['title'] ?></h3>
</div>
Expand All @@ -28,10 +28,10 @@
{{ csrf_field() }}
<input type="hidden" name="model" value="<?php echo $_GET['model'] ?>">
<ul class="list-group">
<?php foreach ($decodeRes['variables'] as $item): ?>
@foreach ($decodeRes['variables'] as $item)
<li class="list-group-item">
{{--creates input for continuous variable--}}
<?php if ($item['type']=='continuous'): ?>
@if ($item['type']=='continuous')
<?php
echo $item['title'].": ";
$min = $item['options']['min'];
Expand Down Expand Up @@ -70,25 +70,25 @@
slider<?php echo $item['id']; ?>.noUiSlider.set(this.value);
});
</script>
<?php endif; ?>
@endif
{{--creates input for categorical variable--}}
<?php if ($item['type']=='categorical'): ?>
@if ($item['type']=='categorical')
<?php echo $item['title'].": ";?>
<br>

<?php foreach ($item['options'] as $value): ?>
@foreach ($item['options'] as $value)
<input type="radio" name="answer[<?php echo $item['id']; ?>]" value="<?php echo $value['title']; ?>" >
<?php echo $value['title']; ?>
<br>
<?php endforeach; ?>
@endforeach

<?php endif; ?>
@endif
</li>
<?php endforeach; ?>
@endforeach
</ul>
<br>
<button type="submit" class="btn btn-primary btn-sm">submit</button>
</form>
</div>
<?php endif; ?>
@endif
@endsection

0 comments on commit ada6f7e

Please sign in to comment.