File tree Expand file tree Collapse file tree 8 files changed +36
-36
lines changed
management/assets/src/views/manage-content-page/wizards
style_guide/assets/src/views Expand file tree Collapse file tree 8 files changed +36
-36
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ import pointsIcon from '../views/points-icon';
4646import authMessage from '../views/auth-message' ;
4747import kBreadcrumbs from '../views/k-breadcrumbs' ;
4848import kCheckbox from '../views/k-checkbox' ;
49- import kRadio from '../views/k-radio' ;
49+ import kRadioButton from '../views/k-radio-button ' ;
5050import router from '../router' ;
5151import responsiveWindow from '../mixins/responsive-window' ;
5252import responsiveElement from '../mixins/responsive-element' ;
@@ -103,7 +103,7 @@ export default {
103103 authMessage,
104104 kBreadcrumbs,
105105 kCheckbox,
106- kRadio ,
106+ kRadioButton ,
107107 } ,
108108 router,
109109 mixins : {
Original file line number Diff line number Diff line change 5050 * Used to display all options
5151 */
5252 export default {
53- name: ' k-radio' ,
53+ name: ' k-radio-button ' ,
5454 props: {
5555 /**
5656 * Label
Original file line number Diff line number Diff line change 22
33 <core-modal :title =" $tr('examVisibility')" @cancel =" close" >
44 <p v-html =" $trHtml('shouldBeVisible', { examTitle })" ></p >
5- <k-radio
5+ <k-radio-button
66 :label =" $tr('entireClass', { className })"
77 :radiovalue =" true"
88 v-model =" classIsSelected"
3333 import { CollectionKinds } from ' kolibri.coreVue.vuex.constants' ;
3434 import coreModal from ' kolibri.coreVue.components.coreModal' ;
3535 import kButton from ' kolibri.coreVue.components.kButton' ;
36- import kRadio from ' kolibri.coreVue.components.kRadio ' ;
36+ import kRadioButton from ' kolibri.coreVue.components.kRadioButton ' ;
3737 import uiSelect from ' keen-ui/src/UiSelect' ;
3838 export default {
3939 name: ' changeExamVisibilityModal' ,
5050 components: {
5151 coreModal,
5252 kButton,
53- kRadio ,
53+ kRadioButton ,
5454 uiSelect,
5555 },
5656 props: {
Original file line number Diff line number Diff line change 33 <core-modal :title =" $tr('moveLearners')"
44 @cancel =" close" >
55 <p >{{ $tr('moveThe') }} <strong >{{ $tr('learners', {count: usersToMove.length }) }}</strong > {{ $tr('to') }}:</p >
6- <k-radio
6+ <k-radio-button
77 v-for =" group in groupsExcludingCurrent"
88 :key =" group.id"
99 :radiovalue =" group.id"
1313
1414 <div v-if =" !isUngrouped" >
1515 <hr >
16- <k-radio
16+ <k-radio-button
1717 radiovalue =" ungrouped"
1818 :label =" $tr('ungrouped')"
1919 v-model =" groupSelected"
3939 import * as groupActions from ' ../../state/actions/group' ;
4040 import coreModal from ' kolibri.coreVue.components.coreModal' ;
4141 import kButton from ' kolibri.coreVue.components.kButton' ;
42- import kRadio from ' kolibri.coreVue.components.kRadio ' ;
42+ import kRadioButton from ' kolibri.coreVue.components.kRadioButton ' ;
4343 export default {
4444 name: ' moveLearnersModal' ,
4545 $trs: {
5454 components: {
5555 coreModal,
5656 kButton,
57- kRadio ,
57+ kRadioButton ,
5858 },
5959 props: {
6060 groupId: {
Original file line number Diff line number Diff line change 1010
1111 <div v-else >
1212 <h2 >{{ $tr('drivesFound') }}</h2 >
13- <k-radio
13+ <k-radio-button
1414 v-for =" drive in enabledDrives"
1515 :key =" drive.id"
1616 :label =" genEnabledDriveLabel(drive)"
1717 :radiovalue =" drive.id"
1818 v-model =" selectedDrive"
1919 @change =" $emit('change', drive.id)"
2020 />
21- <k-radio
21+ <k-radio-button
2222 v-for =" drive in disabledDrives"
2323 :key =" drive.id"
2424 :label =" genDisabledDriveLabel(drive)"
3434
3535<script >
3636
37- import kRadio from ' kolibri.coreVue.components.kRadio ' ;
37+ import kRadioButton from ' kolibri.coreVue.components.kRadioButton ' ;
3838
3939 export default {
40- components: { kRadio },
40+ components: { kRadioButton },
4141 props: {
4242 value: {
4343 type: String ,
Original file line number Diff line number Diff line change 11< template >
22
33 < div >
4- < k-radio
4+ < k-radio-button
55 label ="Radio 1 "
66 :radiovalue ="1 "
77 v-model ="model1 "
88 >
9- </ k-radio >
10- < k-radio
9+ </ k-radio-button >
10+ < k-radio-button
1111 label ="Radio 2 "
1212 :radiovalue ="2 "
1313 v-model ="model1 "
1414 >
15- </ k-radio >
16- < k-radio
15+ </ k-radio-button >
16+ < k-radio-button
1717 label ="Radio 3 "
1818 :radiovalue ="3 "
1919 v-model ="model1 "
2020 >
21- </ k-radio >
22- < k-radio
21+ </ k-radio-button >
22+ < k-radio-button
2323 label ="Radio 4 Disabled "
2424 :radiovalue ="4 "
2525 :disabled ="true "
2626 v-model ="model2 "
2727 >
28- </ k-radio >
29- < k-radio
28+ </ k-radio-button >
29+ < k-radio-button
3030 label ="Radio 5 Disabled "
3131 :radiovalue ="5 "
3232 :disabled ="true "
3333 v-model ="model2 "
3434 >
35- </ k-radio >
35+ </ k-radio-button >
3636 </ div >
3737
3838</ template >
Original file line number Diff line number Diff line change 11<template >
22
3- <page-template title =" Radios " :completed =" false" >
3+ <page-template title =" Radio Buttons " :completed =" false" >
44
5- <h2 ><code >{{ kRadioApi .name }}</code > API</h2 >
6- <component-docs :api =" kRadioApi " />
5+ <h2 ><code >{{ kRadioButtonApi .name }}</code > API</h2 >
6+ <component-docs :api =" kRadioButtonApi " />
77
88 <h2 >Code Example</h2 >
99 <vue-example :code =" example" />
1212 <h3 >Usage</h3 >
1313 <ul >
1414 <li >Should be used when all options must be visible. If not, use a select.</li >
15- <li >Selected state of radios should denote positives (yes/selected)</li >
15+ <li >Selected state of radio buttons should denote positives (yes/selected)</li >
1616 <li >Should not be used to filter tables or lists</li >
1717 <li >Should not be nested</li >
1818 </ul >
4040 import pageTemplate from ' ../../shell/page-template' ;
4141
4242 import example from ' raw-loader!./example.html' ;
43- import kRadioApi from ' !vue-doc!kolibri.coreVue.components.kRadio ' ;
43+ import kRadioButtonApi from ' !vue-doc!kolibri.coreVue.components.kRadioButton ' ;
4444
4545 import FullVue from ' vue/dist/vue.common' ;
46- import kRadio from ' kolibri.coreVue.components.kRadio ' ;
47- FullVue .component (' k-radio' , kRadio );
46+ import kRadioButton from ' kolibri.coreVue.components.kRadioButton ' ;
47+ FullVue .component (' k-radio-button ' , kRadioButton );
4848
4949 export default {
5050 components: {
5353 vueExample,
5454 },
5555 data : () => ({
56- kRadioApi ,
56+ kRadioButtonApi ,
5757 example,
5858 }),
5959 };
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import buttonsPage from '../content/buttons';
44import breadcrumbsPage from '../content/breadcrumbs' ;
55import navbarPage from '../content/navbar' ;
66import checkboxesPage from '../content/checkboxes' ;
7- import radiosPage from '../content/radios ' ;
7+ import radioButtonsPage from '../content/radio-buttons ' ;
88import homePage from '../content/style-guide-home' ;
99
1010function sortSectionItems ( items ) {
@@ -55,10 +55,10 @@ const navMenu = [
5555 } ,
5656 } ,
5757 {
58- itemName : 'Radios ' ,
58+ itemName : 'Radio Buttons ' ,
5959 itemRoute : {
60- path : `/components/radios ` ,
61- component : radiosPage ,
60+ path : `/components/radio-buttons ` ,
61+ component : radioButtonsPage ,
6262 } ,
6363 } ,
6464 ] ) ,
You can’t perform that action at this time.
0 commit comments