Layout angepasst
This commit is contained in:
@@ -96,7 +96,7 @@ require_once '../inc/header.php';
|
||||
<?php if ($edit_mode): ?>
|
||||
<input type="hidden" name="id" value="<?php echo htmlspecialchars($edit_color['id']); ?>">
|
||||
<?php endif; ?>
|
||||
<div class="row g-3 align-items-end">
|
||||
<div class="row g-1 align-items-end">
|
||||
<div class="col-md-5">
|
||||
<label for="name" class="form-label">Name der Farbe</label>
|
||||
<input type="text" class="form-control" id="name" name="name" value="<?php echo htmlspecialchars($edit_color['name'] ?? ''); ?>" required>
|
||||
@@ -105,16 +105,15 @@ require_once '../inc/header.php';
|
||||
<div class="col-md-5">
|
||||
<label for="hex_code" class="form-label">Hex-Code</label>
|
||||
<input type="color" class="form-control form-control-color" id="hex_code" name="hex_code" value="<?php echo htmlspecialchars($edit_color['hex_code'] ?? '#'); ?>">
|
||||
<div class="form-text" style="visibility: hidden;"> </div>
|
||||
</div>
|
||||
<div class="col-md-2 d-flex flex-column justify-content-end">
|
||||
<div class="d-flex w-100">
|
||||
<button type="submit" class="btn btn-<?php echo $edit_mode ? 'success' : 'primary'; ?> w-100 me-2">
|
||||
<?php echo $edit_mode ? 'Speichern' : 'Hinzufügen'; ?>
|
||||
</button>
|
||||
<?php if ($edit_mode): ?>
|
||||
<a href="colors.php" class="btn btn-secondary w-100">Abbrechen</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="col-12 d-flex justify-content-start">
|
||||
<button type="submit" class="btn btn-<?php echo $edit_mode ? 'success' : 'primary'; ?> w-auto me-2">
|
||||
<?php echo $edit_mode ? 'Speichern' : 'Hinzufügen'; ?>
|
||||
</button>
|
||||
<?php if ($edit_mode): ?>
|
||||
<a href="colors.php" class="btn btn-secondary w-auto">Abbrechen</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user