rpg-westreiche/westreiche_website/views/character_form.php

30 lines
1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/** @var array $values */
/** @var array|null $character */
/** @var array $owners */
/** @var string $error */
?>
<div class="page-head">
<div>
<h1>Charakter erschaffen</h1>
<p class="lede">
Nach der Hausregel V1.1 werden die Werte 14, 12, 11, 10, 9 und 7 auf Stärke, Konstitution,
Geschicklichkeit, Intelligenz, Weisheit und Charisma verteilt. Die Rasse entfällt – in der
Westreiche spielen Menschen.
</p>
</div>
</div>
<section class="panel">
<?php if ($error !== ''): ?>
<p class="alert alert-error"><?= e($error) ?></p>
<?php endif; ?>
<form method="post" action="<?= e(url('/characters/new')) ?>" class="form-grid">
<?= csrf_field() ?>
<?php require WS_ROOT . '/views/_fields.php'; ?>
<div class="actions">
<button class="btn btn-primary" type="submit">Bogen anlegen</button>
<a class="btn btn-ghost" href="<?= e(url('/')) ?>">Abbrechen</a>
</div>
</form>
</section>