mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-16 18:48:28 +00:00
Added the value card sort to the BeyondFacts Lab (#1206)
This commit is contained in:
1 parent
1361b984eb
commit
3ca4b3878b
42 files changed
+2111
-114
No files matched your search
@@ -0,0 +1,27 @@
|
||||
namespace AIStudio.Assistants.BeyondFactsLab;
|
||||
|
||||
public static class BflFormSectionExtensions
|
||||
{
|
||||
private static string TB(string fallbackEN) => Tools.PluginSystem.I18N.I.T(fallbackEN, typeof(BflFormSectionExtensions).Namespace, nameof(BflFormSectionExtensions));
|
||||
|
||||
/// <param name="section">The section.</param>
|
||||
extension(BflFormSection section)
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the heading of the section, in the words of the person; empty for fields without a section.
|
||||
/// </summary>
|
||||
public string Title => section switch
|
||||
{
|
||||
BflFormSection.WHAT_MATTERS_TO_ME => TB("What matters to me"),
|
||||
BflFormSection.WHAT_TOUCHES_ME => TB("What touches me"),
|
||||
BflFormSection.WHAT_MOVES_OTHERS => TB("What moves others"),
|
||||
|
||||
_ => string.Empty,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether the section holds the card sort, above its fields.
|
||||
/// </summary>
|
||||
public bool HasCardSort => section is BflFormSection.WHAT_MATTERS_TO_ME;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user