-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3080 from dodona-edu/feature/full-evaluation-stepper
Make evaluation creation a full stepper
- Loading branch information
Showing
29 changed files
with
472 additions
and
409 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,10 @@ | |
|
||
a { | ||
color: inherit; | ||
&.disabled { | ||
cursor: default; | ||
color: $text-muted; | ||
} | ||
} | ||
|
||
.answer { | ||
|
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,9 +1,9 @@ | ||
import { initDeadlinePicker } from "series.js"; | ||
import { interceptAddMultiUserClicks, initCheckboxes, initCheckbox } from "evaluation.ts"; | ||
import { initCheckboxes, initCheckbox, initEvaluationStepper } from "evaluation.ts"; | ||
import FeedbackActions from "feedback/actions"; | ||
|
||
window.dodona.initDeadlinePicker = initDeadlinePicker; | ||
window.dodona.initCheckboxes = initCheckboxes; | ||
window.dodona.initCheckbox = initCheckbox; | ||
window.dodona.interceptAddMultiUserClicks = interceptAddMultiUserClicks; | ||
window.dodona.initCheckboxes = initCheckboxes; | ||
window.dodona.FeedbackActions = FeedbackActions; | ||
window.dodona.initEvaluationStepper = initEvaluationStepper; |
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<div class="stepper-part evaluation-user-select"> | ||
<div class="row"> | ||
<div class="col-lg-6 col-md-12 order-lg-1"> | ||
<div class="callout callout-info"> | ||
<h4><%= t('evaluations.add_users.explanation_title') %></h4> | ||
<p><%= t('evaluations.add_users.explanation_part1') %></p> | ||
<p><%= t('evaluations.add_users.explanation_part2') %></p> | ||
</div> | ||
</div> | ||
<div class="col-lg-6 col-md-12 order-lg-0"> | ||
<div class="card-subtitle"> | ||
<h4><%= t('evaluations.edit_users.mass_edit') %></h4> | ||
</div> | ||
<div class="row"> | ||
<div class="col-6"> | ||
<div class="user-select-option"> | ||
<%= link_to set_multi_user_evaluation_path(@evaluation, type: 'enrolled', format: :js) do %> | ||
<%= t('evaluations.add_users.users_in_course_html', count: @user_count_course) %> | ||
<div class="clearfix"></div> | ||
<i class="loader mdi mdi-spin mdi-loading hidden"></i> | ||
<div class="button btn-text"><%= t('.select_users') %></div> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="col-6"> | ||
<div class="user-select-option"> | ||
<%= link_to set_multi_user_evaluation_path(@evaluation, type: 'submitted', format: :js) do %> | ||
<%= t('evaluations.add_users.users_submitted_html', count: @user_count_series) %> | ||
<div class="clearfix"></div> | ||
<i class="loader mdi mdi-spin mdi-loading hidden"></i> | ||
<div class="button btn-text"><%= t('.select_users') %></div> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
<p class="selected-users"> | ||
<span id="users-count-wrapper"> | ||
<%= t("evaluations.edit_users.users_selected_html", count: @evaluation.users.count) %> | ||
</span> | ||
<%= link_to t('evaluations.edit_users.clear'), set_multi_user_evaluation_path(@evaluation, type: 'none', format: :js), remote: true, method: :post %>. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="stepper-part stepper-border"> | ||
<div class="card-supporting-text"> | ||
<%= render partial: 'layouts/searchbar', locals: { | ||
baseUrl: edit_evaluation_url(@evaluation), | ||
eager: false, | ||
course_labels: @course_labels, | ||
institutions: Institution.of_course_by_members(@course), | ||
} %> | ||
<div id="users-table-wrapper"> | ||
<%= render partial: 'members_table', | ||
locals: { | ||
course_memberships: @course_memberships, | ||
pagination_opts: @pagination_opts, | ||
confirm: false | ||
} %> | ||
</div> | ||
</div> | ||
</div> |
This file was deleted.
Oops, something went wrong.
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.