diff --git a/ccm-faq/src/META-INF/services/com.arsdigita.ui.admin.applications.ApplicationManager b/ccm-faq/src/META-INF/services/com.arsdigita.ui.admin.applications.ApplicationManager new file mode 100644 index 000000000..af6c54aa4 --- /dev/null +++ b/ccm-faq/src/META-INF/services/com.arsdigita.ui.admin.applications.ApplicationManager @@ -0,0 +1 @@ +com.arsdigita.faq.FaqAppManager \ No newline at end of file diff --git a/ccm-faq/src/com/arsdigita/faq/FaqAppManager.java b/ccm-faq/src/com/arsdigita/faq/FaqAppManager.java new file mode 100644 index 000000000..7f60a6e7b --- /dev/null +++ b/ccm-faq/src/com/arsdigita/faq/FaqAppManager.java @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2013 Jens Pelzetter + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License + * as published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ +package com.arsdigita.faq; + +import com.arsdigita.bebop.BoxPanel; +import com.arsdigita.bebop.Label; +import com.arsdigita.globalization.GlobalizedMessage; +import com.arsdigita.ui.admin.applications.AbstractApplicationManager; +import com.arsdigita.ui.admin.applications.ApplicationInstanceAwareContainer; + +/** + * + * @author Jens Pelzetter + * @version $Id$ + */ +public class FaqAppManager extends AbstractApplicationManager { + + public Class getApplication() { + return Faq.class; + } + + public ApplicationInstanceAwareContainer getApplicationAdminForm() { + final ApplicationInstanceAwareContainer container = new ApplicationInstanceAwareContainer(); + + final BoxPanel panel = new BoxPanel(); + panel.add(new Label(new GlobalizedMessage("faq.ui.admin.no_settings", "com.arsdigita.faq.FaqResources"))); + + container.add(panel); + + return container; + } + + + +} diff --git a/ccm-faq/src/com/arsdigita/faq/FaqResources.properties b/ccm-faq/src/com/arsdigita/faq/FaqResources.properties index e3e46e3c3..e1569bad1 100644 --- a/ccm-faq/src/com/arsdigita/faq/FaqResources.properties +++ b/ccm-faq/src/com/arsdigita/faq/FaqResources.properties @@ -5,3 +5,4 @@ cw.faq.ui.answer=Answer: cw.faq.ui.text_type=Text Type: cw.faq.ui.user_view=User View cw.faq.ui.admin_view=Administration view +faq.ui.admin.no_settings=No settings available diff --git a/ccm-faq/src/com/arsdigita/faq/FaqResources_de.properties b/ccm-faq/src/com/arsdigita/faq/FaqResources_de.properties index 103a698c9..c88a91659 100644 --- a/ccm-faq/src/com/arsdigita/faq/FaqResources_de.properties +++ b/ccm-faq/src/com/arsdigita/faq/FaqResources_de.properties @@ -5,3 +5,4 @@ cw.faq.ui.answer=Antwort: cw.faq.ui.text_type=Text Typ: cw.faq.ui.user_view=Benutzeransicht cw.faq.ui.admin_view=Administrationsansicht +faq.ui.admin.no_settings=Keine Einstellungen verf\u00fcgbar diff --git a/ccm-faq/src/com/arsdigita/faq/FaqResources_en.properties b/ccm-faq/src/com/arsdigita/faq/FaqResources_en.properties index e3e46e3c3..27b7729cc 100644 --- a/ccm-faq/src/com/arsdigita/faq/FaqResources_en.properties +++ b/ccm-faq/src/com/arsdigita/faq/FaqResources_en.properties @@ -5,3 +5,4 @@ cw.faq.ui.answer=Answer: cw.faq.ui.text_type=Text Type: cw.faq.ui.user_view=User View cw.faq.ui.admin_view=Administration view +faq.ui.admin.no_settings=