-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac60be6
commit 82454ee
Showing
19 changed files
with
81 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
@if(!$onlyInput) | ||
@if(!$onlyInput && !$attributes->get('hidden')) | ||
<div class="input-field col s{{$s}} m{{$m}} l{{$l}} xl{{$xl}}"> | ||
@endif | ||
<textarea | ||
id="{{$id}}" | ||
class="materialize-textarea validate @error($id) invalid @enderror" | ||
{{-- Default values + other provided attributes --}} | ||
{{$attributes->whereDoesntStartWith('value')->merge([ | ||
'name' => $id, | ||
'class' => "materialize-textarea validate" | ||
])}}>{{old($id) ?? $attributes->get('value')}}</textarea> | ||
'type' => 'text', | ||
'name' => $id | ||
])}} | ||
>{{ $slot }}</textarea> | ||
@if(!$attributes->get('hidden') && !$withoutLabel) | ||
<label for="{{$id}}">{{$label}}</label> | ||
@endif | ||
@if($helper ?? null) | ||
<span class="helper-text">{{ $helper }}</span> | ||
@endif | ||
@error($id) | ||
<span class="helper-text" data-error="{{ $message }}"></span> | ||
@enderror | ||
@if(!$onlyInput) | ||
@if(!$onlyInput && !$attributes->get('hidden')) | ||
</div> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
resources/views/secretariat/evaluation-form/course.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
<div class="row course" id="course_{{$index}}" style="margin:0"> | ||
<x-input.text id="courses[{{$index}}][name]" | ||
<x-input.textarea id="courses[{{$index}}][name]" | ||
l=5 | ||
text="Kurzus neve" | ||
value="{{ $value ? $value['name'] ?? '' : '' }}" | ||
required /> | ||
<x-input.text id="courses[{{$index}}][code]{{ $index }}" | ||
required >{{ $value ? $value['name'] ?? '' : '' }}</x-input.textarea> | ||
<x-input.textarea id="courses[{{$index}}][code]{{ $index }}" | ||
l=3 | ||
text="Kurzus kódja" | ||
value="{{ $value ? $value['code'] ?? '' : '' }}" | ||
required /> | ||
required >{{ $value ? $value['code'] ?? '' : '' }}</x-input.textarea> | ||
<x-input.text id="courses[{{$index}}][grade]" | ||
l=3 s=11 | ||
type="number" | ||
min="1" | ||
max="5" | ||
text="Jegy" | ||
value="{{ $value ? $value['grade'] ?? '' : '' }}" | ||
:value="($value ? $value['grade'] ?? '' : '')" | ||
helper="(ha ismert)" /> | ||
<x-input.button type="button" s="1" class="right red" floating icon="delete" onclick="removeCourse({{$index}})"/> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.