blob: 5632cda20ab48632d1cbc4c80f5be7fdc1f99de3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{{template "header" .}}
<form method=post action="/settings">
<section>
<h2>Profile</h2>
<div class="row">
<div class="form-element">
<input name="name" id="name" type="text" value={{.Name}}>
<label for="name">Name</label>
</div>
<div class="form-element">
<input name="email" id="email" type="text" value={{.Email}}>
<label for="email">Email</label>
</div>
</div>
</section>
<section>
<h2>Last.fm</h2>
<div class="row">
<div class="form-element">
<input name="lfm_name" id="lfm_name" type="text" value={{.LfmName}}>
<label for="lfm_name">Username</label>
</div>
<div class="form-element">
<input autocomplete="new-password" name="lfm_password" id="lfm_password" type="password">
<label for="lfm_password">Password</label>
</div>
</div>
<p>
{{if not .Import.To.IsZero}}
{{.Import.Count}} listens imported from Last.fm (last import on {{.Import.To.Format "Mon, Jan 2 15:04"}}).
{{end}}
<input type="submit" name="import" value="IMPORT"><br/>
{{if not .LoveImport.Time.IsZero}}
{{.LoveImport.Count}} loved tracks imported from Last.fm (last import on {{.LoveImport.Time.Format "Mon, Jan 2 15:04"}}).
{{end}}
<input type="submit" name="love_import" value="IMPORT">
</p>
</section>
<div class="row">
<input type="submit" name="save" value="SAVE">
</div>
</form>
{{template "footer"}}
|