[ 'outer_class' => 'col-12', 'inrer_class' => 'form-control', 'type' => 'text', 'source' => 'user' ], 'form' => [ [ 'label' => 'Πειθαρχική υπόθεση' ], [ 'name' => 'of_student', 'label' => 'τ.. μαθητ...', 'attributes' => ['required'] ], [ 'name' => 'of_department', 'label' => 'του τμήματος...', 'attributes' => ['required'] ], [ 'name' => 'date', 'label' => 'Ημερομηνία', 'type' => 'date', 'class' => 'col-5', 'attributes' => ['required'] ], [ 'name' => 'time', 'label' => 'Ώρα', 'class' => 'col-4', 'attributes' => ['required'] ], [ 'name' => 'place', 'label' => '', 'attributes' => ['required'] ], [ 'name' => 'rapporteur', 'label' => 'εισηγητής', 'attributes' => ['required'] ], [ 'name' => 'charge', 'label' => 'κατηγορία', 'attributes' => ['required'] ], [ 'name' => 'apology', 'label' => 'Απολογία', // + of_student 'type' => 'textarea', 'attributes' => [] ], [ 'name' => 'decision_reasoning', 'label' => 'Αιτιολογία απόφασης (πχ. Επειδή...)', 'type' => 'textarea', 'attributes' => ['required'] ], [ 'label' => 'Το Πειθαρχικό Συμβούλιο' ], [ 'name' => 'decision', 'label' => 'Αποφασίζει', 'type' => 'select', 'options' => [ 'προφορική επίπληξη', 'ωριαία αποβολή', 'ημερήσια αποβολή' ], 'attributes' => [] ], [ 'name' => 'decision_more', 'label' => '(μη τυποποιημένo κείμενο απόφασης)', 'attributes' => [] ], [ 'name' => 'request', 'label' => 'Αίτημα (πχ, Παρακαλώ να μου χορηγήσετε ...)', 'type' => 'textarea', 'attributes' => ['required'] ], [ 'name' => 'president', 'label' => 'Ημερομηνία αίτησης', 'type' => 'date', 'attributes' => ['required'] ], [ 'name' => 'members', 'label' => '', 'type' => 'select', 'attributes' => ['required', 'multiple'], 'source' => 'teachers' ] ] ]; "); echo '
';
// var_dump($a);
$b = json_decode(json_encode($a));
print_r($b);
echo '
';