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