Work may be required of an indigent, who is eligible to receive benefits under Section 17000, and who is not incapacitated by reason of age, disease, or accident, as a condition of relief. This work shall be created for the purpose of assisting in his or her rehabilitation and the preservation of his or her self-respect.