add contactForm

This commit is contained in:
j 2016-01-16 14:10:20 +05:30
commit 01a20963c1
4 changed files with 161 additions and 2 deletions

View file

@ -38,7 +38,14 @@ oml.ui.appDialog = function() {
$logo = Ox.Element(),
$text = Ox.Element()
.addClass('OxTextPage OxSelectable'),
text = {
'about': 'Open Media Library is a local web application to manage and sync your digital media collections.',
'faq': 'not yet',
'terms': 'The lazy brown fox jumped over the lazy black fox, but other than that not really much happened here since you last checked.',
'development': 'The latest code is in our <a href="https://git.0x2620.org/openmedialibrary.git">git repository</a>.<br><br>For everything else, there\'s IRC, and our development mailing list. Your feedback is welcome.<br><br>IRC: #openmedialibrary on freenode<br>Mailing List: <a href=mailto:openmedialibrary-dev@openmedialibrary.com">openmedialibrary-dev@openmedialibrary.com</a>',
}[id],
title = Ox.getObjectById(tabs, id).title;
$('<img>')
.attr({
src: '/static/png/oml.png'
@ -51,8 +58,11 @@ oml.ui.appDialog = function() {
height: '192px'
})
.appendTo($logo);
$content.html('<h1><b>' + title + '</b></h1>'
+ '<p>The lazy brown fox jumped over the lazy black fox, but other than that not really much happened here since you last checked.');
if (id == 'contact') {
$content.append(oml.ui.contactForm());
} else {
$content.html('<h1><b>' + title + '</b></h1><p>' + text + '</p>');
}
$('<div>')
.css({
position: 'absolute',