mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 12:09:02 -05:00
update: Semantic adjustment in poll/vote.
Both controller and view.
This commit is contained in:
@@ -90,8 +90,8 @@ class PollController extends Controller
|
||||
}
|
||||
|
||||
// Operate options after validation
|
||||
foreach ($request->input('option') as $option) {
|
||||
Option::findOrFail($option)->increment('votes');
|
||||
foreach ($request->input('option-id') as $id) {
|
||||
Option::findOrFail($id)->increment('votes');
|
||||
}
|
||||
|
||||
// Make voter after option operation completed
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<a class="forum-category-childs-forum col-md-4">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="option[]" value="{{ $option->id }}">
|
||||
<input type="checkbox" name="option-id[]" value="{{ $option->id }}">
|
||||
<span class="badge-user">{{ $option->name }}</span>
|
||||
</label>
|
||||
</div>
|
||||
@@ -28,7 +28,7 @@
|
||||
<a class="forum-category-childs-forum col-md-4">
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="option[]" value="{{ $option->id }}" required>
|
||||
<input type="radio" name="option-id[]" value="{{ $option->id }}" required>
|
||||
<span class="badge-user">{{ $option->name }}</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user