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="/campaigns"> {{ # translate }} Campaigns {{ / translate }} </a></li>
<li class="active"> {{ # translate }} Create Campaign {{ / translate }} </li>
2016-04-04 12:36:30 +00:00
</ol>
2017-03-07 14:30:56 +00:00
<h2> {{ # translate }} Create Campaign {{ / translate }} </h2>
2016-04-04 12:36:30 +00:00
<hr>
<form class="form-horizontal" method="post" action="/campaigns/create">
<input type="hidden" name="_csrf" value=" {{ csrfToken }} ">
2016-05-02 21:04:43 +00:00
<input type="hidden" name="type" value="normal">
2016-04-04 12:36:30 +00:00
<div class="form-group">
2017-03-07 14:30:56 +00:00
<label for="name" class="col-sm-2 control-label"> {{ # translate }} 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="name" value=" {{ name }} " placeholder=" {{ # translate }} Campaign Name {{ / translate }} " autofocus required>
2016-04-04 12:36:30 +00:00
</div>
</div>
<div class="form-group">
2017-03-07 14:30:56 +00:00
<label for="description" class="col-sm-2 control-label"> {{ # translate }} Description {{ / translate }} </label>
2016-04-04 12:36:30 +00:00
<div class="col-sm-10">
<textarea class="form-control" rows="3" name="description" id="description"> {{ description }} </textarea>
2017-03-07 14:30:56 +00:00
<span class="help-block"> {{ # translate }} HTML is allowed {{ / translate }} </span>
2016-04-04 12:36:30 +00:00
</div>
</div>
<div class="form-group">
2017-03-07 14:30:56 +00:00
<label for="list" class="col-sm-2 control-label"> {{ # translate }} List {{ / translate }} </label>
2016-04-04 12:36:30 +00:00
<div class="col-sm-10">
<select class="form-control" id="list" name="list" required>
2017-03-07 14:30:56 +00:00
<option value=""> – – {{ # translate }} Select {{ / translate }} – – </option>
2016-04-04 12:36:30 +00:00
{{ # each listItems }}
<option value=" {{ id }} " {{ # if selected }} selected {{ / if }} >
2017-03-07 14:30:56 +00:00
{{ name }} <span class="text-muted"> — {{ subscribers }} {{ # translate }} subscribers {{ / translate }} </span>
2016-04-04 12:36:30 +00:00
</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>
<div class="form-group">
2017-03-07 14:30:56 +00:00
<label for="template" class="col-sm-2 control-label"> {{ # translate }} Template {{ / translate }} </label>
2016-04-04 12:36:30 +00:00
<div class="col-sm-10">
2016-04-26 16:07:07 +00:00
<p class="form-control-static">
2017-03-07 14:30:56 +00:00
{{ # translate }} Select a template: {{ / translate }}
2016-04-26 16:07:07 +00:00
</p>
<div>
<select class="form-control" id="template" name="template">
2017-03-07 14:30:56 +00:00
<option value=""> – – {{ # translate }} Select {{ / translate }} – – </option>
2016-04-26 16:07:07 +00:00
{{ # each templateItems }}
<option value=" {{ id }} " {{ # if selected }} selected {{ / if }} >
{{ name }}
</option>
{{ / each }}
</select>
2017-03-07 14:30:56 +00:00
<span class="help-block"> {{ # translate }} Selecting a template creates a campaign specific copy from it {{ / translate }} </span>
2016-04-26 16:07:07 +00:00
</div>
<p class="form-control-static">
2017-03-07 14:30:56 +00:00
{{ # translate }} Or alternatively use an URL as the message content source: {{ / translate }}
2016-04-26 16:07:07 +00:00
</p>
<div>
2016-04-30 15:19:48 +00:00
<input type="url" class="form-control" name="source-url" id="source-url" value=" {{ sourceUrl }} " placeholder="http://example.com/message-render.php">
2017-03-07 14:30:56 +00:00
<span class="help-block"> {{ # translate }} If a message is sent then this URL will be POSTed to using Merge Tags as POST body. Use this if you want to generate the HTML message yourself {{ / translate }} </span>
2016-04-26 16:07:07 +00:00
</div>
2016-04-04 12:36:30 +00:00
</div>
</div>
<hr />
<div class="form-group">
2017-03-07 14:30:56 +00:00
<label for="from" class="col-sm-2 control-label"> {{ # translate }} Email "from 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" name="from" id="from" value=" {{ from }} " placeholder=" {{ # translate }} This is the name your emails will come from {{ / translate }} " required>
2016-04-04 12:36:30 +00:00
</div>
</div>
<div class="form-group">
2017-03-07 14:30:56 +00:00
<label for="address" class="col-sm-2 control-label"> {{ # translate }} Email "from" address {{ / 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="email" class="form-control" name="address" id="address" value=" {{ address }} " placeholder=" {{ # translate }} This is the address people will send replies to unless reply-to address is set {{ / translate }} " required>
2016-11-25 16:44:06 +00:00
</div>
</div>
<div class="form-group">
2017-03-07 14:30:56 +00:00
<label for="address" class="col-sm-2 control-label"> {{ # translate }} Email "reply-to" address {{ / translate }} </label>
2016-11-25 16:44:06 +00:00
<div class="col-sm-10">
2017-03-07 14:30:56 +00:00
<input type="email" class="form-control" name="reply-to" id="reply-to" value=" {{ replyTo }} " placeholder=" {{ # translate }} If set, this is the address people will send replies to {{ / translate }} ">
2016-04-04 12:36:30 +00:00
</div>
</div>
<div class="form-group">
2017-03-07 14:30:56 +00:00
<label for="subject" class="col-sm-2 control-label"> {{ # translate }} Email "subject line" {{ / 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" name="subject" id="subject" value=" {{ subject }} " placeholder=" {{ # translate }} Keep it relevant and non-spammy {{ / translate }} " required>
2016-04-04 12:36:30 +00:00
</div>
</div>
2016-09-08 11:39:41 +00:00
<div class="col-sm-offset-2">
<div class="checkbox">
<label>
2017-03-07 14:30:56 +00:00
<input type="checkbox" name="tracking-disabled" value="1" {{ # if trackingDisabled }} checked {{ / if }} > {{ # translate }} Disable clicked/opened tracking {{ / translate }}
2016-09-08 11:39:41 +00:00
</label>
</div>
</div>
2016-04-04 12:36:30 +00:00
<hr />
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
2017-03-07 14:30:56 +00:00
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-plus"></i> {{ # translate }} Create Campaign {{ / translate }} </button>
2016-04-04 12:36:30 +00:00
</div>
</div>
</form>