add contactForm
This commit is contained in:
parent
3858bef3f4
commit
01a20963c1
4 changed files with 161 additions and 2 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue