~shikharkohli/sahana-eden/gsoc1

« back to all changes in this revision

Viewing changes to models/06_lms.py

  • Committer: Shikhar Kohli
  • Date: 2010-08-11 18:40:09 UTC
  • mfrom: (802.1.156 eden)
  • Revision ID: shikharkohli@gmail.com-20100811184009-yy8zag5dowlam0ip
Merge trunk and update (a bit) of JS

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
    table.name.comment = SPAN("*", _class="req"), DIV( _class="tooltip", _title=Tstr("Unit Name") + "|" + Tstr("Complete Unit Label for e.g. meter for m."))
82
82
    table.base_unit.comment = SPAN("*", _class="req"), DIV( _class="tooltip", _title=Tstr("Base Unit") + "|" + Tstr("The entered unit links to this unit. For e.g. if you are entering m for meter then choose kilometer(if it exists) and enter the value 0.001 as multiplicator."))
83
83
    table.multiplicator.comment = SPAN("*", _class="req"), DIV( _class="tooltip", _title=Tstr("Multiplicator") + "|" + Tstr("If Unit = m, Base Unit = Km, then multiplicator is 0.0001 since 1m = 0.001 km."))
84
 
    ADD_UNIT = T('Add Unit ')
 
84
    ADD_UNIT = T('Add Unit')
85
85
    LIST_UNITS = T('List Units')
86
86
    s3.crud_strings[tablename] = Storage(
87
87
        title_create = ADD_UNIT,
138
138
    table.attachment.label = T("Image/Other Attachment")
139
139
    table.attachment.comment = DIV( _class="tooltip", _title=Tstr("Image/Attachment") + "|" + Tstr("A snapshot of the location or additional documents that contain supplementary information about the Site can be uploaded here."))
140
140
    table.comments.comment = DIV( _class="tooltip", _title=Tstr("Additional Comments") + "|" + Tstr("Use this space to add additional comments and notes about the Site/Warehouse."))
141
 
    ADD_SITE = T('Add Site ')
 
141
    ADD_SITE = T('Add Site')
142
142
    LIST_SITES = T('List Sites')
143
143
    s3.crud_strings[tablename] = Storage(
144
144
        title_create = ADD_SITE,
212
212
                    migrate=migrate)
213
213
    table.uuid.requires = IS_NOT_IN_DB(db,'%s.uuid' % tablename)
214
214
    table.name.requires = IS_NOT_EMPTY()
215
 
    table.name.comment = SPAN("*", _class="req"), DIV( _class="tooltip", _title=T("Storage Bin Type|Name of Storage Bin Type."))
 
215
    table.name.comment = SPAN("*", _class="req"), DIV( _class="tooltip", _title=Tstr("Storage Bin Type") + "|" + Tstr("Name of Storage Bin Type."))
216
216
    table.description.comment = DIV( _class="tooltip", _title=Tstr("Description of Bin Type") + "|" + Tstr("Use this space to add a description about the Bin Type."))
217
217
    ADD_STORAGE_BIN_TYPE = T('Add Storage Bin Type')
218
218
    LIST_STORAGE_BIN_TYPES = T('List Storage Bin Type(s)')
436
436
    table.way_bill.label = T("Shipment/Way Bills")
437
437
    table.way_bill.comment = SPAN("*", _class="req")
438
438
    table.sender_site.requires = IS_IN_DB(db, 'lms_site.id', 'lms_site.name')
439
 
    table.sender_site.comment = DIV(A(T('Add Sender Site'), _class='colorbox', _href=URL(r=request, c='lms', f='site', args='create', vars=dict(format='popup')), _target='top'), DIV( _class="tooltip", _title=T("Add Site|Add a new Site from where the Item is being sent.")))
 
439
    table.sender_site.comment = DIV(A(T('Add Sender Site'), _class='colorbox', _href=URL(r=request, c='lms', f='site', args='create', vars=dict(format='popup')), _target='top'), DIV( _class="tooltip", _title=Tstr("Add Site") + "|" + Tstr("Add a new Site from where the Item is being sent.")))
440
440
    table.recipient_site.requires = IS_IN_DB(db, 'lms_site.id', 'lms_site.name')
441
441
    table.recipient_site.comment = DIV(A(T('Add Recipient Site'), _class='colorbox', _href=URL(r=request, c='lms', f='site', args='create', vars=dict(format='popup')), _target='top'), DIV( _class="tooltip", _title=Tstr("Add Recipient") + "|" + Tstr("Add a new Site where the Item is being sent to.")))
442
442
    ADD_SHIPMENT = T('Add Shipment/Way Bills')