{{ (isEditMode ? 'templateEditor.title.edit' : 'templateEditor.title.create') | translate }}

@if (submitAttempted() && !formValid()) { } @if (isWhatsAppLike()) { @if (isWhatsApp()) { }
{{ 'templateEditor.field.category' | translate }}
@for (cat of categories; track cat) { }
@if (headerType() === 'text') { } @if (headerType() === 'media') { }
{{ 'templateEditor.field.body' | translate }}
*bold*  _italic_  ~strike~
@for (emoji of emojis; track emoji) { }
{{ bodyLength() }}/1024
@if (isAuthCategory()) {
{{ 'templateEditor.field.otp' | translate }}
} @else {
{{ 'templateEditor.field.buttons' | translate }}
@for (opt of buttonTypeOptions; track opt.type) { }
@for (btn of buttons(); track btn.id) {
{{ buttonTypeLabelKey(btn.type) | translate }}
} @for (err of buttonErrors(); track err) { {{ err | translate }} }
} } @else {
{{ 'templateEditor.field.body' | translate }} {{ lineBodyLength() }}/1024
{{ 'templateEditor.field.buttons' | translate }} @for (btn of lineButtons(); track btn.id) {
}
}