% if(typeof voucherCode !== 'undefined') { %> <% } %>
<% if(typeof voucherCode !== 'undefined') { %>
<% } else { %> <% if(kiosk_homepage) { %>
Admin UI
<% } %> <% } %>
<%= t('title') %>
<% if(error) { %>
<%= error_text %>
<% } %>
<% if(typeof voucherCode === 'undefined') { %>
<%= t('language') %>
<% Object.keys(languages).forEach((l) => { %>
><%= languages[l] %>
<% }); %>
<%= t('type') %>
<% voucher_types.forEach((type) => { %>
<%= timeConvert(type.expiration, language) %>, <%= type.usage === '1' ? t('singleUse') : type.usage === '0' ? `${t('multiUse')} (${t('unlimitedUse')})` : `${t('multiUse')} (${type.usage}x)` %><%= typeof type.upload !== "undefined" ? `, ${t('uploadLimit')}: ${bytesConvert(type.upload, 1, true)}` : '' %><%= typeof type.download !== "undefined" ? `, ${t('downloadLimit')}: ${bytesConvert(type.download, 1, true)}` : '' %><%= typeof type.megabytes !== "undefined" ? `, ${t('dataLimit')}: ${bytesConvert(type.megabytes, 2)}` : '' %>
<% }); %>
<% if(kiosk_name_required) { %>
<%= t('guestName') %>
<% } %>
<%= t('generate') %>
<%= t('generating') %> ...
<% } else { %>
<%= t('use') %>:
<%= voucherCode %>
<% if(unifiSsidPassword !== '') { %> <%= t('connect') %>:
<%= unifiSsid %>
,
<%= t('password') %>:
<%= unifiSsidPassword %>
<%= t('or') %>,
<% } else { %> <%= t('connect') %>:
<%= unifiSsid %>
<%= t('or') %>,
<% } %> <%= t('scan') %>:
<% if(email_enabled) { %>
<% if(typeof email === 'undefined') { %>
<%= t('email') %> (<%= t('optional') %>)
<%= t('send') %>
<%= t('sending') %> ...
<% } else { %>
<%= t('sent') %>
<% } %>
<% } %>
<% } %>
<% if(typeof voucherCode !== 'undefined') { %>
<%= t('back') %>
<% } %>
<% if(typeof voucherCode !== 'undefined') { %> <% } %>