2024-08-31 14:25:44 +00:00
|
|
|
{{define "head"}}
|
|
|
|
<title>Editing Track - ari melody 💫</title>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="/admin/static/edit-track.css">
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "content"}}
|
|
|
|
<main>
|
2024-08-31 18:29:57 +00:00
|
|
|
<h1>Editing Track</h1>
|
2024-08-31 14:25:44 +00:00
|
|
|
|
|
|
|
<div id="track" data-id="{{.ID}}">
|
|
|
|
<div class="track-info">
|
2024-08-31 18:29:57 +00:00
|
|
|
<p class="attribute-header">Title</p>
|
2024-08-31 14:25:44 +00:00
|
|
|
<h2 class="track-title">
|
|
|
|
<input type="text" id="title" name="Title" value="{{.Title}}">
|
|
|
|
</h2>
|
|
|
|
|
2024-08-31 18:29:57 +00:00
|
|
|
<p class="attribute-header">Description</p>
|
2024-08-31 14:25:44 +00:00
|
|
|
<textarea
|
|
|
|
name="Description"
|
|
|
|
value="{{.Description}}"
|
|
|
|
placeholder="No description provided."
|
|
|
|
rows="5"
|
|
|
|
id="description"
|
|
|
|
>{{.Description}}</textarea>
|
|
|
|
|
2024-08-31 18:29:57 +00:00
|
|
|
<p class="attribute-header">Lyrics</p>
|
2024-08-31 14:25:44 +00:00
|
|
|
<textarea
|
|
|
|
name="Lyrics"
|
|
|
|
value="{{.Lyrics}}"
|
|
|
|
placeholder="There are no lyrics."
|
|
|
|
rows="5"
|
|
|
|
id="lyrics"
|
|
|
|
>{{.Lyrics}}</textarea>
|
|
|
|
|
|
|
|
<div class="track-actions">
|
|
|
|
<button type="submit" class="save" id="save" disabled>Save</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-title">
|
|
|
|
<h2>Featured in</h2>
|
|
|
|
</div>
|
|
|
|
<div class="card releases">
|
|
|
|
{{if .Release}}
|
|
|
|
{{block "release" .Release}}{{end}}
|
|
|
|
{{else}}
|
|
|
|
<p>This track isn't bound to a release.</p>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-title">
|
|
|
|
<h2>Danger Zone</h2>
|
|
|
|
</div>
|
|
|
|
<div class="card danger">
|
|
|
|
<p>
|
|
|
|
Clicking the button below will delete this track.
|
|
|
|
This action is <strong>irreversible</strong>.
|
|
|
|
You will be prompted to confirm this decision.
|
|
|
|
</p>
|
|
|
|
<button class="delete" id="delete">Delete Track</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
<script type="module" src="/admin/static/edit-track.js" defer></script>
|
|
|
|
{{end}}
|