(a)
As a condition for the release of a minor pursuant to Section 628.1 and subject to Sections 631 and 632, the probation officer shall require the minor to sign, and may also require his or her parent, guardian, or relative to sign, a written promise to appear before the probation officer at the juvenile hall or other suitable place designated by the probation officer at a specified time.
(b)
A minor who is 14 years of age or older who is taken into custody by a peace officer for the commission or attempted commission of a felony offense shall not be released until the minor has signed a written promise to appear before the probation officer at the juvenile hall or other suitable place designated by the peace officer, or has been given an order to appear at the juvenile court on a date certain. The peace officer may also require the minor’s parent, guardian, or relative to sign a written promise to appear at the same place designated for the minor.