Files
godot-asset-library/templates/edit_asset_edit.phtml
2016-08-11 12:11:34 +03:00

33 lines
1.1 KiB
PHTML

<?php include("_header.phtml") ?>
<?php if(isset($data['original'])) {
$_asset_values = array_merge($data['original'], array_filter($data, function($value){return $value !== null;}));
} else {
$_asset_values = $data;
} ?>
<form class="form-horizontal" action="<?php echo raw($basepath) ?>/asset/edit/<?php echo url($data['edit_id']) ?>" method="post">
<?php include("_csrf.phtml") ?>
<fieldset>
<!-- Form Name -->
<legend>
Revise edit
<a class="btn btn-default btn-sm" href="<?php echo raw($basepath) ?>/asset/edit/<?php echo url($data['edit_id']) ?>">
Back
</a>
</legend>
<?php include("_asset_fields.phtml") ?>
<div class="form-group">
<label class="col-md-4 control-label" for="submit"></label>
<div class="col-md-4">
<button id="submit" class="btn btn-primary">Revise edit</button>
<a class="btn btn-default" href="<?php echo raw($basepath) ?>/asset/edit/<?php echo url($data['edit_id']) ?>">
Cancel
</a>
</div>
</div>
</fieldset>
</form>
<?php include("_footer.phtml") ?>