-
Notifications
You must be signed in to change notification settings - Fork 0
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
94 additions
and
70 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
define([ | ||
'core/js/adapt', | ||
'./textEntryAudioView' | ||
], function(Adapt, TextEntryAudioView) { | ||
'./textEntryAudioView', | ||
'core/js/models/componentModel' | ||
], function(Adapt, TextEntryAudioView, ComponentModel) { | ||
|
||
return Adapt.register('textEntry-audio', { | ||
view: TextEntryAudioView | ||
view: TextEntryAudioView, | ||
model: ComponentModel.extend({}) | ||
}); | ||
|
||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
<div class="textEntry-audio-inner component-inner"> | ||
<div class="textEntry-audio-inner component__inner"> | ||
{{> component this}} | ||
<div class="textEntry-audio-widget component-widget"> | ||
<div class="textEntry-audio-widget component__widget"> | ||
<div class="textEntry-audio-input"> | ||
<textarea placeholder="{{compile placeholder}}" class="textEntry-audio-item-textbox" cols="2" rows="10"{{#if _characterLimit._isEnabled}} maxlength={{_characterLimit._max}}{{/if}}></textarea> | ||
</div> | ||
{{#if _characterLimit._isEnabled}} | ||
<div class="textEntry-audio-counter"></div> | ||
{{/if}} | ||
</div> | ||
<div class="buttons"> | ||
<div class="buttons-inner"> | ||
<div class="buttons-cluster clearfix"> | ||
<button class="{{#if _canShowFeedback}}buttons-action{{else}}buttons-action-fullwidth{{/if}}" aria-label="{{_buttons._submit.ariaLabel}}"> | ||
{{_buttons._submit.buttonText}} | ||
</button> | ||
{{#if _canShowFeedback}} | ||
<button class="buttons-feedback" aria-label="{{_buttons._showFeedback.ariaLabel}}" disabled="true"> | ||
{{_buttons._showFeedback.buttonText}} | ||
</button> | ||
{{/if}} | ||
</div> | ||
|
||
<div class="btn__container"> | ||
<div class="btn__response-container"> | ||
|
||
<button class="btn-text btn__action{{#if _canShowFeedback}}{{else}} is-fullwidth{{/if}} is-disabled js-btn-action" aria-label="{{_buttons._submit.ariaLabel}} disabled="true""> | ||
{{_buttons._submit.buttonText}} | ||
</button> | ||
|
||
{{#if _canShowFeedback}} | ||
<button class="btn-text btn__feedback is-disabled js-btn-feedback" aria-label="{{_buttons._showFeedback.ariaLabel}}" disabled="true"> | ||
{{_buttons._showFeedback.buttonText}} | ||
</button> | ||
{{/if}} | ||
|
||
</div> | ||
</div> | ||
|
||
</div> |
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