raiseInvenioWebSubmitWarning(_('Unable to move field at position %(x_from)s to position %(x_to)s on page %(x_page)s of submission \'%(x_sub)s%(x_subm)s\' - Invalid Field Position Numbers',
## failed to swap 2 fields - couldn't move field1 to temp position
try:
raiseInvenioWebSubmitWarning(_('Unable to swap field at position %(x_from)s with field at position %(x_to)s on page %(x_page)s of submission %(x_sub)s - could not move field at position %(x_subm)s to temporary field location',
## failed to swap 2 fields on submission page - couldn't move field2 to field1 position
try:
raiseInvenioWebSubmitWarning(_('Unable to swap field at position %(x_from)s with field at position %(x_to)s on page %(x_page)s of submission %(x_sub)s - could not move field at position %(x_posfrom)s to position %(x_posto)s. Please ask Admin to check that a field was not stranded in a temporary position',
## failed to swap 2 fields in submission page - couldnt swap field at temp position to field2 position
try:
raiseInvenioWebSubmitWarning(_('Unable to swap field at position %(x_from)s with field at position %(x_to)s on page %(x_page)s of submission %(x_sub)s - could not move field that was located at position %(x_posfrom)s to position %(x_posto)s from temporary position. Field is now stranded in temporary position and must be corrected manually by an Admin',
user_msg.append("""Unable to move field from position %s to position %s on page %s of submission %s%s - Field-order is now broken and must be corrected by Admin""" \
## failed to decrement the position of all fields below the field that was moved to a temp position
try:
raiseInvenioWebSubmitWarning(_('Unable to move field at position %(x_from)s to position %(x_to)s on page %(x_page)s of submission %(x_sub)s - could not decrement the position of the fields below position %(x_pos)s. Tried to recover - please check that field ordering is not broken',
## failed to increment position of fields in and below position into which 'movefromfieldposn' is to be inserted
try:
raiseInvenioWebSubmitWarning(_('Unable to move field at position %(x_from)s to position %(x_to)s on page %(x_page)s of submission %(x_sub)s%(x_subm)s - could not increment the position of the fields at and below position %(x_frompos)s. The field that was at position %(x_topos)s is now stranded in a temporary position.',
user_msg.append("""Unable to move field from position %s to position %s on page %s of submission %s%s - Field-order is now broken and must be corrected by Admin""" \