2016-04-04 12:36:30 +00:00
<ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/templates/">Templates</a></li>
<li class="active">Edit Template</li>
</ol>
<h2>Edit Template <a class="btn btn-default btn-xs" href="/templates/" role="button"><span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> Back to templates</a></h2>
<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>
<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">
<label for="template-name" class="col-sm-2 control-label">Template name</label>
<div class="col-sm-10">
<input type="text" class="form-control input-lg" name="name" id="template-name" value=" {{ name }} " placeholder="Name for this template, eg. Newsletter">
</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-02 17:52:40 +00:00
{{ > plaintext }}
2016-04-04 12:36:30 +00:00
2017-03-02 17:52:40 +00:00
{{ # if disableWysiwyg }}
{{ > codeeditor }}
{{ else }}
{{ > ( lookup . 'editorName' ) }}
{{ / if }}
2016-04-04 12:36:30 +00:00
<div class="form-group">
<label for="template-description" class="col-sm-2 control-label">Description</label>
<div class="col-sm-10">
<textarea class="form-control" id="template-description" name="description" rows="3" placeholder="Optional comments about this template"> {{ description }} </textarea>
<span class="help-block">HTML is allowed</span>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="pull-right">
<button type="submit" form="templates-delete" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> Delete Template</button>
</div>
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> Update</button>
</div>
</div>
</form>