Lines Matching refs:form

50         // form submit
147 * Render HTML output, e.g. helpful text and a form
193 $form = new Form(['enctype' => 'multipart/form-data', 'id' => 'plugin__struct_json']);
194 $form->setHiddenField('do', 'admin');
195 $form->setHiddenField('page', 'struct_schemas');
196 $form->setHiddenField('table', $schema->getTable());
199 $form->addFieldsetOpen($this->getLang('export'));
200 $form->addButton('export', $this->getLang('btn_export'));
201 $form->addFieldsetClose();
203 $form->addFieldsetOpen($this->getLang('import'));
204 $form->addElement(new InputElement('file', 'schemafile'))->attr('accept', '.json');
205 $form->addButton('import', $this->getLang('btn_import'));
206 $form->addHTML('<p>' . $this->getLang('import_warning') . '</p>');
207 $form->addFieldsetClose();
210 $form->addFieldsetOpen($this->getLang('admin_csvexport'));
211 $form->addTagOpen('legend');
212 $form->addHTML($this->getLang('admin_csvexport_datatype'));
213 $form->addTagClose('legend');
214 $form->addRadioButton('exporttype', $this->getLang('admin_csv_page'))
217 $form->addRadioButton('exporttype', $this->getLang('admin_csv_lookup'))
220 $form->addRadioButton('exporttype', $this->getLang('admin_csv_serial'))
223 $form->addHTML('<br>');
224 $form->addButton('exportcsv', $this->getLang('btn_export'));
225 $form->addFieldsetClose();
227 $form->addFieldsetOpen($this->getLang('admin_csvimport'));
228 $form->addTagOpen('legend');
229 $form->addHTML($this->getLang('admin_csvimport_datatype'));
230 $form->addTagClose('legend');
231 $form->addRadioButton('importtype', $this->getLang('admin_csv_page'))
235 $form->addRadioButton('importtype', $this->getLang('admin_csv_lookup'))
238 $form->addRadioButton('importtype', $this->getLang('admin_csv_serial'))
241 $form->addHTML('<br>');
242 $form->addElement(new InputElement('file', 'csvfile'))->attr('accept', '.csv');
243 $form->addButton('importcsv', $this->getLang('btn_import'));
244 $form->addCheckbox('createPage', 'Create missing pages')->addClass('block edit');
245 $form->addHTML(
249 $form->addFieldsetClose();
251 return $form->toHTML();
262 $form = new Form(['id' => 'plugin__struct_delete']);
263 $form->setHiddenField('do', 'admin');
264 $form->setHiddenField('page', 'struct_schemas');
265 $form->setHiddenField('table', $schema->getTable());
267 $form->addFieldsetOpen($this->getLang('btn_delete'));
268 $form->addHTML($this->locale_xhtml('delete_intro'));
269 $form->addTextInput('confirm', $this->getLang('del_confirm'));
270 $form->addButton('delete', $this->getLang('btn_delete'));
271 $form->addFieldsetClose();
273 $form->addFieldsetOpen($this->getLang('btn_clear'));
274 $form->addHTML($this->locale_xhtml('clear_intro'));
275 $form->addTextInput('confirm_clear', $this->getLang('clear_confirm'));
276 $form->addButton('clear', $this->getLang('btn_clear'));
277 $form->addFieldsetClose();
279 return $form->toHTML();
289 $form = new Form();
290 $form->addClass('struct_newschema');
291 $form->addFieldsetOpen($this->getLang('create'));
292 $form->setHiddenField('do', 'admin');
293 $form->setHiddenField('page', 'struct_schemas');
294 $form->addTextInput('table', $this->getLang('schemaname'));
295 $form->addButton('', $this->getLang('save'));
296 $form->addHTML('<p>' . $this->getLang('createhint') . '</p>'); // FIXME is that true? we probably could
297 $form->addFieldsetClose();
298 return $form->toHTML();