mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
33 lines
998 B
PHP
33 lines
998 B
PHP
@extends('layout.default')
|
|
|
|
@section('content')
|
|
<div class="col-sm-3 col-sm-offset-3 col-md-4 col-md-offset-2 main">
|
|
|
|
<h1 class="page-header"><?php echo $title; ?></h1>
|
|
|
|
<script>Grocy.EditMode = '<?php echo $mode; ?>';</script>
|
|
|
|
<?php if ($mode == 'edit') : ?>
|
|
<script>Grocy.EditObjectId = <?php echo $quantityunit->id; ?>;</script>
|
|
<?php endif; ?>
|
|
|
|
<form id="quantityunit-form">
|
|
|
|
<div class="form-group">
|
|
<label for="name">Name</label>
|
|
<input type="text" class="form-control" required id="name" name="name" value="<?php if ($mode == 'edit') echo $quantityunit->name; ?>">
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="description">Description</label>
|
|
<textarea class="form-control" rows="2" id="description" name="description"><?php if ($mode == 'edit') echo $quantityunit->description; ?></textarea>
|
|
</div>
|
|
|
|
<button id="save-quantityunit-button" type="submit" class="btn btn-default">Save</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
@stop
|