{{define "title"}}{{if .IsNew}}Nouveau panel{{else}}Éditer — {{.Panel.Name}}{{end}}{{end}} {{define "header"}}{{if .IsNew}}Créer un panel{{else}}Éditer {{.Panel.Name}}{{end}}{{end}} {{define "content"}}
{{if and .IsNew .Guilds}}

Les rôles et channels chargés correspondent au serveur sélectionné.

{{end}}

Informations du panel

{{if index .Errors "name"}}

{{index .Errors "name"}}

{{end}}
{{if index .Errors "embed_title"}}

{{index .Errors "embed_title"}}

{{end}}
{{.Panel.EmbedColor}}
{{if .TextChans}} {{else}} {{end}}

Types de tickets

{{range $i, $t := .Panel.Types}} {{template "type_block" dict "Type" $t "Index" $i "CSRFToken" $.CSRFToken "Roles" $.Roles "TextChans" $.TextChans "Categories" $.Categories}} {{end}}
{{if eq (len .Panel.Types) 0}}

Aucun type. Cliquez sur "+ Ajouter un type".

{{end}}

Aperçu

{{if .Panel.EmbedTitle}}{{.Panel.EmbedTitle}}{{else}}Titre du panel{{end}}

{{if .Panel.EmbedDescription.Valid}}

{{.Panel.EmbedDescription.String}}

{{end}} {{if .Panel.Types}}
{{range .Panel.Types}} {{.ButtonEmoji}} {{.ButtonLabel}} {{end}}
{{end}}
Annuler
{{end}} {{define "type_block"}}
Type {{add .Index 1}}
{{if .Roles}} {{else}} {{end}}
{{if .Categories}} {{else}} {{end}}
{{if .TextChans}} {{else}} {{end}}
{{if .TextChans}} {{else}} {{end}}
{{end}}