2016-04-04 12:36:30 +00:00
<ol class="breadcrumb">
2017-03-07 14:30:56 +00:00
<li><a href="/"> {{ # translate }} Home {{ / translate }} </a></li>
<li><a href="/templates/"> {{ # translate }} Templates {{ / translate }} </a></li>
<li class="active"> {{ # translate }} Edit Template {{ / translate }} </li>
2016-04-04 12:36:30 +00:00
</ol>
2017-03-07 14:30:56 +00:00
<h2> {{ # translate }} Edit Template {{ / translate }} <a class="btn btn-default btn-xs" href="/templates/" role="button"><span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> {{ # translate }} Back to templates {{ / translate }} </a></h2>
2016-04-04 12:36:30 +00:00
<hr>
<form method="post" class="delete-form" id="templates-delete" action="/templates/delete">
<input type="hidden" name="_csrf" value=" {{ csrfToken }} ">
<input type="hidden" name="id" value=" {{ id }} " />
</form>
2017-10-16 15:29:57 +00:00
<form method="post" class="duplicate-form" id="templates-duplicate" action="/templates/duplicate">
<input type="hidden" name="_csrf" value=" {{ csrfToken }} ">
<input type="hidden" name="id" value=" {{ id }} " />
</form>
2016-04-04 12:36:30 +00:00
<form class="form-horizontal" method="post" action="/templates/edit">
<input type="hidden" name="_csrf" value=" {{ csrfToken }} ">
<input type="hidden" name="id" value=" {{ id }} " />
<div class="form-group">
2017-03-07 14:30:56 +00:00
<label for="template-name" class="col-sm-2 control-label"> {{ # translate }} Template name {{ / translate }} </label>
2016-04-04 12:36:30 +00:00
<div class="col-sm-10">
2017-03-07 14:30:56 +00:00
<input type="text" class="form-control input-lg" name="name" id="template-name" value=" {{ name }} " placeholder=" {{ # translate }} Name for this template, eg. Newsletter {{ / translate }} ">
2016-04-04 12:36:30 +00:00
</div>
</div>
2017-03-04 17:37:41 +00:00
{{ > merge_tag_reference mergeTagReferenceFooterText = 'In addition to that any custom field can have its own merge tag.' }}
2016-04-04 12:36:30 +00:00
2017-03-05 00:54:09 +00:00
{{ > plaintext }}
2016-04-04 12:36:30 +00:00
2017-03-02 17:52:40 +00:00
{{ # if disableWysiwyg }}
2017-03-05 00:54:09 +00:00
{{ > codeeditor }}
2017-03-02 17:52:40 +00:00
{{ else }}
2017-03-05 00:54:09 +00:00
{{ > ( lookup . 'editorName' ) }}
2017-03-02 17:52:40 +00:00
{{ / if }}
2016-04-04 12:36:30 +00:00
<div class="form-group">
2017-03-07 14:30:56 +00:00
<label for="template-description" class="col-sm-2 control-label"> {{ # translate }} Description {{ / translate }} </label>
2016-04-04 12:36:30 +00:00
<div class="col-sm-10">
2017-03-07 14:30:56 +00:00
<textarea class="form-control" id="template-description" name="description" rows="3" placeholder=" {{ # translate }} Optional comments about this template {{ / translate }} "> {{ description }} </textarea>
<span class="help-block"> {{ # translate }} HTML is allowed {{ / translate }} </span>
2016-04-04 12:36:30 +00:00
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="pull-right">
2017-10-16 15:29:57 +00:00
<button type="submit" form="templates-duplicate" class="btn btn-default"> {{ # translate }} Duplicate {{ / translate }} </button>
2017-03-07 14:30:56 +00:00
<button type="submit" form="templates-delete" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> {{ # translate }} Delete Template {{ / translate }} </button>
2016-04-04 12:36:30 +00:00
</div>
2017-03-07 14:30:56 +00:00
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> {{ # translate }} Update {{ / translate }} </button>
2016-04-04 12:36:30 +00:00
</div>
</div>
</form>