Lines Matching refs:form
40 * @return string the HTML for the editor form
45 $form = new Form(['method' => 'POST', 'id' => 'plugin__struct_editor']);
46 $form->setHiddenField('do', 'admin');
47 $form->setHiddenField('page', 'struct_schemas');
48 $form->setHiddenField('table', $this->schema->getTable());
49 $form->setHiddenField('schema[id]', $this->schema->getId());
51 $form->addHTML('<table class="inline">');
52 $form->addHTML("<tr>
63 $form->addHTML($this->adminColumn($col->getColref(), $col));
67 $form->addHTML($this->adminColumn('new1', new Column($this->schema->getMaxsort() + 10, new Text()), 'new'));
69 $form->addHTML('</table>');
71 $form->addFieldsetOpen();
74 $form->addHTML(
79 $form->addFieldsetClose();
82 $form->addButton('save', 'Save')->attr('type', 'submit');
83 return $form->toHTML() . $this->initJSONEditor();
111 * @param string $key The key to use in the form