<h2> {{#string}} emailTemplates,email {{/string}} </h2>

{{#id}}
<form method="POST" action="/email/template/{{id}}/edit">
   <input type="hidden" name="id" value="{{id}}" />
   <input type="hidden" name="_method" value="put" />
{{/id}}
{{^id}}
<form method="POST" action="/email/template">
   <input type="hidden" name="id" value="" />
{{/id}}
    <div class='row'>
        <div class="col-12 g-3">
            <div class="card">
                <div class="card-header">Header</div>
                <div class="card-body">
                    <div class="row g-3">
                        <div class="col-xs-12 col-3">
                            <label class="form-label">{{#string}} name {{/string}}</label>
                            <input type="text" class="form-control" name='code' value="{{code}}">
                        </div>
                        <div class="col-xs-12 col-9">
                            <label class="form-label">{{#string}} title {{/string}}</label>
                            <input type="text" class="form-control" name='name' value="{{name}}">
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-xs-12 g-3">
                            <label class="form-label">{{#string}} content {{/string}}</label>
                            <textarea id="wysiwyg" name="descricao">{{description}}</textarea>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-6 g-3"> <input class="btn btn-success btn-block" type="submit" value="Salvar">
        </div>
        <div class="col-md-6 g-3"> <a class="btn btn-danger btn-block" href="/people">Cancelar</a> </div>
    </div>

</form>

<script>
    $('#wysiwyg').trumbowyg();
</script>