I am using Bootstrap 4 and Vue.js for populate an input form, but I can't figure out how to make the label be in line, and before, with the input type file.
<div v-for="problem in problems">
<div class="row">
<div class="col">
<form method="POST" action="/submission" enctype="multipart/form-data" class="form-group">
<!-- sending the student information -->
<input type="text" name="courseNumber" :value="courseIdSelected" style="display: none;">
<input type="text" name="assignmentNumber" :value="assignmentSelected.id" style="display: none;">
<div class="form-group form-inline">
<label :for="problem.name">Code submissions {{ problem.name }}</label>
<input type="file" name="document" :id="problem.name" class="form-control-file"/>
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary"/>
</div>
</form>
</div>
</div>
</div>
Is there some solution by just using some Bootstrap class, or I would need to change the style (CSS) to make it show the label in the same line as the input.
Here is a screenshot:
