diff options
| author | Camil Staps | 2016-09-06 19:56:01 +0200 | 
|---|---|---|
| committer | Camil Staps | 2016-09-06 19:56:01 +0200 | 
| commit | 45e2171ab1c820be52326c827ae30539f0721d8f (patch) | |
| tree | e0448cfd5d9956e5eb85ecd917706d041aabdafe /resources/views/trainer.blade.php | |
| parent | Update demo link (diff) | |
Only show roots with active verbs on trainer page
Diffstat (limited to 'resources/views/trainer.blade.php')
| -rw-r--r-- | resources/views/trainer.blade.php | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/resources/views/trainer.blade.php b/resources/views/trainer.blade.php index 4c788f0..c4452f6 100644 --- a/resources/views/trainer.blade.php +++ b/resources/views/trainer.blade.php @@ -28,11 +28,13 @@ use HebrewParseTrainer\Tense;  	<div class="form-group">  		<h3>Roots</h3> +		<select name="root" class="reload-verb form-control" multiple="multiple">  		@foreach (Root::orderBy('root_kind_id')->get() as $root) -			<div class="checkbox"> -				<label class="hebrew"><input class="reload-verb" type="checkbox" name="root" value="{{{ $root->root }}}" checked="checked"/> {{{ $root->root }}} ({{{ $root->kind->name }}})</label> -			</div> +			@if ($root->verbs()->where('active', 1)->count() > 0) +					<option class="hebrew" value="{{{ $root->root }}}" selected="selected">{{{ $root->root }}} ({{{ $root->kind->name }}})</option> +			@endif  		@endforeach +		</select>  	</div>  	<div class="form-group"> | 
