[gen] Added attribute Ref.numbered allowing to produce numbered lists of tied objects and controls for easily moving objects from one position to another.

This commit is contained in:
Gaetan Delannay 2014-04-15 19:52:18 +02:00
parent 036856f07e
commit 5de5372bec
13 changed files with 122 additions and 25 deletions

View file

@ -111,6 +111,10 @@ msgstr ""
msgid "move_bottom"
msgstr ""
#. Default: "Update the hereabove number and click here to move this element to a new position."
msgid "move_number"
msgstr ""
#. Default: "create"
msgid "query_create"
msgstr ""

View file

@ -111,6 +111,10 @@ msgstr ""
msgid "move_bottom"
msgstr ""
#. Default: "Update the hereabove number and click here to move this element to a new position."
msgid "move_number"
msgstr ""
#. Default: "create"
msgid "query_create"
msgstr ""

View file

@ -111,6 +111,10 @@ msgstr ""
msgid "move_bottom"
msgstr ""
#. Default: "Update the hereabove number and click here to move this element to a new position."
msgid "move_number"
msgstr ""
#. Default: "create"
msgid "query_create"
msgstr "Anfertigen"

View file

@ -112,6 +112,10 @@ msgstr "Move to top"
msgid "move_bottom"
msgstr "Move to bottom"
#. Default: "Update the hereabove number and click here to move this element to a new position."
msgid "move_number"
msgstr "Update the hereabove number and click here to move this element to a new position."
#. Default: "create"
msgid "query_create"
msgstr "create"

View file

@ -111,6 +111,10 @@ msgstr ""
msgid "move_bottom"
msgstr ""
#. Default: "Update the hereabove number and click here to move this element to a new position."
msgid "move_number"
msgstr ""
#. Default: "create"
msgid "query_create"
msgstr "Crear"

View file

@ -112,6 +112,10 @@ msgstr "Déplacer en première position"
msgid "move_bottom"
msgstr "Déplacer en dernière position"
#. Default: "Update the hereabove number and click here to move this element to a new position."
msgid "move_number"
msgstr "Modifiez le numéro ci-dessus et cliquez ici pour déplacer l'élément à une nouvelle position."
#. Default: "create"
msgid "query_create"
msgstr "Créer"

View file

@ -111,6 +111,10 @@ msgstr ""
msgid "move_bottom"
msgstr ""
#. Default: "Update the hereabove number and click here to move this element to a new position."
msgid "move_number"
msgstr ""
#. Default: "create"
msgid "query_create"
msgstr "Creazione in corso"

View file

@ -111,6 +111,10 @@ msgstr ""
msgid "move_bottom"
msgstr ""
#. Default: "Update the hereabove number and click here to move this element to a new position."
msgid "move_number"
msgstr ""
#. Default: "create"
msgid "query_create"
msgstr "Aanmaken"

View file

@ -1,3 +1,5 @@
var wrongTextInput = '#F9EDBE none';
// Functions related to user authentication
function cookiesAreEnabled() {
// Test whether cookies are enabled by attempting to set a cookie and then
@ -240,7 +242,20 @@ function askRefField(hookId, objectUrl, fieldName, innerRef, startNumber,
params[startKey] = startNumber;
if (action) params['action'] = action;
if (actionParams) {
for (key in actionParams) { params[key] = actionParams[key]; };
for (key in actionParams) {
if ((key == 'move') && (typeof actionParams[key] == 'object')) {
// Get the new index from an input field
var id = actionParams[key].id;
id = id.substr(0, id.length-4);
var input = document.getElementById(id);
if (isNaN(input.value)) {
input.style.background = wrongTextInput;
return;
}
params[key] = 'index_' + input.value;
}
else params[key] = actionParams[key];
};
}
var px = (scope == 'objs')? ':pxView': ':pxViewPickList';
askAjaxChunk(hookId, 'GET', objectUrl, fieldName + px, params, null,
@ -735,7 +750,6 @@ function doConfirm() {
}
}
var wrongTextInput = '#F9EDBE none';
// Function triggered when the user asks password reinitialisation
function doAskPasswordReinit() {
// Check that the user has typed a login

Binary file not shown.

Before

Width:  |  Height:  |  Size: 322 B

After

Width:  |  Height:  |  Size: 327 B

Before After
Before After

BIN
gen/ui/move.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 321 B

After

Width:  |  Height:  |  Size: 316 B

Before After
Before After