Improvement of module_creator

This commit is contained in:
Xenomporio 2022-06-28 17:07:05 +02:00
parent 33b73f56aa
commit 29a5535c59
2 changed files with 18 additions and 3 deletions

View File

@ -116,7 +116,7 @@ if ($argc >= 2) {
// <tr><td>{|Bezeichnung|}:*</td><td><input type="text" id="bezeichnung" name="bezeichnung" value="[BEZEICHNUNG]" size="40"></td></tr>
if ($row['Field'] != 'id') {
$edit_form = $edit_form . '<tr><td>{|' . $row['Field'] . '|}:</td><td><input type="text" name="' . $row['Field'] . '" value="[' . strtoupper($row['Field']) . ']" size="40"></td></tr>' . "\n";
$edit_form = $edit_form . '<tr><td>{|' . ucfirst($row['Field']) . '|}:</td><td><input type="text" name="' . $row['Field'] . '" value="[' . strtoupper($row['Field']) . ']" size="40"></td></tr>' . "\n";
}
echo("\n");
@ -138,7 +138,7 @@ if ($argc >= 2) {
$php_file_contents = file_get_contents($php_template_file_name);
if (empty($php_file_contents)) {
echo("Failed to load" . $php_template_file_name . "\n");
echo("Failed to load " . $php_template_file_name . "\n");
exit;
}

View File

@ -17,7 +17,7 @@
<div class="col-xs-12 col-md-12 col-md-height">
<div class="inside inside-full-height">
<fieldset>
<legend>{|PLACEHOLDER_LEGEND|}</legend>
<legend>{|PLACEHOLDER_LEGEND|}</legend><i>Info like this.</i>
<table width="100%" border="0" class="mkTableFormular">
PLACEHOLDER_FIELDS
</table>
@ -26,6 +26,21 @@
</div>
</div>
</div>
<!-- Example for 2nd row
<div class="row">
<div class="row-height">
<div class="col-xs-12 col-md-12 col-md-height">
<div class="inside inside-full-height">
<fieldset>
<legend>{|Another legend|}</legend>
<table width="100%" border="0" class="mkTableFormular">
PLACEHOLDER_FIELDS
</table>
</fieldset>
</div>
</div>
</div>
</div> -->
<input type="submit" name="submit" value="Speichern" style="float:right"/>
</form>
</div>