work in progress: page actions - start with print action; + translations for work item management
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3918 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									1f4582f7a0
								
							
						
					
					
						commit
						8ecf2645f1
					
				
					 7 changed files with 130 additions and 7 deletions
				
			
		|  | @ -184,7 +184,7 @@ fieldset.box td { | ||||||
| .quicksearch { | .quicksearch { | ||||||
|     position: absolute; |     position: absolute; | ||||||
|     right: 2em; |     right: 2em; | ||||||
|     top: 1em; |     top: 0.8em; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .quicksearch input { | .quicksearch input { | ||||||
|  | @ -194,7 +194,13 @@ fieldset.box td { | ||||||
| .language-switch { | .language-switch { | ||||||
|     position: absolute; |     position: absolute; | ||||||
|     right: 2em; |     right: 2em; | ||||||
|     top: 3em; |     top: 2.4em; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .page-actions { | ||||||
|  |     position: absolute; | ||||||
|  |     right: 2em; | ||||||
|  |     top: 3.8em; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .top image { | .top image { | ||||||
|  |  | ||||||
|  | @ -105,7 +105,8 @@ class NodeView(BaseView): | ||||||
|                     media='all', priority=60) |                     media='all', priority=60) | ||||||
|         cm.register('js', 'loops.js', resourceName='loops.js', priority=60) |         cm.register('js', 'loops.js', resourceName='loops.js', priority=60) | ||||||
|         cm.register('top_actions', 'top_actions', name='multi_actions', |         cm.register('top_actions', 'top_actions', name='multi_actions', | ||||||
|                     subMacros=[i18n_macros.macros['language_switch']]) |                     subMacros=[node_macros.macros['page_actions'], | ||||||
|  |                                i18n_macros.macros['language_switch']]) | ||||||
|         if self.globalOptions('expert.quicksearch'): |         if self.globalOptions('expert.quicksearch'): | ||||||
|             from loops.expert.browser.search import searchMacrosTemplate |             from loops.expert.browser.search import searchMacrosTemplate | ||||||
|             cm.register('top_actions', 'top_quicksearch', name='multi_actions', |             cm.register('top_actions', 'top_quicksearch', name='multi_actions', | ||||||
|  |  | ||||||
|  | @ -205,6 +205,18 @@ | ||||||
| </metal:actions> | </metal:actions> | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | <metal:actions define-macro="page_actions"> | ||||||
|  |   <div class="page-actions" | ||||||
|  |        title="Print this page" | ||||||
|  |        i18n:attributes="title"> | ||||||
|  |     <a href="javascript:print()"> | ||||||
|  |       <img tal:attributes="src string:$resourceBase/cybertools.icons/printer.png" | ||||||
|  |            i18n:attributes="alt" | ||||||
|  |            alt="Print" /> | ||||||
|  |     </a></div> | ||||||
|  | </metal:actions> | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| <metal:actions define-macro="object_actions"> | <metal:actions define-macro="object_actions"> | ||||||
|   <div class="object-actions" |   <div class="object-actions" | ||||||
|        tal:define="target nocall:target|nothing;"> |        tal:define="target nocall:target|nothing;"> | ||||||
|  |  | ||||||
										
											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: 2010-06-27 12:00 CET\n" | "PO-Revision-Date: 2010-07-09 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" | ||||||
|  | @ -212,6 +212,18 @@ msgstr "Anwesenheit" | ||||||
| msgid "Actions" | msgid "Actions" | ||||||
| msgstr "Aktionen" | msgstr "Aktionen" | ||||||
| 
 | 
 | ||||||
|  | msgid "Print this page" | ||||||
|  | msgstr "Diese Seite ausdrucken" | ||||||
|  | 
 | ||||||
|  | msgid "Information about this object." | ||||||
|  | msgstr "Informationen über dieses Objekt." | ||||||
|  | 
 | ||||||
|  | msgid "Send a link to this object by email." | ||||||
|  | msgstr "Einen Link zu diesem Objekt per E-Mail versenden." | ||||||
|  | 
 | ||||||
|  | msgid "Edit with external editor." | ||||||
|  | msgstr "Mit 'External Editor' bearbeiten." | ||||||
|  | 
 | ||||||
| msgid "Type" | msgid "Type" | ||||||
| msgstr "Typ" | msgstr "Typ" | ||||||
| 
 | 
 | ||||||
|  | @ -571,6 +583,9 @@ msgstr "Suchbegriff" | ||||||
| msgid "Calendar" | msgid "Calendar" | ||||||
| msgstr "Kalender" | msgstr "Kalender" | ||||||
| 
 | 
 | ||||||
|  | msgid "Work Items" | ||||||
|  | msgstr "Aktivitäten" | ||||||
|  | 
 | ||||||
| msgid "Day" | msgid "Day" | ||||||
| msgstr "Tag" | msgstr "Tag" | ||||||
| 
 | 
 | ||||||
|  | @ -586,6 +601,93 @@ msgstr "Dauer" | ||||||
| msgid "Effort" | msgid "Effort" | ||||||
| msgstr "Aufwand" | msgstr "Aufwand" | ||||||
| 
 | 
 | ||||||
|  | msgid "Party" | ||||||
|  | msgstr "Teilnehmer" | ||||||
|  | 
 | ||||||
|  | msgid "Start - End" | ||||||
|  | msgstr "Beginn - Ende" | ||||||
|  | 
 | ||||||
|  | msgid "Duration/Effort" | ||||||
|  | msgstr "Dauer/Aufwand" | ||||||
|  | 
 | ||||||
|  | msgid "Duration / Effort (hh:mm)" | ||||||
|  | msgstr "Dauer / Aufwand (hh:mm)" | ||||||
|  | 
 | ||||||
|  | msgid "Action" | ||||||
|  | msgstr "Aktion" | ||||||
|  | 
 | ||||||
|  | msgid "Comment" | ||||||
|  | msgstr "Kommentar" | ||||||
|  | 
 | ||||||
|  | msgid "Created" | ||||||
|  | msgstr "Angelegt" | ||||||
|  | 
 | ||||||
|  | msgid "Close" | ||||||
|  | msgstr "Schließen" | ||||||
|  | 
 | ||||||
|  | msgid "Work Item Information" | ||||||
|  | msgstr "Aktivität" | ||||||
|  | 
 | ||||||
|  | msgid "Information about this work item." | ||||||
|  | msgstr "Informationen über diese Aktivität." | ||||||
|  | 
 | ||||||
|  | msgid "Edit work item." | ||||||
|  | msgstr "Aktivität bearbeiten." | ||||||
|  | 
 | ||||||
|  | msgid "new" | ||||||
|  | msgstr "neu" | ||||||
|  | 
 | ||||||
|  | msgid "planned" | ||||||
|  | msgstr "geplant" | ||||||
|  | 
 | ||||||
|  | msgid "accepted" | ||||||
|  | msgstr "angenommen" | ||||||
|  | 
 | ||||||
|  | msgid "delegated" | ||||||
|  | msgstr "delegiert" | ||||||
|  | 
 | ||||||
|  | msgid "running" | ||||||
|  | msgstr "in Arbeit" | ||||||
|  | 
 | ||||||
|  | msgid "done" | ||||||
|  | msgstr "bearbeitet" | ||||||
|  | 
 | ||||||
|  | msgid "finished" | ||||||
|  | msgstr "beendet" | ||||||
|  | 
 | ||||||
|  | msgid "closed" | ||||||
|  | msgstr "abgeschlossen" | ||||||
|  | 
 | ||||||
|  | msgid "cancelled" | ||||||
|  | msgstr "abgebrochen" | ||||||
|  | 
 | ||||||
|  | msgid "replaced" | ||||||
|  | msgstr "ersetzt" | ||||||
|  | 
 | ||||||
|  | msgid "plan" | ||||||
|  | msgstr "planen" | ||||||
|  | 
 | ||||||
|  | msgid "accept" | ||||||
|  | msgstr "annehmen" | ||||||
|  | 
 | ||||||
|  | msgid "start working" | ||||||
|  | msgstr "Arbeit beginnen" | ||||||
|  | 
 | ||||||
|  | msgid "work" | ||||||
|  | msgstr "bearbeiten" | ||||||
|  | 
 | ||||||
|  | msgid "finish" | ||||||
|  | msgstr "beenden" | ||||||
|  | 
 | ||||||
|  | msgid "cancel" | ||||||
|  | msgstr "abbrechen" | ||||||
|  | 
 | ||||||
|  | msgid "delegate" | ||||||
|  | msgstr "delegieren" | ||||||
|  | 
 | ||||||
|  | msgid "close" | ||||||
|  | msgstr "abschließen" | ||||||
|  | 
 | ||||||
| msgid "Monday" | msgid "Monday" | ||||||
| msgstr "Montag" | msgstr "Montag" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -131,7 +131,7 @@ class WorkItemDetails(TrackDetails): | ||||||
|             self.view.registerDojoNumberWidget() |             self.view.registerDojoNumberWidget() | ||||||
|             self.view.registerDojoTextarea() |             self.view.registerDojoTextarea() | ||||||
|             actions.append(DialogAction(self.view, |             actions.append(DialogAction(self.view, | ||||||
|                       description=_(u'Create a work item.'), |                       description=_(u'Edit work item.'), | ||||||
|                       viewName='create_workitem.html', |                       viewName='create_workitem.html', | ||||||
|                       dialogName='', |                       dialogName='', | ||||||
|                       icon='edit.gif', |                       icon='edit.gif', | ||||||
|  |  | ||||||
|  | @ -93,7 +93,8 @@ | ||||||
|                 onChange="showIf(this, 'delegate', 'party')"> |                 onChange="showIf(this, 'delegate', 'party')"> | ||||||
|           <option tal:repeat="action view/actions" |           <option tal:repeat="action view/actions" | ||||||
|                   tal:attributes="value action/name" |                   tal:attributes="value action/name" | ||||||
|                   tal:content="action/title" /> |                   tal:content="action/title" | ||||||
|  |                   i18n:translate="" /> | ||||||
|         </select> |         </select> | ||||||
|         <span id="party" style="display: none">  |         <span id="party" style="display: none">  | ||||||
|           <label i18n:translate="" for="input_party" |           <label i18n:translate="" for="input_party" | ||||||
|  | @ -187,7 +188,8 @@ | ||||||
|     </tr> |     </tr> | ||||||
|     <tr tal:define="state item/track/getStateObject"> |     <tr tal:define="state item/track/getStateObject"> | ||||||
|       <td><span i18n:translate="">State</span>:</td> |       <td><span i18n:translate="">State</span>:</td> | ||||||
|       <td tal:content="state/title"></td> |       <td i18n:translate="" | ||||||
|  |           tal:content="state/title"></td> | ||||||
|     </tr> |     </tr> | ||||||
|     <tr> |     <tr> | ||||||
|       <td><span i18n:translate="">Created</span>:</td> |       <td><span i18n:translate="">Created</span>:</td> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm