(function () {
'use strict';
var I = function () { return window.AdminI18n; };
function field(label, inner, hint) {
var html = '
';
}
function input(id, opts) {
opts = opts || {};
var type = opts.type || 'text';
var cls = 'soon-input soon-input--sm' + (opts.className ? ' ' + opts.className : '');
var attrs = 'id="' + id + '" class="' + cls + '"';
if (opts.value != null) attrs += ' value="' + I().esc(opts.value) + '"';
if (opts.placeholder) attrs += ' placeholder="' + I().esc(opts.placeholder) + '"';
if (opts.disabled) attrs += ' disabled';
if (opts.autocomplete) attrs += ' autocomplete="' + I().esc(opts.autocomplete) + '"';
if (type === 'textarea') {
return '';
}
return '';
}
function select(id, optionsHtml) {
return '';
}
function actions(primaryLabel, primaryId, secondaryHtml) {
return '' +
(secondaryHtml || '') +
'
';
}
function panel(title, bodyHtml) {
return '';
}
window.AdminForm = {
field: field,
input: input,
select: select,
actions: actions,
panel: panel,
};
})();