This commit is contained in:
@@ -25,6 +25,7 @@ namespace Aberwyn.Controllers
|
|||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[Route("budget/{name}")]
|
[Route("budget/{name}")]
|
||||||
public IActionResult Index(string name)
|
public IActionResult Index(string name)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ namespace Aberwyn.Data
|
|||||||
throw new Exception("Midsummer not found");
|
throw new Exception("Midsummer not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private static DateTime GetEasterSunday(int year)
|
private static DateTime GetEasterSunday(int year)
|
||||||
{
|
{
|
||||||
// Meeus/Jones/Butcher
|
// Meeus/Jones/Butcher
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ namespace Aberwyn.Models
|
|||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ValidateNever]
|
[ValidateNever]
|
||||||
public BudgetPeriod BudgetPeriod { get; set; }
|
public BudgetPeriod BudgetPeriod { get; set; }
|
||||||
|
|
||||||
public List<BudgetItem> Items { get; set; } = new();
|
public List<BudgetItem> Items { get; set; } = new();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
@attribute [Authorize(Roles = "Budget")]
|
@attribute [Authorize(Roles = "Budget")]
|
||||||
@using Microsoft.AspNetCore.Authorization
|
@using Microsoft.AspNetCore.Authorization
|
||||||
|
|
||||||
|
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Budget";
|
ViewData["Title"] = "Budget";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -135,7 +135,6 @@ app.controller('BudgetController', function ($scope, $http) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$scope.showToast = function (message, isError = false) {
|
$scope.showToast = function (message, isError = false) {
|
||||||
const toast = document.createElement("div");
|
const toast = document.createElement("div");
|
||||||
toast.className = "toast" + (isError ? " error" : "") + " show";
|
toast.className = "toast" + (isError ? " error" : "") + " show";
|
||||||
|
|||||||
Reference in New Issue
Block a user