2021-03-10 20:21:27 +00:00
|
|
|
<div class="height_limiter">
|
2014-07-29 18:00:39 +00:00
|
|
|
<!-- The first 'sample' prompt is the current one; the remainders are samples. This ought to be cleaned up. -->
|
2020-12-02 20:07:48 +00:00
|
|
|
<div class="current_prompt" style="min-height: 7.5em;" ng-style="{'background-color': terminalBackgroundColor}">
|
2021-03-10 20:21:27 +00:00
|
|
|
<div class="prompt_demo_choice_label" style="color: #FFF;">{{ selectedPrompt.name }}</div>
|
2021-04-14 17:25:48 +00:00
|
|
|
<div style='display: flex'>
|
|
|
|
<div ng-bind-html='selectedPrompt.demo | to_trusted' style='flex-grow: 1' class="prompt_demo unbordered"></div>
|
|
|
|
<div ng-if='selectedPrompt.right' title="right prompt for {{selectedPrompt.name }}" ng-bind-html='selectedPrompt.right | to_trusted' class="prompt_demo unbordered" ng-click="selectPrompt(prompt)"></div>
|
|
|
|
</div>
|
2022-03-26 20:03:27 +00:00
|
|
|
<div style="position: absolute; right: 5px; bottom: 5px;">
|
|
|
|
<button class="save_button"
|
2021-03-10 20:21:27 +00:00
|
|
|
ng-show="showSaveButton"
|
|
|
|
style="color: #CCC"
|
2022-03-26 20:03:27 +00:00
|
|
|
ng-click="setPrompt()">{{ savePromptButtonTitle }}</button>
|
2014-07-29 18:00:39 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-10 20:21:27 +00:00
|
|
|
<div style="margin: 10px 15px 7px 15px; padding-bottom: 10px; border-bottom: solid 1px #999">Preview a prompt below:</div>
|
2014-07-29 18:00:39 +00:00
|
|
|
<div class="prompt_choices_scrollview">
|
|
|
|
<div class="prompt_choices_list">
|
2021-03-10 20:21:27 +00:00
|
|
|
<div ng-repeat="prompt in samplePrompts">
|
|
|
|
<div class="prompt_demo_choice_label">{{ prompt.name }}</div>
|
2021-04-14 17:25:48 +00:00
|
|
|
<div ng-if='prompt.right' style='display: flex;'>
|
|
|
|
<div ng-bind-html='prompt.demo | to_trusted' class="prompt_demo" style='flex-grow: 1' ng-click="selectPrompt(prompt)"></div>
|
|
|
|
<div ng-if='prompt.right' title="right prompt for {{prompt.name}}" ng-bind-html='prompt.right | to_trusted' class="prompt_demo" ng-click="selectPrompt(prompt)"></div>
|
|
|
|
</div>
|
|
|
|
<div ng-if='!prompt.right' ng-bind-html='prompt.demo | to_trusted' class="prompt_demo" ng-click="selectPrompt(prompt)"></div>
|
2021-03-10 20:21:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-08-16 18:32:58 +00:00
|
|
|
</div>
|
2014-07-29 18:00:39 +00:00
|
|
|
</div>
|