Edit action for Flash videos
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2792 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
d3bda353be
commit
bf19a71460
5 changed files with 42 additions and 3 deletions
|
@ -55,6 +55,7 @@ class DialogAction(Action):
|
||||||
dialogName = 'create'
|
dialogName = 'create'
|
||||||
qualifier = typeToken = innerForm = None
|
qualifier = typeToken = innerForm = None
|
||||||
fixedType = False
|
fixedType = False
|
||||||
|
viewTitle = ''
|
||||||
addParams = {}
|
addParams = {}
|
||||||
|
|
||||||
@Lazy
|
@Lazy
|
||||||
|
@ -77,6 +78,8 @@ class DialogAction(Action):
|
||||||
urlParams['inner_form'] = self.innerForm
|
urlParams['inner_form'] = self.innerForm
|
||||||
if self.fixedType:
|
if self.fixedType:
|
||||||
urlParams['fixed_type'] = 'yes'
|
urlParams['fixed_type'] = 'yes'
|
||||||
|
if self.viewTitle:
|
||||||
|
urlParams['view_title'] = self.viewTitle
|
||||||
urlParams.update(self.addParams)
|
urlParams.update(self.addParams)
|
||||||
#url = self.page.getUrlForTarget(self.view)
|
#url = self.page.getUrlForTarget(self.view)
|
||||||
#return self.jsOnClick % (self.dialogName, url, self.viewName,
|
#return self.jsOnClick % (self.dialogName, url, self.viewName,
|
||||||
|
@ -119,3 +122,11 @@ actions.register('edit_object', 'portlet', DialogAction,
|
||||||
dialogName='edit',
|
dialogName='edit',
|
||||||
prerequisites=['registerDojoEditor'],
|
prerequisites=['registerDojoEditor'],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
actions.register('edit_concept', 'portlet', DialogAction,
|
||||||
|
title=_(u'Edit Concept...'),
|
||||||
|
description=_(u'Modify concept object.'),
|
||||||
|
viewName='edit_concept.html',
|
||||||
|
dialogName='edit',
|
||||||
|
prerequisites=['registerDojoEditor'],
|
||||||
|
)
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="5" class="headline"
|
<th colspan="5" class="headline"
|
||||||
tal:attributes="colspan python: useI18N and 4 or 5">
|
tal:attributes="colspan python: useI18N and 4 or 5">
|
||||||
<span tal:replace="view/title"
|
<span tal:replace="request/view_title|view/title"
|
||||||
i18n:translate="">Edit Information Object</span>
|
i18n:translate="">Edit Information Object</span>
|
||||||
</th>
|
</th>
|
||||||
<th tal:condition="useI18N"
|
<th tal:condition="useI18N"
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
tal:attributes="value view/form_action" />
|
tal:attributes="value view/form_action" />
|
||||||
<table cellpadding="3" class="form">
|
<table cellpadding="3" class="form">
|
||||||
<tbody><tr><th colspan="5" class="headline">
|
<tbody><tr><th colspan="5" class="headline">
|
||||||
<span tal:content="view/title"
|
<span tal:content="request/view_title|view/title"
|
||||||
i18n:translate="">Create Information Object</span>
|
i18n:translate="">Create Information Object</span>
|
||||||
<select name="form.type" id="form.type"
|
<select name="form.type" id="form.type"
|
||||||
tal:condition="not:fixedType"
|
tal:condition="not:fixedType"
|
||||||
|
|
|
@ -25,8 +25,21 @@ $Id$
|
||||||
from zope import interface, component
|
from zope import interface, component
|
||||||
from zope.cachedescriptors.property import Lazy
|
from zope.cachedescriptors.property import Lazy
|
||||||
|
|
||||||
|
from cybertools.browser.action import Action, actions
|
||||||
|
from loops.browser.action import DialogAction
|
||||||
from loops.common import adapted
|
from loops.common import adapted
|
||||||
from loops.integrator.content.browser import ExternalAccessRenderer
|
from loops.integrator.content.browser import ExternalAccessRenderer
|
||||||
|
from loops.util import _
|
||||||
|
|
||||||
|
|
||||||
|
actions.register('edit_video', 'portlet', DialogAction,
|
||||||
|
title=_(u'Edit Video...'),
|
||||||
|
description=_(u'Modify video information.'),
|
||||||
|
viewName='edit_concept.html',
|
||||||
|
viewTitle=_(u'Edit Video'),
|
||||||
|
dialogName='edit',
|
||||||
|
prerequisites=['registerDojoEditor'],
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class FlashVideo(ExternalAccessRenderer):
|
class FlashVideo(ExternalAccessRenderer):
|
||||||
|
|
Binary file not shown.
|
@ -3,7 +3,7 @@ msgstr ""
|
||||||
|
|
||||||
"Project-Id-Version: $Id$\n"
|
"Project-Id-Version: $Id$\n"
|
||||||
"POT-Creation-Date: 2007-05-22 12:00 CET\n"
|
"POT-Creation-Date: 2007-05-22 12:00 CET\n"
|
||||||
"PO-Revision-Date: 2008-07-28 12:00 CET\n"
|
"PO-Revision-Date: 2008-08-08 12:00 CET\n"
|
||||||
"Last-Translator: Helmut Merz <helmutm@cy55.de>\n"
|
"Last-Translator: Helmut Merz <helmutm@cy55.de>\n"
|
||||||
"Language-Team: loops developers <helmutm@cy55.de>\n"
|
"Language-Team: loops developers <helmutm@cy55.de>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
|
@ -158,6 +158,21 @@ msgstr "Ressource bearbeiten"
|
||||||
msgid "Edit Resource..."
|
msgid "Edit Resource..."
|
||||||
msgstr "Ressource bearbeiten..."
|
msgstr "Ressource bearbeiten..."
|
||||||
|
|
||||||
|
msgid "Edit Concept"
|
||||||
|
msgstr "Begriff bearbeiten"
|
||||||
|
|
||||||
|
msgid "Edit Concept..."
|
||||||
|
msgstr "Begriff bearbeiten..."
|
||||||
|
|
||||||
|
msgid "Edit Video..."
|
||||||
|
msgstr "Video bearbeiten..."
|
||||||
|
|
||||||
|
msgid "Edit Video"
|
||||||
|
msgstr "Video bearbeiten"
|
||||||
|
|
||||||
|
msgid "Modify video information"
|
||||||
|
msgstr "Daten des Video-Objekts bearbeiten"
|
||||||
|
|
||||||
msgid "Content Type"
|
msgid "Content Type"
|
||||||
msgstr "Format"
|
msgstr "Format"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue