bifroest/app/templates/workspace_new.html
2026-10-27 08:34:17 +01:00

30 lines
1.3 KiB
HTML

{% extends "base.html" %}
{% block title %}Workspace anlegen{% endblock %}
{% block content %}
<h1>Workspace anlegen</h1>
<div class="card"><div class="card-body">
<form method="post" action="/workspaces" class="stack">
<input type="hidden" name="_csrf" value="{{ p.csrf }}">
<div class="form-group">
<label for="team_id">Team</label>
<select id="team_id" name="team_id" required>
{% for t in teams %}<option value="{{ t.id }}" {% if t.id == form.team_id %}selected{% endif %}>{{ t.name }}</option>{% endfor %}
</select>
<p class="form-hint">Der Workspace gehört genau diesem Team. Daraus folgen später Gateway-Zugang und Limits.</p>
</div>
<div class="form-group">
<label for="name">Name</label>
<input id="name" name="name" required maxlength="200" value="{{ form.name }}">
</div>
<div class="form-group">
<label for="description">Beschreibung</label>
<textarea id="description" name="description" rows="3">{{ form.description }}</textarea>
</div>
{% if error %}<p class="form-error">{{ error }}</p>{% endif %}
<div class="cluster">
<button class="btn btn-primary" type="submit">Anlegen</button>
<a class="btn btn-ghost" href="/workspaces">Abbrechen</a>
</div>
</form>
</div></div>
{% endblock %}