Skip to content

Commit

Permalink
removed unwanted linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iamshobhraj committed Nov 9, 2024
1 parent 7652936 commit 3370650
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@
v-else
id="select-learnergroup"
>
<p>
{{ $tr('destinationExplanation', { classroomName: selectedClassroomName }) }}
</p>
<p>
{{ assignmentQuestion }}
</p>
<p>{{ $tr('destinationExplanation', { classroomName: selectedClassroomName }) }}</p>
<p>{{ assignmentQuestion }}</p>
<RecipientSelector
v-model="selectedCollectionIds"
:groups="availableGroups"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
icon="group"
/>
</KCheckbox>

<!-- Individual learners -->
<IndividualLearnerSelector
:isVisible="individualSelectorIsVisible"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{{ noDrivesText }}
</UiAlert>
</div>

<div v-else>
<h2>
{{ $tr('drivesFound') }}
Expand Down
8 changes: 8 additions & 0 deletions kolibri/plugins/facility/assets/src/views/UserCreatePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<h1>
{{ $tr('createNewUserHeader') }}
</h1>

<section>
<FullNameTextbox
ref="fullNameTextbox"
Expand All @@ -25,6 +26,7 @@
:isValid.sync="fullNameValid"
:shouldValidate="formSubmitted"
/>

<UsernameTextbox
ref="usernameTextbox"
:disabled="busy"
Expand All @@ -50,6 +52,7 @@
:label="coreString('userTypeLabel')"
:options="userTypeOptions"
/>

<fieldset
v-if="coachIsSelected"
class="coach-selector"
Expand All @@ -71,26 +74,31 @@
/>
</KRadioButtonGroup>
</fieldset>

<IdentifierTextbox
:value.sync="idNumber"
:disabled="busy"
/>

<BirthYearSelect
:value.sync="birthYear"
:disabled="busy"
class="select"
/>

<GenderSelect
:value.sync="gender"
:disabled="busy"
class="select"
/>

<ExtraDemographics
v-model="extraDemographics"
:facilityDatasetExtraFields="facilityConfig.extra_fields"
:disabled="busy"
/>
</section>

<div class="buttons">
<KButtonGroup style="margin-top: 8px">
<KButton
Expand Down
12 changes: 12 additions & 0 deletions kolibri/plugins/facility/assets/src/views/UserEditPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<h1>
{{ $tr('editUserDetailsHeader') }}
</h1>

<section>
<FullNameTextbox
ref="fullNameTextbox"
Expand All @@ -22,6 +23,7 @@
:isValid.sync="fullNameValid"
:shouldValidate="formSubmitted"
/>

<UsernameTextbox
ref="usernameTextbox"
:disabled="formDisabled"
Expand All @@ -31,21 +33,25 @@
:isUniqueValidator="usernameIsUnique"
:errors.sync="caughtErrors"
/>

<template v-if="editingSuperAdmin">
<h2 class="header user-type">
{{ coreString('userTypeLabel') }}
</h2>

<UserTypeDisplay
:userType="kind"
class="user-type"
/>

<KExternalLink
v-if="devicePermissionsPageLink"
class="super-admin-description"
:text="editingSelf ? $tr('viewInDeviceTabPrompt') : $tr('changeInDeviceTabPrompt')"
:href="devicePermissionsPageLink"
/>
</template>

<template v-else>
<KSelect
v-model="typeSelected"
Expand All @@ -54,6 +60,7 @@
:label="coreString('userTypeLabel')"
:options="userTypeOptions"
/>

<fieldset
v-if="coachIsSelected"
class="coach-selector"
Expand All @@ -76,26 +83,31 @@
</KRadioButtonGroup>
</fieldset>
</template>

<IdentifierTextbox
:value.sync="idNumber"
:disabled="formDisabled"
/>

<BirthYearSelect
:value.sync="birthYear"
:disabled="formDisabled"
class="select"
/>

<GenderSelect
:value.sync="gender"
:disabled="formDisabled"
class="select"
/>

<ExtraDemographics
v-model="extraDemographics"
:facilityDatasetExtraFields="facilityConfig.extra_fields"
:disabled="formDisabled"
/>
</section>

<p v-if="willBeLoggedOut">
{{ $tr('forceLogoutWarning') }}
</p>
Expand Down

0 comments on commit 3370650

Please sign in to comment.