mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
9dc9a712c4
- Updated sprache, orgform, organisationseinheit and vorlage to the new widget - Changed method getRecursiveList of model Organisationseinheit_model - Updated vilesci_menu_main.inc.php - Changed method loadDropDownView of WidgetLib: if a selected value is not given, by default it is set as HTML_DEFAULT_VALUE - Updated all the affectd files
33 lines
1.2 KiB
PHP
33 lines
1.2 KiB
PHP
<?php
|
|
$this->load->view('templates/header', array('title' => 'VorlageEdit', 'jsoneditor' => true));
|
|
?>
|
|
<div class="row">
|
|
<div class="span4">
|
|
<h2>Vorlage: <?php echo $vorlage->vorlage_kurzbz; ?></h2>
|
|
<form method="post" action="../save">
|
|
Bezeichnung: <input type="text" name="bezeichnung" value="<?php echo $vorlage->bezeichnung; ?>" />
|
|
Anmerkung: <input type="text" name="anmerkung" value="<?php echo $vorlage->anmerkung; ?>" /><br/>
|
|
|
|
MimeType:<?php echo $this->widgetlib->widget("mimetype_widget", array('mimetype' => $vorlage->mimetype)); ?>
|
|
|
|
Attribute: <?php echo $this->widgetlib->widget("jsoneditor_widget", array('json' => $vorlage->attribute)); ?>
|
|
|
|
<input type="hidden" name="attribute" id="attribute" value="<?=$vorlage->attribute?>" />
|
|
<input type="hidden" name="vorlage_kurzbz" value="<?php echo $vorlage->vorlage_kurzbz; ?>" />
|
|
<button type="submit" onclick="getJSON(this.form);">Save</button>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript" >
|
|
// get json
|
|
function getJSON(form)
|
|
{
|
|
form.elements["attribute"].value = JSON.stringify(jsoneditor.get(), null, 2);
|
|
//alert(form.elements["attribute"].value);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|