pod.mak 865B

123456789101112131415161718
  1. <%def name="Button(piId, pbWithLabel, psButtonCssClass, psButtonTitle, psButtonIcon, psButtonLabel)" >
  2. <button id='${piId}' type="button" class="btn" title="${psButtonTitle}"><i class="${psButtonIcon}"></i>${u'' if (pbWithLabel==False) else u' %s'%(psButtonLabel)}</button>
  3. </%def>
  4. <%def name="SaveButton(piId, pbWithLabel=False)" >
  5. ${Button(piId, pbWithLabel, 'btn', _('Save'), 'icon-g-edit', _('Save'))}
  6. </%def>
  7. <%def name="EditButton(piId, pbWithLabel=False)" >
  8. ${Button(piId, pbWithLabel, 'btn', _('Edit'), 'icon-g-edit', _('Edit'))}
  9. </%def>
  10. <%def name='CancelButton(piId, pbWithLabel=False)'>
  11. ${Button(piId, pbWithLabel, 'btn', _('Cancel'), 'icon-g-ban', _('Cancel'))}
  12. </%def>
  13. <%def name='AddButton(piId, pbWithLabel=False, psLabel=None)'>
  14. ${Button(piId, pbWithLabel, 'btn', psLabel or _('New'), 'icon-g-circle-plus', psLabel or _('New'))}
  15. </%def>