talkspace templates added

This commit is contained in:
Norm Rasmussen
2022-06-17 14:14:24 -04:00
parent f493b37b1e
commit 59aaf84c10
328 changed files with 15105 additions and 27 deletions

View File

@ -0,0 +1,33 @@
@page "/account_tasks"
<h3>AccountTasks</h3>
<body>
<div class="box-wrapper">
<div class="left-column">
<p>Assigned Company Names</p>
<input placeholder="Accounts Added" @bind="newAccount" />
<button @onclick="addAccount">Add Account</button>
<ul>
</ul>
</div>
<div class="middle-column">
<h3>Tasks</h3>
<ul>
</ul>
</div>
<div class="right-column">
<h3>Task Notes</h3>
</div>
</body>
@code {
private Dictionary<string, Dictionary<string, string>> accounts =
new Dictionary<string, Dictionary<string, string>>();
accounts.Add("Hubspot", default);
}

View File

@ -1,8 +1,4 @@
@page "/accounts"
@using SqliteWasmHelper
@using BlazorWasmExample.Data
@using Microsoft.EntityFrameworkCore
@inject ISqliteWasmDbContextFactory<ThingContext> Factory
<PageTitle>Accounts</PageTitle>
@ -18,7 +14,7 @@
@foreach (var account in accounts)
{
<td>
<input type="checkbox" bind="@accountboxvalue" /> @account.AccountName<br />
<input type="checkbox" bind="@accountboxvalue" /> @account[0]<br />
Boolvalue: @accountboxvalue<br />
<button onclick="@toggle">toggle</button>
</td>
@ -36,10 +32,10 @@
<input placeholder="Tasks Added" @bind="newTask" />
<button @onclick="addTask">Add Task</button>
<ul>
@foreach (var task in )
@foreach (var task in tasks)
{
<li>
@task.TaskName
@task[0]
</li>
}
</ul>
@ -51,7 +47,8 @@
//var accounts = new List<string, KeyValuePair<KeyValuePair<string, string>>>
// accounts list
//key: hubspot, value: key: call them, value: call today
public var accounts = new List<KeyValuePair<string, KeyValuePair<string, string>>>();
public Dictionary<string, Dictionary<string, string>> accounts =
new Dictionary<string, Dictionary<string, string>>();
private string? newAccount;
private string? newTask;
private bool accountboxvalue { get; set; }
@ -64,21 +61,22 @@
{
if (!string.IsNullOrWhiteSpace(newAccount))
{
accounts.Add(new KeyValuePair<string, KeyValuePair<string, string>>(newAccount()));
newAccount = new Dictionary<string, Dictionary<string, string>>();
newAccount = string.Empty;
}
}
private void addTask()
{
{
string key = "accountboxvalue";
bool keyExists = KeyValuePair.ContainsKey(key);
if (keyExists)
{
accounts.Add(new KeyValuePair<string,)
tasks.Add(newTask, "");
newTask = string.Empty;
}
}
}
//private void addTask()
//{
// {
// newTask = new Dictionary<string, string>();
// string key = "accountboxvalue";
// if (accounts.TryGetValue(key, out tasks))
// {
// tasks = new Dictionary<string, string>();
// accounts.Add(key(key.ToString), tasks);
// newTask = string.Empty;
// }
// return;
// }
// }
}