2016-05-02 21:04:43 +00:00
<ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/campaigns">Campaigns</a></li>
2016-05-05 11:34:54 +00:00
{{ # if parent }}
<li><a href="/campaigns/view/ {{ parent .id }} "> {{ parent .name }} </a></li>
{{ / if }}
2016-05-02 21:04:43 +00:00
<li><a href="/campaigns/view/ {{ id }} "> {{ name }} </a></li>
<li class="active">Edit RSS Campaign</li>
</ol>
<h2>Edit RSS Campaign <a class="btn btn-default btn-xs" href="/campaigns/view/ {{ id }} " role="button"><span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> View campaign</a></h2>
<hr>
<div class="panel panel-default">
<div class="panel-body">
RSS campaign sets up a tracker against selected RSS feed address. Whenever a new entry is found from this feed it is sent to selected list as an email message.
</div>
</div>
<form method="post" class="delete-form" id="campaigns-delete" action="/campaigns/delete">
<input type="hidden" name="_csrf" value=" {{ csrfToken }} ">
<input type="hidden" name="id" value=" {{ id }} " />
</form>
<form class="form-horizontal" method="post" action="/campaigns/edit">
<input type="hidden" name="_csrf" value=" {{ csrfToken }} ">
<input type="hidden" name="id" value=" {{ id }} " />
<fieldset>
<legend>
General Settings
</legend>
<div class="form-group">
<label for="name" class="col-sm-2 control-label">Name</label>
<div class="col-sm-10">
<input type="text" class="form-control input-lg" name="name" id="name" value=" {{ name }} " placeholder="Campaign Name" autofocus required>
</div>
</div>
<div class="form-group">
<label for="description" class="col-sm-2 control-label">Description</label>
<div class="col-sm-10">
<textarea class="form-control" rows="3" name="description" id="description"> {{ description }} </textarea>
<span class="help-block">HTML is allowed</span>
</div>
</div>
<div class="form-group">
<label for="list" class="col-sm-2 control-label">List</label>
<div class="col-sm-10">
<select class="form-control" id="list" name="list" required>
<option value=""> – – Select – – </option>
{{ # each listItems }}
<option value=" {{ id }} " {{ # if selected }} selected {{ / if }} >
{{ name }} <span class="text-muted"> — {{ subscribers }} subscribers</span>
</option>
{{ # if segments }}
<optgroup label=" {{ name }} segments">
{{ # each segments }}
<option value=" {{ ../id }} : {{ id }} " {{ # if selected }} selected {{ / if }} >
{{ ../name }} : {{ name }}
</option>
{{ / each }}
</optgroup>
{{ / if }}
{{ / each }}
</select>
</div>
</div>
2016-05-13 12:32:29 +00:00
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<a class="btn btn-default" role="button" data-toggle="collapse" href="#mergeReference" aria-expanded="false" aria-controls="mergeReference">Merge tag reference</a>
<div class="collapse" id="mergeReference">
<p>
Merge tags are tags that are replaced before sending out the message. The format of the merge tag is the following: <code>[TAG_NAME]</code> or <code>[TAG_NAME/fallback]</code> where <code>fallback</code> is an optional text value
used when <code>TAG_NAME</code> is empty.
</p>
<table class="table table-bordered table-condensed table-striped">
<thead>
<tr>
<th>
Merge tag
</th>
<th>
Description
</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">
[RSS_ENTRY]
</th>
<td>
content from an RSS entry
</td>
</tr>
{{ # each mergeTags }}
<tr>
<th scope="row">
[ {{ key }} ]
</th>
<td>
{{ value }}
</td>
</tr>
{{ / each }}
</tbody>
</table>
</div>
</div>
</div>
2016-05-02 21:04:43 +00:00
<div class="form-group">
<label for="template" class="col-sm-2 control-label">RSS Feed Url</label>
<div class="col-sm-10">
2016-05-03 09:36:06 +00:00
<input type="url" class="form-control" name="source-url" id="source-url" value=" {{ sourceUrl }} " placeholder="http://example.com/rss.php" required>
2016-05-02 21:04:43 +00:00
<span class="help-block">New entries from this RSS URL are sent out to list subscribers as email messages</span>
</div>
</div>
2016-05-04 16:11:41 +00:00
<div class="form-group">
<label for="template-html" class="col-sm-2 control-label">Template content (HTML)</label>
<div class="col-sm-10">
{{ # if disableWysiwyg }}
<div class="code-editor" id="template-html"> {{ html }} </div>
<input type="hidden" name="html">
{{ else }}
<textarea class="form-control summernote" id="template-html" name="html" rows="8"> {{ html }} </textarea>
{{ / if }}
<span class="help-block">Use special merge tag <code>[RSS_ENTRY]</code> to mark the position for the RSS post content. Additionally you can use any valid merge tag as well.</span>
</div>
</div>
2016-05-02 21:04:43 +00:00
<hr />
<div class="form-group">
<label for="from" class="col-sm-2 control-label">Email "from name"</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="from" id="from" value=" {{ from }} " placeholder="This is the name your emails will come from" required>
</div>
</div>
<div class="form-group">
<label for="address" class="col-sm-2 control-label">Email "from" address</label>
<div class="col-sm-10">
<input type="email" class="form-control" name="address" id="address" value=" {{ address }} " placeholder="This is the address people will send replies to" required>
</div>
</div>
2016-09-08 11:39:41 +00:00
<div class="col-sm-offset-2">
<div class="checkbox">
<label>
<input type="checkbox" name="tracking-disabled" value="1" {{ # if trackingDisabled }} checked {{ / if }} > Disable clicked/opened tracking
</label>
</div>
</div>
2016-05-02 21:04:43 +00:00
</fieldset>
<hr />
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="pull-right">
<button type="submit" form="campaigns-delete" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> Delete Campaign</button>
</div>
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> Update</button>
</div>
</div>
</form>