59 lines
2.8 KiB
PHP
59 lines
2.8 KiB
PHP
<div class="mw-modal-frame">
|
|
|
|
<div class="mw-modal-head">
|
|
<div style="display:flex;align-items:center;gap:7px">
|
|
<span class="mbx-badge-mute">Benutzer</span>
|
|
<span style="font-size:12px;color:var(--mw-t3)">— Neu anlegen</span>
|
|
</div>
|
|
<button wire:click="$dispatch('closeModal')" class="mw-modal-close">
|
|
<svg width="13" height="13" viewBox="0 0 13 13" fill="none"><path d="M1 1l11 11M12 1L1 12" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="mw-modal-body">
|
|
<div class="mw-modal-grid2">
|
|
<div>
|
|
<label class="mw-modal-label">Name / Benutzername</label>
|
|
<input type="text" wire:model.defer="name" class="mw-modal-input" placeholder="max.mustermann">
|
|
@error('name') <div class="mw-modal-error">{{ $message }}</div> @enderror
|
|
</div>
|
|
<div>
|
|
<label class="mw-modal-label">E-Mail</label>
|
|
<input type="email" wire:model.defer="email" class="mw-modal-input" placeholder="max@example.com">
|
|
@error('email') <div class="mw-modal-error">{{ $message }}</div> @enderror
|
|
</div>
|
|
</div>
|
|
<div style="margin-top:12px">
|
|
<label class="mw-modal-label">Passwort</label>
|
|
<input type="password" wire:model.defer="password" class="mw-modal-input" placeholder="Mindestens 8 Zeichen">
|
|
@error('password') <div class="mw-modal-error">{{ $message }}</div> @enderror
|
|
</div>
|
|
<div class="mw-modal-grid2" style="margin-top:12px">
|
|
<div>
|
|
<label class="mw-modal-label">Rolle</label>
|
|
<select wire:model.defer="role" class="mw-modal-input">
|
|
@foreach($roles as $r)
|
|
<option value="{{ $r->value }}">{{ $r->label() }}</option>
|
|
@endforeach
|
|
</select>
|
|
<div class="mw-modal-hint">Admin = voller Zugriff · Operator = Mail/Domains · Viewer = nur lesen</div>
|
|
</div>
|
|
<div style="padding-top:22px">
|
|
<label class="sec-check">
|
|
<input type="checkbox" wire:model.defer="is_active">
|
|
<span style="font-size:12.5px;color:var(--mw-t2)">Sofort aktiv</span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mw-modal-foot">
|
|
<button wire:click="$dispatch('closeModal')" class="mw-btn-cancel">Abbrechen</button>
|
|
<button wire:click="save" class="mw-btn-primary">
|
|
<svg width="11" height="11" viewBox="0 0 11 11" fill="none"><path d="M5.5 1v9M1 5.5h9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>
|
|
Erstellen
|
|
</button>
|
|
</div>
|
|
|
|
</div>
|