[gen] Replaced, in PXs, function 'img' by function 'url', that returns the URL of an external resource to be included in the XHTML, like an image, a Javascript file or a CSS file.
This commit is contained in:
parent
f2b19e4141
commit
efd918f175
11 changed files with 83 additions and 85 deletions
|
@ -36,12 +36,12 @@ class Action(Field):
|
|||
<input if="field.confirm" type="button" class="button"
|
||||
var="labelConfirm=_(field.labelId + '_confirm')"
|
||||
value=":ztool.truncateValue(label)" title=":label"
|
||||
style=":img('buttonAction', bg=True)"
|
||||
style=":url('buttonAction', bg=True)"
|
||||
onclick=":'askConfirm(%s,%s,%s)' % (q('form'), q(formId), \
|
||||
q(labelConfirm))"/>
|
||||
<input if="not field.confirm" type="submit" class="button" name="do"
|
||||
value=":ztool.truncateValue(label)" title=":label"
|
||||
style=":img('buttonAction', bg=True)"/>
|
||||
style=":url('buttonAction', bg=True)"/>
|
||||
</form>''')
|
||||
|
||||
# It is not possible to edit an action, not to search it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue