provide actions for working with MicroArticles
This commit is contained in:
parent
bcb195148b
commit
2b413e5f58
4 changed files with 42 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
|||
/*
|
||||
$Id$
|
||||
|
||||
settings specific for view / node objects
|
||||
|
||||
|
@ -467,6 +466,15 @@ div.comment {
|
|||
padding-top: 0.4em;
|
||||
}
|
||||
|
||||
/* microart */
|
||||
|
||||
.micropart {
|
||||
background-color: #f7f7f7;
|
||||
padding: 0 5px 0 5px;
|
||||
margin: 5px 0 5px 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* calendar, work items */
|
||||
|
||||
.today {
|
||||
|
|
|
@ -26,12 +26,32 @@ from zope import component
|
|||
from zope.app.pagetemplate import ViewPageTemplateFile
|
||||
from zope.cachedescriptors.property import Lazy
|
||||
|
||||
from loops.browser.action import actions, DialogAction
|
||||
from loops.browser.concept import ConceptView
|
||||
from loops.common import adapted
|
||||
from loops import util
|
||||
from loops.util import _
|
||||
|
||||
|
||||
actions.register('create_microart', 'portlet', DialogAction,
|
||||
title=_(u'Create MicroArticle...'),
|
||||
description=_(u'Create a new MicroArticle.'),
|
||||
viewName='create_concept.html',
|
||||
dialogName='createConcept',
|
||||
typeToken='.loops/concepts/microart',
|
||||
fixedType=True,
|
||||
#prerequisites=['registerDojoTextWidget'],
|
||||
)
|
||||
|
||||
actions.register('edit_microart', 'portlet', DialogAction,
|
||||
title=_(u'Edit MicroArticle...'),
|
||||
description=_(u'Modify MicroArticle.'),
|
||||
viewName='edit_concept.html',
|
||||
dialogName='editConcept',
|
||||
#prerequisites=['registerDojoTextWidget'],
|
||||
)
|
||||
|
||||
|
||||
view_macros = ViewPageTemplateFile('view_macros.pt')
|
||||
|
||||
|
||||
|
|
Binary file not shown.
|
@ -3,7 +3,7 @@ msgstr ""
|
|||
|
||||
"Project-Id-Version: $Id$\n"
|
||||
"POT-Creation-Date: 2007-05-22 12:00 CET\n"
|
||||
"PO-Revision-Date: 2011-12-02 12:00 CET\n"
|
||||
"PO-Revision-Date: 2012-02-16 12:00 CET\n"
|
||||
"Last-Translator: Helmut Merz <helmutm@cy55.de>\n"
|
||||
"Language-Team: loops developers <helmutm@cy55.de>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
@ -108,6 +108,18 @@ msgstr "Tagebuch exportieren"
|
|||
|
||||
# micro article
|
||||
|
||||
msgid "Edit MicroArticle..."
|
||||
msgstr "MikroArtikel bearbeiten..."
|
||||
|
||||
msgid "Modify MicroArticle."
|
||||
msgstr "Tagebucheintrag ändern."
|
||||
|
||||
msgid "Create MicroArticle..."
|
||||
msgstr "Tagebucheintrag anlegen..."
|
||||
|
||||
msgid "Create a new MicroArticle."
|
||||
msgstr "Einen neuen Tagebucheintrag erzeugen"
|
||||
|
||||
msgid "Story"
|
||||
msgstr "Story"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue