<|start_filename|>TripTracker.UI/Pages/Components/EditTrip/Edit.cshtml<|end_filename|>
﻿@model TripTracker.BackService.Models.Trip

@if (Model != null)
{
<input type="hidden" asp-for="Id" />
}

<div class="form-group">
	<label asp-for="Name" class="control-label"></label>
	<input asp-for="Name" class="form-control" />
	<span asp-validation-for="Name" danger=""></span>
</div>
<div class="form-group">
	<label asp-for="StartDate" class="control-label"></label>
	<input asp-for="StartDate" class="form-control" />
	<span asp-validation-for="StartDate" class="text-danger"></span>
</div>
<div class="form-group">
	<label asp-for="EndDate" class="control-label"></label>
	<input asp-for="EndDate" class="form-control" />
	<span asp-validation-for="EndDate" class="text-danger"></span>
</div>

<|start_filename|>TripTracker.UI/Security.cs<|end_filename|>
﻿using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace TripTracker.UI
{
	public class Security
	{

		public static void Configure(RazorPagesOptions options)
		{
			options.Conventions.AuthorizeFolder("/Account/Manage");
			options.Conventions.AuthorizePage("/Account/Logout");

		}

	}
}
