bit of frontend testing
This commit is contained in:
@@ -1,120 +1,7 @@
|
||||
/* styles.css */
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
header {
|
||||
background: #4a7c59;
|
||||
color: #fff;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
.link-row {
|
||||
display: flex;
|
||||
list-style: none;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
nav ul li {
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
nav ul li a {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
nav ul li a.active {
|
||||
background: #fff;
|
||||
color: #4a7c59;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
flex: 1;
|
||||
margin-right: 2rem;
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 3;
|
||||
}
|
||||
|
||||
.log-item, .asset-item, .taxonomy-item {
|
||||
border: 1px solid #ddd;
|
||||
padding: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.actions {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.actions button {
|
||||
padding: 0.3rem 0.5rem;
|
||||
margin-right: 0.5rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.view-btn {
|
||||
background: #4a7c59;
|
||||
color: white;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.edit-btn {
|
||||
background: #f9a826;
|
||||
color: white;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.delete-btn {
|
||||
background: #e74c3c;
|
||||
color: white;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.notification {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
padding: 10px 20px;
|
||||
border-radius: 5px;
|
||||
color: white;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.notification.success {
|
||||
background-color: #2ecc71;
|
||||
}
|
||||
|
||||
.notification.error {
|
||||
background-color: #e74c3c;
|
||||
}
|
||||
|
||||
footer {
|
||||
background: #333;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
padding: 1rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
@@ -3,84 +3,31 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Farm Work Tracker</title>
|
||||
<title>WagFarm</title>
|
||||
<link rel="stylesheet" href="css/styles.css">
|
||||
<link rel="stylesheet" href="css/forms.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>Farm Work Tracker</h1>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="#" class="nav-link active" data-entity="logs">Logs</a></li>
|
||||
<li><a href="#" class="nav-link" data-entity="assets">Assets</a></li>
|
||||
<li><a href="#" class="nav-link" data-entity="taxonomies">Taxonomies</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<h1>WagFarm</h1>
|
||||
<ul>
|
||||
<div class="link-row">
|
||||
<span>Logs:</span>
|
||||
<a href="#">View</a>
|
||||
<a href="#">Create</a>
|
||||
</div>
|
||||
<div class="link-row">
|
||||
<span>Assets:</span>
|
||||
<a href="#">View</a>
|
||||
<a href="#">Create</a>
|
||||
</div>
|
||||
<div class="link-row">
|
||||
<span>Taxonomy:</span>
|
||||
<a href="#">View</a>
|
||||
<a href="#">Create</a>
|
||||
</div>
|
||||
|
||||
</ul>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<div class="container">
|
||||
<div class="sidebar">
|
||||
<div id="logs-form-container" class="entity-form">
|
||||
<h2>Create New Log</h2>
|
||||
<form id="log-create-form">
|
||||
<div class="form-group">
|
||||
<label for="title">Title</label>
|
||||
<input type="text" id="title" name="title" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="date">Date</label>
|
||||
<input type="date" id="date" name="date" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="description">Description</label>
|
||||
<textarea id="description" name="description"></textarea>
|
||||
</div>
|
||||
<button type="submit">Create Log</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="assets-form-container" class="entity-form" style="display: none;">
|
||||
<h2>Create New Asset</h2>
|
||||
<form id="asset-create-form">
|
||||
<!-- Asset form fields -->
|
||||
<button type="submit">Create Asset</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="taxonomies-form-container" class="entity-form" style="display: none;">
|
||||
<h2>Create New Taxonomy</h2>
|
||||
<form id="taxonomy-create-form">
|
||||
<!-- Taxonomy form fields -->
|
||||
<button type="submit">Create Taxonomy</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<div class="list-container">
|
||||
<h2>Entity List</h2>
|
||||
<div id="entity-list"></div>
|
||||
</div>
|
||||
|
||||
<div class="detail-container">
|
||||
<h2>Details</h2>
|
||||
<div id="detail-view"></div>
|
||||
</div>
|
||||
|
||||
<div class="edit-container" style="display: none;">
|
||||
<h2>Edit</h2>
|
||||
<div id="edit-form"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>Farm Work Tracker © 2025</p>
|
||||
</footer>
|
||||
|
||||
<script type="module" src="js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
0
wagfarm-ui/logs/create.html
Normal file
0
wagfarm-ui/logs/create.html
Normal file
Reference in New Issue
Block a user