talkspace templates added
This commit is contained in:
33
TodoList/Pages/AccountTasks.razor
Normal file
33
TodoList/Pages/AccountTasks.razor
Normal 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);
|
||||
|
||||
|
||||
}
|
||||
@ -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;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
@ -1,7 +1,7 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using TodoList.Data;
|
||||
using SqliteWasmHelper;
|
||||
//using SqliteWasmHelper;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
@ -9,8 +9,8 @@ var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Services.AddRazorPages();
|
||||
builder.Services.AddServerSideBlazor();
|
||||
builder.Services.AddSingleton<WeatherForecastService>();
|
||||
builder.Services.AddSqliteWasmDbContextFactory<ThingContext>(
|
||||
opts => opts.UseSqlite("Data Source=blazor_todo.sqlite3"));
|
||||
//builder.Services.AddSqliteWasmDbContextFactory<ThingContext>(
|
||||
// opts => opts.UseSqlite("Data Source=blazor_todo.sqlite3"));
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<WasmBuildNative>true</WasmBuildNative
|
||||
<WasmBuildNative>true</WasmBuildNative>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@ -1 +1 @@
|
||||
24769c0c36c87f4cf51a9e14295aa3d9c353fc76
|
||||
6cd92fa8a87efed698858e3a0004487f72da5921
|
||||
|
||||
Reference in New Issue
Block a user