Section 7. Right to trial by jury. The right of trial by jury shall remain inviolate; but in civil actions, three-fourths of the jury may render a verdict, and the legislature may provide that in all cases of misdemeanors five-sixths of the jury may render a verdict. A trial by jury may be waived in all criminal cases, by the consent of all parties, expressed in open court, and in civil actions by the consent of the parties, signified in such manner as may be prescribed by law. In civil actions the jury may consist of twelve or of any number less than twelve upon which the parties may agree in open court. Provided, that in cases of misdemeanor and in civil actions within the jurisdiction of any court inferior to the district court, whether such case or action be tried in such inferior court or in district court, the jury shall consist of not more than six.