improved prompt form labels. fixes #52

This commit is contained in:
mic 2024-05-14 22:21:37 +02:00
parent 36b2dbf2a4
commit f978e589e7
3 changed files with 20 additions and 8 deletions

View file

@ -115,7 +115,7 @@
},
"customPrompts_form_label_Text": {
"message": "Text",
"message": "Prompt Text",
"description": ""
},
@ -125,17 +125,17 @@
},
"customPrompts_form_label_need_selected": {
"message": "Need selection",
"message": "Text selection needed",
"description": ""
},
"customPrompts_form_label_need_signature": {
"message": "Need signature",
"message": "Always add the signature",
"description": ""
},
"customPrompts_form_label_need_custom_text": {
"message": "Need custom text",
"message": "Ask for additional text",
"description": ""
},

View file

@ -93,6 +93,14 @@ table td {
padding: 8px;
}
table td.w08{
width: 8vw;
}
table td.w17{
width: 17vw;
}
table td.w19{
width: 19vw;
}
@ -101,6 +109,10 @@ table td.w25{
width: 25vw;
}
table td.w40{
width: 40vw;
}
table.prompts_list td.properties{
white-space: nowrap;
}

View file

@ -57,9 +57,9 @@ document.addEventListener('DOMContentLoaded', async () => {
//console.log('>>>>>>>>>>>>> action_output: ' + JSON.stringify(action_output));
let output = `<tr ` + ((values.is_default == 1) ? 'class="is_default"':'') + `>
<td><span class="id id_show"></span><input type="text" class="hiddendata id_output" value="` + values.id + `" /></td>
<td><span class="name name_show"></span><input type="text" class="hiddendata name_output" value="` + values.name + `" /></td>
<td><span class="text text_show"></span><textarea class="hiddendata text_output">` + values.text + `</textarea></td>
<td class="w08"><span class="id id_show"></span><input type="text" class="hiddendata id_output" value="` + values.id + `" /></td>
<td class="w08"><span class="name name_show"></span><input type="text" class="hiddendata name_output" value="` + values.name + `" /></td>
<td class="w40"><span class="text text_show"></span><textarea class="hiddendata text_output">` + values.text + `</textarea></td>
<td><span class="type_show">` + type_output + `</span>
<select class="type_output hiddendata">
<option value="0"` + ((values.type == "0") ? ' selected':'') + `>__MSG_customPrompts_add_to_menu_always__</option>
@ -68,7 +68,7 @@ document.addEventListener('DOMContentLoaded', async () => {
</select>` +
`<span class="type hiddendata"></span>
</td>
<td>
<td class="w17">
Action: <span class="action_show">` + action_output + `</span>
<select class="action_output hiddendata">
<option value="0"` + ((values.action == "0") ? ' selected':'') + `>__MSG_customPrompts_close_button__</option>