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="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
2016-04-04 12:36:30 +00:00
|
|
|
|
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
|
2017-03-07 14:30:56 +00:00
|
|
|
|
<li class="active">
|
|
|
|
|
{{#translate}}Edit subscriber{{/translate}}
|
|
|
|
|
</li>
|
2016-04-04 12:36:30 +00:00
|
|
|
|
</ol>
|
|
|
|
|
|
2017-03-07 14:30:56 +00:00
|
|
|
|
<h2>{{list.name}} <small>{{#translate}}Edit subscriber{{/translate}}</small> <a class="btn btn-default btn-xs" href="/lists/view/{{list.id}}" role="button"><span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> {{#translate}}Back to list{{/translate}}</a></h2>
|
2016-04-04 12:36:30 +00:00
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
|
|
<form method="post" class="delete-form" id="subscriber-unsubscribe" action="/lists/subscription/unsubscribe">
|
|
|
|
|
<input type="hidden" name="_csrf" value="{{csrfToken}}">
|
|
|
|
|
<input type="hidden" name="list" value="{{list.id}}">
|
|
|
|
|
<input type="hidden" name="cid" value="{{cid}}">
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<form method="post" class="delete-form" id="subscriber-delete" action="/lists/subscription/delete">
|
|
|
|
|
<input type="hidden" name="_csrf" value="{{csrfToken}}">
|
|
|
|
|
<input type="hidden" name="list" value="{{list.id}}">
|
|
|
|
|
<input type="hidden" name="cid" value="{{cid}}">
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<form class="form-horizontal" method="post" action="/lists/subscription/edit">
|
|
|
|
|
<input type="hidden" name="_csrf" value="{{csrfToken}}">
|
|
|
|
|
<input type="hidden" name="list" value="{{list.id}}">
|
|
|
|
|
<input type="hidden" name="cid" value="{{cid}}">
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-03-07 14:30:56 +00:00
|
|
|
|
<label for="email" class="col-sm-2 control-label">{{#translate}}Email address{{/translate}}</label>
|
2016-04-04 12:36:30 +00:00
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="email" class="form-control input-lg" name="email" id="email" placeholder="" value="{{email}}" required>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-03-07 14:30:56 +00:00
|
|
|
|
<label for="first-name" class="col-sm-2 control-label">{{#translate}}First Name{{/translate}}</label>
|
2016-04-04 12:36:30 +00:00
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="text" class="form-control" name="first-name" id="first-name" placeholder="" value="{{firstName}}">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-03-07 14:30:56 +00:00
|
|
|
|
<label for="last-name" class="col-sm-2 control-label">{{#translate}}Last Name{{/translate}}</label>
|
2016-04-04 12:36:30 +00:00
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="text" class="form-control" name="last-name" id="last-name" placeholder="" value="{{lastName}}">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{{#each customFields}}
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">{{name}}</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
{{#if typeText}}
|
|
|
|
|
<input type="text" class="form-control" name="{{column}}" value="{{value}}">
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{#if typeNumber}}
|
|
|
|
|
<input type="number" class="form-control" name="{{column}}" value="{{value}}">
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{#if typeWebsite}}
|
|
|
|
|
<input type="url" class="form-control" name="{{column}}" value="{{value}}">
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
2016-04-16 05:27:45 +00:00
|
|
|
|
{{#if typeLongtext}}
|
|
|
|
|
<textarea class="form-control" rows="3" name="{{column}}">{{value}}</textarea>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
2016-08-29 12:51:20 +00:00
|
|
|
|
{{#if typeJson}}
|
|
|
|
|
<textarea class="form-control gpg-text" rows="3" name="{{column}}" placeholder="{"data":"value"}">{{value}}</textarea>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
2016-04-16 05:27:45 +00:00
|
|
|
|
{{#if typeGpg}}
|
2017-03-07 14:30:56 +00:00
|
|
|
|
<textarea class="form-control gpg-text" rows="3" name="{{column}}" placeholder="{{#translate}}Begins with{{/translate}} '-----BEGIN PGP PUBLIC KEY BLOCK-----'">{{value}}</textarea>
|
|
|
|
|
<span class="help-block">{{#translate}}Insert a GPG public key that will be used to encrypt messages sent this subscriber{{/translate}}</span>
|
2016-04-16 05:27:45 +00:00
|
|
|
|
{{/if}}
|
|
|
|
|
|
2016-04-04 12:36:30 +00:00
|
|
|
|
{{#if typeDateUs}}
|
|
|
|
|
<div class="input-group date fm-date-us">
|
|
|
|
|
<input type="text" class="form-control" name="{{column}}" placeholder="MM/DD/YYYY" value="{{value}}"><span class="input-group-addon"><i class="glyphicon glyphicon-th"></i></span>
|
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{#if typeDateEur}}
|
|
|
|
|
<div class="input-group date fm-date-eur">
|
|
|
|
|
<input type="text" class="form-control" name="{{column}}" placeholder="DD/MM/YYYY" value="{{value}}"><span class="input-group-addon"><i class="glyphicon glyphicon-th"></i></span>
|
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{#if typeBirthdayUs}}
|
|
|
|
|
<div class="input-group date fm-birthday-us">
|
|
|
|
|
<input type="text" class="form-control" name="{{column}}" placeholder="MM/DD" value="{{value}}"><span class="input-group-addon"><i class="glyphicon glyphicon-th"></i></span>
|
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{#if typeBirthdayEur}}
|
|
|
|
|
<div class="input-group date fm-birthday-eur">
|
|
|
|
|
<input type="text" class="form-control" name="{{column}}" placeholder="DD/MM" value="{{value}}"><span class="input-group-addon"><i class="glyphicon glyphicon-th"></i></span>
|
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{#if typeDropdown}}
|
|
|
|
|
<select name="{{key}}" class="form-control">
|
|
|
|
|
<option value="">
|
2017-03-07 14:30:56 +00:00
|
|
|
|
–– {{#translate}}Select{{/translate}} ––
|
2016-04-04 12:36:30 +00:00
|
|
|
|
</option>
|
|
|
|
|
{{#each options}}
|
|
|
|
|
<option value="{{column}}" {{#if value}} selected {{/if}}>{{name}}</option>
|
|
|
|
|
{{/each}}
|
|
|
|
|
</select>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{#if typeRadio}}
|
|
|
|
|
{{#each options}}
|
|
|
|
|
<div class="radio">
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" name="{{../key}}" value="{{column}}" {{#if value}} checked {{/if}}> {{name}}
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
{{/each}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{#if typeCheckbox}}
|
|
|
|
|
{{#each options}}
|
|
|
|
|
<div class="checkbox">
|
|
|
|
|
<label>
|
|
|
|
|
<input type="checkbox" name="{{column}}" value="1" {{#if value}} checked {{/if}}> {{name}}
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
{{/each}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{/each}}
|
|
|
|
|
|
2016-04-29 12:35:00 +00:00
|
|
|
|
<div class="form-group">
|
2017-03-07 14:30:56 +00:00
|
|
|
|
<label for="tz" class="col-sm-2 control-label">{{#translate}}Timezone{{/translate}}</label>
|
2016-04-29 12:35:00 +00:00
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<select name="tz" class="form-control">
|
|
|
|
|
<option value="">
|
|
|
|
|
–– Select ––
|
|
|
|
|
</option>
|
|
|
|
|
{{#each timezones}}
|
|
|
|
|
<option value="{{key}}" {{#if selected}} selected {{/if}}>{{value}}</option>
|
|
|
|
|
{{/each}}
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2016-05-31 14:32:36 +00:00
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
|
|
|
<div class="checkbox">
|
|
|
|
|
<label>
|
2017-03-07 14:30:56 +00:00
|
|
|
|
<input type="checkbox" name="is-test" {{#if isTest}} checked {{/if}}> {{#translate}}Test user?{{/translate}}
|
|
|
|
|
<span class="help-block">{{#translate}}If checked then this subscription can be used for previewing campaign messages{{/translate}}</span>
|
2016-05-31 14:32:36 +00:00
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2016-04-04 12:36:30 +00:00
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
|
|
|
<div class="pull-right">
|
|
|
|
|
{{#if isSubscribed}}
|
2017-03-07 14:30:56 +00:00
|
|
|
|
<button type="submit" form="subscriber-unsubscribe" class="btn btn-default"><i class="glyphicon glyphicon-ban-circle"></i> {{#translate}}Unsubscribe{{/translate}}</button>
|
2016-04-04 12:36:30 +00:00
|
|
|
|
{{/if}}
|
2017-03-07 14:30:56 +00:00
|
|
|
|
<button type="submit" form="subscriber-delete" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> {{#translate}}Delete Subscription{{/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>
|