|
29 | 29 | }} |
30 | 30 | {{=<% %>=}} |
31 | 31 | <div style="padding: 0 0.5em 0.5em 0.5em"> |
32 | | -<h3><%#str%> openai_chat, block_openai_chat <%/str%></h3> |
| 32 | +<h3><% title %></h3> |
33 | 33 | <div id="openai_chat_log" role="log"></div> |
34 | 34 | <div id="control_bar"> |
35 | 35 | <div class="openai_input_bar" id="input_bar"> |
36 | | - <textarea aria-label="<%#str%>askaquestion, block_openai_chat<%/str%>" rows=1 id="openai_input" placeholder="<%#str%>askaquestion, block_openai_chat<%/str%>" type="text" name="message" core-auto-rows [(ngModel)]="CONTENT_OTHERDATA.message"></textarea> |
| 36 | + <textarea |
| 37 | + style="background-color: white; color: black;" |
| 38 | + aria-label="<%#str%>askaquestion, block_openai_chat<%/str%>" |
| 39 | + rows=1 id="openai_input" placeholder="<%#str%>askaquestion, block_openai_chat<%/str%>" |
| 40 | + type="text" name="message" |
| 41 | + core-auto-rows |
| 42 | + [(ngModel)]="CONTENT_OTHERDATA.message"></textarea> |
| 43 | + |
| 44 | + <ion-button id="go" style="width: 1em; height: 1em; margin: 0;" |
| 45 | + core-site-plugins-call-ws |
| 46 | + name="block_openai_chat_answer" |
| 47 | + component="block_openai_chat" method="answer" samePage="true" showError="false" |
| 48 | + [params]="{contextid: <% contextid %>}" |
| 49 | + (onSuccess)="this.answer($event)" |
| 50 | + (onError)="this.answer($event)" |
| 51 | + [useOtherDataForWS]="['message']" |
| 52 | + ><img style="transform: scale(1.3)" src="<%config.wwwroot%><% pix_arrow_right %>" alt="<%#str%>askaquestion, block_openai_chat<%/str%>" class='openai_input_submit_btn_icon'> |
| 53 | + </ion-button> |
37 | 54 | </div> |
38 | | - <ion-button id="chat-send" style="width: 1em; height: 1em; margin: 0;" |
39 | | - core-site-plugins-call-ws |
40 | | - name="block_openai_chat_answer" |
41 | | - component="block_openai_chat" method="answer" samePage="true" showError="false" |
42 | | - [params]="{contextid: <% contextid %>}" |
43 | | - (onSuccess)="this.answer($event)" |
44 | | - (onError)="this.answer($event)" |
45 | | - [useOtherDataForWS]="['message']" |
46 | | - ><img style="transform: scale(1.3)" src="<%config.wwwroot%><% pix_arrow_right %>" alt="<%#str%>askaquestion, block_openai_chat<%/str%>" class='openai_input_submit_btn_icon'> |
47 | | - </ion-button> |
48 | 55 | <ion-button class='openai_input_refresh_btn' style="width: 1em; height: 1em; margin: 0;" color="secondary" |
49 | 56 | title="<%#str%>new_chat, block_openai_chat <%/str%>" id="refresh"> |
50 | 57 | <img style="transform: scale(1.3)" src="<%config.wwwroot%><% pix_refresh %>" class='openai_input_refresh_btn_icon' alt="<%#str%>new_chat, block_openai_chat <%/str%>" /> |
|
0 commit comments