1{{ define "user" }} 2<div class="padded box"> 3 <div class="box-title"> 4 <i class="mdi mdi-key-change"></i> updating last.fm keys 5 </div> 6 <div class="box-description text-light"> 7 <p>you can get an api key <a href="https://www.last.fm/api/account/create" target="_blank">here</a> (note: only the "application name" field is required)</p> 8 </div> 9 <div class="text-right"> 10 <p><span class="text-light">current key</span> <i>{{ default "not set" .CurrentLastFMAPIKey }}</i></p> 11 <p><span class="text-light">current secret</span> <i>{{ default "not set" .CurrentLastFMAPISecret }}</i></p> 12 </div> 13 <form class="block" action="{{ path "/admin/update_lastfm_api_key_do" }}" method="post"> 14 <input type="text" id="api_key" name="api_key" placeholder="new key"> 15 <input type="text" id="secret" name="secret" placeholder="new secret"> 16 <input type="submit" value="update"> 17 </form> 18</div> 19{{ end }} 20