Skip to content

Commit ce7a007

Browse files
Hide CSV import in LTI courses
Hides the csv import functionality on the manage users screen for LTI courses (since users will be managed by LTI launches and/or membership service requests)
1 parent 3a0f896 commit ce7a007

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compair/static/modules/classlist/classlist-view-partial.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<h1>Manage Users</h1>
55
</header>
66
<div class="col-md-6 sub-nav">
7-
<span ng-show="!lti_membership_enabled">
7+
<span ng-show="!course.lti_linked">
88
<a ng-href="#/course/{{courseId}}/user/import" class="btn btn-primary">
99
<i class="fa fa-download"></i>
1010
Import Users
@@ -16,10 +16,10 @@ <h1>Manage Users</h1>
1616
</span>
1717
</div>
1818
</div>
19-
<p class="intro-text" ng-if="lti_membership_enabled">
19+
<p class="intro-text" ng-if="course.lti_linked">
2020
Your class list is managed externally. This means users need to enroll themselves by clicking a special link in your existing external course. This link sends registration information from your external course to ComPAIR that confirms the user should be enrolled. To manually update the list below to the latest enrollment numbers, click "Refresh List" below.
2121
</p>
22-
<p class="intro-text" ng-if="!lti_membership_enabled">
22+
<p class="intro-text" ng-if="!course.lti_linked">
2323
<strong>Edit or drop users from the course and manage course groups</strong> below. To make significant changes to the <em>full</em> course user list at once, click "Import Users" above and follow the directions on the next screen. To generate a file with all the currently enrolled users, click "Export Users" above.
2424
</p>
2525
<h2>Enrolled in {{course.name}}</h2>
@@ -32,15 +32,15 @@ <h3 class="col-md-2">{{ classlist.length + lti_membership_pending }} users</h3>
3232
<i class="fa fa-refresh"></i> Refresh List
3333
</a>
3434
</div>
35-
<div ng-show="!lti_membership_enabled && canCreateUsers">
35+
<div ng-show="!course.lti_linked && canCreateUsers">
3636
<enrol-component course-id="courseId"></enrol-component>
3737
</div>
3838
</div>
3939
</div>
4040
<p class="alert alert-info" ng-show="lti_membership_pending > 0">
4141
<i class="glyphicon glyphicon-info-sign"></i> Currently, <strong>{{lti_membership_pending}} user<span ng-show="lti_membership_pending != 1">s</span></strong> are pending registration (registered in your external course but not yet in ComPAIR). To register, <strong>each student must follow the link from your external course</strong> the first time they access ComPAIR. Once they have followed this link and registered, they may log in through the link or directly at this site.
4242
</p>
43-
<p class="alert alert-info" ng-show="!lti_membership_enabled && course.lti_linked">
43+
<p class="alert alert-info" ng-show="course.lti_linked && !lti_membership_enabled">
4444
<i class="glyphicon glyphicon-info-sign"></i> There may be users pending registration (registered in your external course but not yet in ComPAIR). To register, <strong>each student must follow the link from your external course</strong> the first time they access ComPAIR. Once they have followed this link and registered, they may log in through the link or directly at this site.
4545
</p>
4646

0 commit comments

Comments
 (0)