-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
579 additions
and
43 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
import * as Mithril from 'mithril'; | ||
import Component from 'flarum/common/Component'; | ||
import PollOptionLabel from './PollOptionLabel'; | ||
import PollOptionDescription from './PollOptionDescription'; | ||
import PollOptionInput from './PollOptionInput'; | ||
|
||
export default class PollOption extends Component { | ||
view(): Mithril.Children { | ||
return ( | ||
<label className="PollOption-tmp"> | ||
<PollOptionInput id={1} isResult={false} name="privacy-setting" value="Private to Project Members Nice" /> | ||
<span className="PollOption-information"> | ||
<PollOptionLabel text="Poll Option Label" /> | ||
<PollOptionDescription text="Poll Option Description" /> | ||
</span> | ||
</label> | ||
); | ||
} | ||
view(): Mithril.Children { | ||
const option = this.attrs.option; | ||
return ( | ||
<label className="PollOption-tmp"> | ||
<PollOptionInput id={option.id()} isResult={false} name="vote" value="Vote for this option"/> | ||
<span className="PollOption-information"> | ||
<PollOptionLabel id={option.id()} text={option.answer()}/> | ||
</span> | ||
</label> | ||
); | ||
} | ||
} |
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