Updated the proostekrant to work properly again.
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
$page_title = 'Verifieer Schrijver';
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<div class="writer-verification">
|
||||
<h2>Verifieer Schrijver</h2>
|
||||
|
||||
<?php if ($article): ?>
|
||||
<div class="card mb-30">
|
||||
<h4><?= htmlspecialchars($article['title']) ?></h4>
|
||||
<p class="text-muted">
|
||||
Om dit artikel te bewerken, bevestig aub wie de schrijver is.
|
||||
</p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($_SESSION['error'])): ?>
|
||||
<div class="alert alert-error">
|
||||
<?= htmlspecialchars($_SESSION['error']) ?>
|
||||
<?php unset($_SESSION['error']); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<form action="/articles/verify-writer" method="post">
|
||||
<input type="hidden" name="article_id" value="<?= htmlspecialchars($article['id'] ?? '') ?>">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="writer_id">Selecteer de Schrijver *</label>
|
||||
<select name="writer_id"
|
||||
id="writer_id"
|
||||
required
|
||||
class="form-control">
|
||||
<option value="">-- Selecteer de schrijver --</option>
|
||||
<?php foreach ($users as $user): ?>
|
||||
<option value="<?= $user['id'] ?>"
|
||||
<?= ($article && $article['author_id'] == $user['id']) ? 'selected' : '' ?>>
|
||||
<?= htmlspecialchars($user['display_name']) ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
Verifieer en Ga Verder
|
||||
</button>
|
||||
<a href="/articles" class="btn btn-secondary">
|
||||
Terug naar Artikelen
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$content = ob_get_clean();
|
||||
require __DIR__ . '/../layouts/main.php';
|
||||
?>
|
||||
Reference in New Issue
Block a user