%if c.user_api_keys: %for api_key in c.user_api_keys: %endfor %else: %endif
${c.user.api_key}
${_('Built-in')} ${_('expires')}: ${_('never')} ${h.form(url('my_account_api_keys'),method='delete')} ${h.hidden('del_api_key',c.user.api_key)} ${h.hidden('del_api_key_builtin',1)} ${h.end_form()}
${api_key.api_key}
${api_key.description} %if api_key.expires == -1: ${_('expires')}: ${_('never')} %else: %if api_key.expired: ${_('expired')}: ${h.age(h.time_to_datetime(api_key.expires))} %else: ${_('expires')}: ${h.age(h.time_to_datetime(api_key.expires))} %endif %endif ${h.form(url('my_account_api_keys'),method='delete')} ${h.hidden('del_api_key',api_key.api_key)} ${h.end_form()}
${_('No additional api keys specified')}
${h.form(url('my_account_api_keys'), method='post')}
${h.text('description', class_='medium', placeholder=_('Description'))} ${h.select('lifetime', '', c.lifetime_options)}
${h.submit('save',_('Add'),class_="btn")} ${h.reset('reset',_('Reset'),class_="btn")}
${h.end_form()}