[gen] Within Ref fields, added 2 icons for moving tied objects to top or bottom + bugfixes.

This commit is contained in:
Gaetan Delannay 2014-04-15 13:01:39 +02:00
parent ac08d2d795
commit 036856f07e
23 changed files with 113 additions and 29 deletions

View file

@ -103,6 +103,14 @@ msgstr ""
msgid "move_down"
msgstr ""
#. Default: "Move to top"
msgid "move_top"
msgstr ""
#. Default: "Move to bottom"
msgid "move_bottom"
msgstr ""
#. Default: "create"
msgid "query_create"
msgstr ""

View file

@ -103,6 +103,14 @@ msgstr ""
msgid "move_down"
msgstr ""
#. Default: "Move to top"
msgid "move_top"
msgstr ""
#. Default: "Move to bottom"
msgid "move_bottom"
msgstr ""
#. Default: "create"
msgid "query_create"
msgstr ""

View file

@ -103,6 +103,14 @@ msgstr "Nach oben verschieben"
msgid "move_down"
msgstr "Nach unten verschieben"
#. Default: "Move to top"
msgid "move_top"
msgstr ""
#. Default: "Move to bottom"
msgid "move_bottom"
msgstr ""
#. Default: "create"
msgid "query_create"
msgstr "Anfertigen"

View file

@ -104,6 +104,14 @@ msgstr "Move up"
msgid "move_down"
msgstr "Move down"
#. Default: "Move to top"
msgid "move_top"
msgstr "Move to top"
#. Default: "Move to bottom"
msgid "move_bottom"
msgstr "Move to bottom"
#. Default: "create"
msgid "query_create"
msgstr "create"

View file

@ -103,6 +103,14 @@ msgstr "Mueva hacia arriba"
msgid "move_down"
msgstr "Mueva hacia abajo"
#. Default: "Move to top"
msgid "move_top"
msgstr ""
#. Default: "Move to bottom"
msgid "move_bottom"
msgstr ""
#. Default: "create"
msgid "query_create"
msgstr "Crear"

View file

@ -104,6 +104,14 @@ msgstr "Déplacer vers le haut"
msgid "move_down"
msgstr "Déplacer vers le bas"
#. Default: "Move to top"
msgid "move_top"
msgstr "Déplacer en première position"
#. Default: "Move to bottom"
msgid "move_bottom"
msgstr "Déplacer en dernière position"
#. Default: "create"
msgid "query_create"
msgstr "Créer"

View file

@ -103,6 +103,14 @@ msgstr "Su"
msgid "move_down"
msgstr "Giù"
#. Default: "Move to top"
msgid "move_top"
msgstr ""
#. Default: "Move to bottom"
msgid "move_bottom"
msgstr ""
#. Default: "create"
msgid "query_create"
msgstr "Creazione in corso"

View file

@ -103,6 +103,14 @@ msgstr "Verplaats naar boven"
msgid "move_down"
msgstr "Verplaats naar beneden"
#. Default: "Move to top"
msgid "move_top"
msgstr ""
#. Default: "Move to bottom"
msgid "move_bottom"
msgstr ""
#. Default: "create"
msgid "query_create"
msgstr "Aanmaken"

View file

@ -48,9 +48,9 @@ function len(dict) {
return res;
}
function switchLanguage(selectWidget) {
function switchLanguage(selectWidget, siteUrl) {
var language = selectWidget.options[selectWidget.selectedIndex].value;
goto("/config/changeLanguage?language=" + language);
goto(siteUrl + '/config/changeLanguage?language=' + language);
}
var isIe = (navigator.appName == "Microsoft Internet Explorer");

Binary file not shown.

Before

Width:  |  Height:  |  Size: 234 B

After

Width:  |  Height:  |  Size: 234 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 218 B

After

Width:  |  Height:  |  Size: 218 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 B

BIN
gen/ui/arrowRight.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 B

BIN
gen/ui/arrowsDown.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

BIN
gen/ui/arrowsLeft.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

BIN
gen/ui/arrowsRight.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

BIN
gen/ui/arrowsUp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 B

View file

@ -50,13 +50,13 @@ class ToolWrapper(AbstractWrapper):
<tr valign="bottom">
<!-- Go to the first page -->
<td if="(startNumber != 0) and (startNumber != batchSize)"><img
class="clickable" src=":url('arrowLeftDouble')"
class="clickable" src=":url('arrowsLeft')"
title=":_('goto_first')"
onClick=":navBaseCall.replace('**v**', '0'+sortAndFilter)"/></td>
<!-- Go to the previous page -->
<td var="sNumber=startNumber - batchSize" if="startNumber != 0"><img
class="clickable" src=":url('arrowLeftSimple')"
class="clickable" src=":url('arrowLeft')"
title=":_('goto_previous')"
onClick=":navBaseCall.replace('**v**', \
str(sNumber)+sortAndFilter)"/></td>
@ -70,7 +70,7 @@ class ToolWrapper(AbstractWrapper):
<!-- Go to the next page -->
<td var="sNumber=startNumber + batchSize"
if="sNumber &lt; totalNumber"><img class="clickable"
src=":url('arrowRightSimple')" title=":_('goto_next')"
src=":url('arrowRight')" title=":_('goto_next')"
onClick=":navBaseCall.replace('**v**', \
str(sNumber)+sortAndFilter)"/></td>
@ -82,7 +82,7 @@ class ToolWrapper(AbstractWrapper):
sNumber= nbOfCountedPages * batchSize"
if="(startNumber != sNumber) and \
(startNumber != sNumber-batchSize)"><img class="clickable"
src=":url('arrowRightDouble')" title=":_('goto_last')"
src=":url('arrowsRight')" title=":_('goto_last')"
onClick=":navBaseCall.replace('**v**', \
str(sNumber)+sortAndFilter)"/></td>
</tr>

View file

@ -31,9 +31,9 @@ class AbstractWrapper(object):
<!-- Go to the first or previous page -->
<a if="ni.firstUrl" href=":ni.firstUrl"><img title=":_('goto_first')"
src=":url('arrowLeftDouble')"/></a><a
src=":url('arrowsLeft')"/></a><a
if="ni.previousUrl" href=":ni.previousUrl"><img
title=":_('goto_previous')" src=":url('arrowLeftSimple')"/></a>
title=":_('goto_previous')" src=":url('arrowLeft')"/></a>
<!-- Explain which element is currently shown -->
<span class="discreet">
@ -42,9 +42,9 @@ class AbstractWrapper(object):
<!-- Go to the next or last page -->
<a if="ni.nextUrl" href=":ni.nextUrl"><img title=":_('goto_next')"
src=":url('arrowRightSimple')"/></a><a
src=":url('arrowRight')"/></a><a
if="ni.lastUrl" href=":ni.lastUrl"><img title=":_('goto_last')"
src=":url('arrowRightDouble')"/></a>
src=":url('arrowsRight')"/></a>
</div>''')
pxNavigationStrip = Px('''
@ -188,10 +188,10 @@ class AbstractWrapper(object):
class="pageLink clickable">:_('app_connect')</a>
<!-- Language selector -->
<select if="ztool.showLanguageSelector()"
<select if="ztool.showLanguageSelector()" class="pageLink"
var2="languages=ztool.getLanguages();
defaultLanguage=languages[0]"
class="pageLink" onchange="switchLanguage(this)">
onchange=":'switchLanguage(this,%s)' % q(ztool.getSiteUrl())">
<option for="lg in languages" value=":lg"
selected=":lang == lg">:ztool.getLanguageName(lg)</option>
</select>