Skip to content

Commit

Permalink
Languages (#154)
Browse files Browse the repository at this point in the history
* copy stuffs to clipboard

* moved to correct pkg json

* delete react

* change languages

* updated language codes
  • Loading branch information
BenjaminCall authored and jbasdf committed Feb 24, 2017
1 parent c1d7e23 commit 55c1623
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
6 changes: 3 additions & 3 deletions client/js/_author/components/assessments/editable_item.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export default function EditableItem(props) {

<label htmlFor={`language_${props.itemIndex}`}className="c-dropdown c-dropdown--small u-ml-sm">
<select name="" id={`language_${props.itemIndex}`}>
<option value="">English</option>
<option value="">Hindi</option>
<option value="">Telugu</option>
<option value="639-2%3AENG%40ISO">English</option>
<option value="639-2%3AHIN%40ISO">Hindi</option>
<option value="639-2%3ATEL%40ISO">Telugu</option>
</select>
</label>
</div>
Expand Down
6 changes: 3 additions & 3 deletions client/js/_author/components/assessments/new_item_form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ export default class newItemForm extends React.Component {
id="questionType"
>
<option value="english">Select a language</option>
<option value="english">English</option>
<option value="french">French</option>
<option value="spanish">Spanish</option>
<option value="639-2%3AENG%40ISO">English</option>
<option value="639-2%3AHIN%40ISO">Hindi</option>
<option value="639-2%3ATEL%40ISO">Telugu</option>
</select>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';
import genusTypes from '../../../../../constants/genus_types';

export default function questionSettings(props) {

function checkboxOptions() {
return (props.genusTypeId === genusTypes.item.multipleChoice ?
<div className="o-right">
Expand Down
16 changes: 16 additions & 0 deletions client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1960,6 +1960,12 @@ cookiejar@^2.0.6:
version "2.1.0"
resolved "https://registry.yarnpkg.com/cookiejar/-/cookiejar-2.1.0.tgz#86549689539b6d0e269b6637a304be508194d898"

copy-to-clipboard@^3:
version "3.0.5"
resolved "https://registry.yarnpkg.com/copy-to-clipboard/-/copy-to-clipboard-3.0.5.tgz#4cd40e7c2ee159bc72d4f06b5bec8f9e0a1a3442"
dependencies:
toggle-selection "^1.0.3"

core-js@^1.0.0:
version "1.2.7"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"
Expand Down Expand Up @@ -6584,6 +6590,12 @@ react-base16-styling@^0.4.1:
lodash.flow "^3.3.0"
pure-color "^1.2.0"

react-copy-to-clipboard@^4.2.3:
version "4.2.3"
resolved "https://registry.yarnpkg.com/react-copy-to-clipboard/-/react-copy-to-clipboard-4.2.3.tgz#268c5a0fbde9a95d96145014e7f85110b0e7fb8e"
dependencies:
copy-to-clipboard "^3"

react-deep-force-update@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/react-deep-force-update/-/react-deep-force-update-2.0.1.tgz#4f7f6c12c3e7de42f345992a3c518236fa1ecad3"
Expand Down Expand Up @@ -8073,6 +8085,10 @@ to-fast-properties@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.2.tgz#f3f5c0c3ba7299a7ef99427e44633257ade43320"

toggle-selection@^1.0.3:
version "1.0.5"
resolved "https://registry.yarnpkg.com/toggle-selection/-/toggle-selection-1.0.5.tgz#726c703de607193a73c32c7df49cd24950fc574f"

touch@0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/touch/-/touch-0.0.2.tgz#a65a777795e5cbbe1299499bdc42281ffb21b5f4"
Expand Down

0 comments on commit 55c1623

Please sign in to comment.