|
@@ -38,10 +38,16 @@
|
|
</div>
|
|
</div>
|
|
<div class="col-4">
|
|
<div class="col-4">
|
|
<label class="mb-1 text-sm text-secondary text-left">Minutes</label>
|
|
<label class="mb-1 text-sm text-secondary text-left">Minutes</label>
|
|
- <input type="hidden" name="timeInSeconds" value="{{@$entry ? $entry->time_in_seconds : (@$defaultSeconds ?: '')}}">
|
|
|
|
|
|
+ <!--<input type="hidden" name="timeInSeconds" value="{{@$entry ? $entry->time_in_seconds : (@$defaultSeconds ?: '')}}">
|
|
<input type="number" min="1" max="20" name="timeInMinutes" class="form-control form-control-sm w-100 cm-time-value"
|
|
<input type="number" min="1" max="20" name="timeInMinutes" class="form-control form-control-sm w-100 cm-time-value"
|
|
value="{{@$entry ? round($entry->time_in_seconds / 60, 0) : (@$defaultSeconds ? $defaultSeconds/60 : '')}}"
|
|
value="{{@$entry ? round($entry->time_in_seconds / 60, 0) : (@$defaultSeconds ? $defaultSeconds/60 : '')}}"
|
|
- required>
|
|
|
|
|
|
+ required>-->
|
|
|
|
+ <select name="timeInSeconds" class="form-control form-control-sm min-width-unset" required>
|
|
|
|
+ <option value="">-- select --</option>
|
|
|
|
+ @for($i = 0; $i <= 20; $i++)
|
|
|
|
+ <option value="{{$i * 60}}">{{$i}} min{{$i !== 1 ? 's' : ''}}</option>
|
|
|
|
+ @endfor
|
|
|
|
+ </select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|