Updated translation support
This commit is contained in:
parent
b1e8cd68cd
commit
d25565b6f8
114 changed files with 42095 additions and 1902 deletions
|
@ -1,26 +1,26 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li class="active">Create List</li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li class="active">{{#translate}}Create List{{/translate}}</li>
|
||||
</ol>
|
||||
|
||||
<h2>Create List</h2>
|
||||
<h2>{{#translate}}Create List{{/translate}}</h2>
|
||||
|
||||
<hr>
|
||||
|
||||
<form class="form-horizontal" method="post" action="/lists/create">
|
||||
<input type="hidden" name="_csrf" value="{{csrfToken}}">
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-sm-2 control-label">Name</label>
|
||||
<label for="name" class="col-sm-2 control-label">{{#translate}}Name{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control input-lg" name="name" id="name" value="{{name}}" placeholder="List Name" autofocus required>
|
||||
<input type="text" class="form-control input-lg" name="name" id="name" value="{{name}}" placeholder="{{#translate}}List Name{{/translate}}" autofocus required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="description" class="col-sm-2 control-label">Description</label>
|
||||
<label for="description" class="col-sm-2 control-label">{{#translate}}Description{{/translate}}</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>
|
||||
<span class="help-block">{{#translate}}HTML is allowed{{/translate}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
|||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-plus"></i> Create List</button>
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-plus"></i> {{#translate}}Create List{{/translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li><a href="/lists/view/{{id}}">{{name}}</a></li>
|
||||
<li class="active">Edit List</li>
|
||||
<li class="active">{{#translate}}Edit List{{/translate}}</li>
|
||||
</ol>
|
||||
|
||||
<h2>Edit List <a class="btn btn-default btn-xs" href="/lists/view/{{id}}" role="button"><span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> View List</a></h2>
|
||||
<h2>{{#translate}}Edit List{{/translate}} <a class="btn btn-default btn-xs" href="/lists/view/{{id}}" role="button"><span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> {{#translate}}View List{{/translate}}</a></h2>
|
||||
|
||||
<hr>
|
||||
|
||||
|
@ -18,23 +18,23 @@
|
|||
<input type="hidden" name="_csrf" value="{{csrfToken}}">
|
||||
<input type="hidden" name="id" value="{{id}}" />
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-sm-2 control-label">Name</label>
|
||||
<label for="name" class="col-sm-2 control-label">{{#translate}}Name{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control input-lg" name="name" id="name" value="{{name}}" placeholder="List Name" autofocus required>
|
||||
<input type="text" class="form-control input-lg" name="name" id="name" value="{{name}}" placeholder="{{#translate}}List Name{{/translate}}" autofocus required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-sm-2 control-label">List ID</label>
|
||||
<label for="name" class="col-sm-2 control-label">{{#translate}}List ID{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="cid" value="{{cid}}" readonly>
|
||||
<span class="help-block">This is the list ID displayed to the subscribers</span>
|
||||
<span class="help-block">{{#translate}}This is the list ID displayed to the subscribers{{/translate}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="description" class="col-sm-2 control-label">Description</label>
|
||||
<label for="description" class="col-sm-2 control-label">{{#translate}}Description{{/translate}}</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>
|
||||
<span class="help-block">{{#translate}}HTML is allowed{{/translate}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -43,9 +43,9 @@
|
|||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<div class="pull-right">
|
||||
<button type="submit" form="lists-delete" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> Delete List</button>
|
||||
<button type="submit" form="lists-delete" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> {{#translate}}Delete List{{/translate}}</button>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> Update</button>
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> {{#translate}}Update{{/translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,77 +1,77 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
|
||||
<li><a href="/fields/{{list.id}}">Custom Fields</a></li>
|
||||
<li class="active">Create Field</li>
|
||||
<li><a href="/fields/{{list.id}}">{{#translate}}Custom Fields{{/translate}}</a></li>
|
||||
<li class="active">{{#translate}}Create Field{{/translate}}</li>
|
||||
</ol>
|
||||
|
||||
<h2>{{list.name}} <small>Create Custom Field</small></h2>
|
||||
<h2>{{list.name}} <small>{{#translate}}Create Custom Field{{/translate}}</small></h2>
|
||||
|
||||
<hr>
|
||||
|
||||
<form class="form-horizontal" method="post" action="/fields/{{list.id}}/create">
|
||||
<input type="hidden" name="_csrf" value="{{csrfToken}}">
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-sm-2 control-label">Field Name</label>
|
||||
<label for="name" class="col-sm-2 control-label">{{#translate}}Field Name{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control input-lg" name="name" id="name" value="{{name}}" placeholder="Field Name" required>
|
||||
<input type="text" class="form-control input-lg" name="name" id="name" value="{{name}}" placeholder="{{#translate}}Field Name{{/translate}}" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="type" class="col-sm-2 control-label">Field Type</label>
|
||||
<label for="type" class="col-sm-2 control-label">{{#translate}}Field Type{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" name="type">
|
||||
<option value="text" {{#if selectedText}} selected {{/if}}>Text</option>
|
||||
<option value="number" {{#if selectedNumber}} selected {{/if}}>Number</option>
|
||||
<option value="website" {{#if selectedWebsite}} selected {{/if}}>Website</option>
|
||||
<option value="gpg" {{#if selectedGpg}} selected {{/if}}>GPG Public Key</option>
|
||||
<option value="longtext" {{#if selectedLongtext}} selected {{/if}}>Multi-line text</option>
|
||||
<option value="json" {{#if selectedJson}} selected {{/if}}>JSON</option>
|
||||
<optgroup label="Date">
|
||||
<option value="date-us" {{#if selectedDateUs}} selected {{/if}}>Date (MM/DD/YYYY)</option>
|
||||
<option value="date-eur" {{#if selectedDateEur}} selected {{/if}}>Date (DD/MM/YYYY)</option>
|
||||
<option value="text" {{#if selectedText}} selected {{/if}}>{{#translate}}Text{{/translate}}</option>
|
||||
<option value="number" {{#if selectedNumber}} selected {{/if}}>{{#translate}}Number{{/translate}}</option>
|
||||
<option value="website" {{#if selectedWebsite}} selected {{/if}}>{{#translate}}Website{{/translate}}</option>
|
||||
<option value="gpg" {{#if selectedGpg}} selected {{/if}}>{{#translate}}GPG Public Key{{/translate}}</option>
|
||||
<option value="longtext" {{#if selectedLongtext}} selected {{/if}}>{{#translate}}Multi-line text{{/translate}}</option>
|
||||
<option value="json" {{#if selectedJson}} selected {{/if}}>{{#translate}}JSON{{/translate}}</option>
|
||||
<optgroup label="{{#translate}}Date{{/translate}}">
|
||||
<option value="date-us" {{#if selectedDateUs}} selected {{/if}}>{{#translate}}Date (MM/DD/YYYY){{/translate}}</option>
|
||||
<option value="date-eur" {{#if selectedDateEur}} selected {{/if}}>{{#translate}}Date (DD/MM/YYYY){{/translate}}</option>
|
||||
</optgroup>
|
||||
<optgroup label="Birthday">
|
||||
<option value="birthday-us" {{#if selectedBirthdayUs}} selected {{/if}}>Birthday (MM/DD)</option>
|
||||
<option value="birthday-eur" {{#if selectedBirthdayEur}} selected {{/if}}>Birthday (DD/MM)</option>
|
||||
<optgroup label="{{#translate}}Birthday{{/translate}}">
|
||||
<option value="birthday-us" {{#if selectedBirthdayUs}} selected {{/if}}>{{#translate}}Birthday (MM/DD){{/translate}}</option>
|
||||
<option value="birthday-eur" {{#if selectedBirthdayEur}} selected {{/if}}>{{#translate}}Birthday (DD/MM){{/translate}}</option>
|
||||
</optgroup>
|
||||
<optgroup label="Grouped">
|
||||
<option value="dropdown" {{#if selectedDropdown}} selected {{/if}}>Drop Downs</option>
|
||||
<option value="radio" {{#if selectedRadio}} selected {{/if}}>Radio Buttons</option>
|
||||
<option value="checkbox" {{#if selectedCheckbox}} selected {{/if}}>Checkboxes</option>
|
||||
<optgroup label="{{#translate}}Grouped{{/translate}}">
|
||||
<option value="dropdown" {{#if selectedDropdown}} selected {{/if}}>{{#translate}}Drop Downs{{/translate}}</option>
|
||||
<option value="radio" {{#if selectedRadio}} selected {{/if}}>{{#translate}}Radio Buttons{{/translate}}</option>
|
||||
<option value="checkbox" {{#if selectedCheckbox}} selected {{/if}}>{{#translate}}Checkboxes{{/translate}}</option>
|
||||
</optgroup>
|
||||
<option value="option" {{#if selectedOption}} selected {{/if}}>Option for a group value</option>
|
||||
<option value="option" {{#if selectedOption}} selected {{/if}}>{{#translate}}Option for a group value{{/translate}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="group" class="col-sm-2 control-label">Group</label>
|
||||
<label for="group" class="col-sm-2 control-label">{{#translate}}Group{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" name="group">
|
||||
<option value=""> –– Select ––</option>
|
||||
<option value=""> –– {{#translate}}Select{{/translate}} ––</option>
|
||||
{{#each groups}}
|
||||
<option value="{{id}}" {{#if selected}} selected {{/if}}>{{name}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
<span class="help-block">Required for group options</span>
|
||||
<span class="help-block">{{#translate}}Required for group options{{/translate}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="default-value" class="col-sm-2 control-label">Default merge tag value</label>
|
||||
<label for="default-value" class="col-sm-2 control-label">{{#translate}}Default merge tag value{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" name="default-value" id="default-value" value="{{field.defaultValue}}" placeholder="Default merge tag value">
|
||||
<input type="text" class="form-control" name="default-value" id="default-value" value="{{field.defaultValue}}" placeholder="{{#translate}}Default merge tag value{{/translate}}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="group-template" class="col-sm-2 control-label">Template</label>
|
||||
<label for="group-template" class="col-sm-2 control-label">{{#translate}}Template{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea class="form-control gpg-text" rows="3" name="group-template" id="group-template">{{field.groupTemplate}}</textarea>
|
||||
<span class="help-block">For group elements like checkboxes you can control the appearance of the merge tag with an optional template. The template uses handlebars syntax and you can find all values from <code>\{{values}}</code> array, for example <code>\{{#each values}} \{{this}} \{{/each}}</code>. If template is not defined then multiple values are joined with commas. You can also use this template to render JSON values (if the JSON is an array then the array is exposed as <code>values</code>, otherwise you can access the JSON keys directly).</span>
|
||||
<span class="help-block">{{#translate}}For group elements like checkboxes you can control the appearance of the merge tag with an optional template. The template uses handlebars syntax and you can find all values from <code>\{{values}}</code> array, for example <code>\{{#each values}} \{{this}} \{{/each}}</code>. If template is not defined then multiple values are joined with commas. You can also use this template to render JSON values (if the JSON is an array then the array is exposed as <code>values</code>, otherwise you can access the JSON keys directly).{{/translate}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -79,7 +79,7 @@
|
|||
<div class="col-sm-offset-2 col-xs-4">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="visible" {{#if visible}} checked {{/if}}> Visible
|
||||
<input type="checkbox" name="visible" {{#if visible}} checked {{/if}}> {{#translate}}Visible{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -87,7 +87,7 @@
|
|||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-plus"></i> Add Field</button>
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-plus"></i> {{#translate}}Add Field{{/translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
|
||||
<li><a href="/fields/{{list.id}}">Custom Fields</a></li>
|
||||
<li class="active">Edit Field</li>
|
||||
<li><a href="/fields/{{list.id}}">{{#translate}}Custom Fields{{/translate}}</a></li>
|
||||
<li class="active">{{#translate}}Edit Field{{/translate}}</li>
|
||||
</ol>
|
||||
|
||||
<h2>{{list.name}} <small>Edit Custom Field</small> <a class="btn btn-default btn-xs" href="/fields/{{list.id}}" role="button"><span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> Back to fields</a></h2>
|
||||
<h2>{{list.name}} <small>{{#translate}}Edit Custom Field{{/translate}}</small> <a class="btn btn-default btn-xs" href="/fields/{{list.id}}" role="button"><span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> {{#translate}}Back to fields{{/translate}}</a></h2>
|
||||
|
||||
<hr>
|
||||
|
||||
|
@ -20,36 +20,36 @@
|
|||
<input type="hidden" name="id" value="{{field.id}}" />
|
||||
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-sm-2 control-label">Field Name</label>
|
||||
<label for="name" class="col-sm-2 control-label">{{#translate}}Field Name{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control input-lg" name="name" id="name" value="{{field.name}}" placeholder="Field Name" required>
|
||||
<input type="text" class="form-control input-lg" name="name" id="name" value="{{field.name}}" placeholder="{{#translate}}Field Name{{/translate}}" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="type" class="col-sm-2 control-label">Field Type</label>
|
||||
<label for="type" class="col-sm-2 control-label">{{#translate}}Field Type{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" disabled>
|
||||
<option value="text" {{#if selectedText}} selected {{/if}}>Text</option>
|
||||
<option value="number" {{#if selectedNumber}} selected {{/if}}>Number</option>
|
||||
<option value="website" {{#if selectedWebsite}} selected {{/if}}>Website</option>
|
||||
<option value="gpg" {{#if selectedGpg}} selected {{/if}}>GPG Public Key</option>
|
||||
<option value="longtext" {{#if selectedLongtext}} selected {{/if}}>Multi-line text</option>
|
||||
<option value="json" {{#if selectedJson}} selected {{/if}}>JSON</option>
|
||||
<optgroup label="Date">
|
||||
<option value="date-us" {{#if selectedDateUs}} selected {{/if}}>Date (MM/DD/YYYY)</option>
|
||||
<option value="date-eur" {{#if selectedDateEur}} selected {{/if}}>Date (DD/MM/YYYY)</option>
|
||||
<option value="text" {{#if selectedText}} selected {{/if}}>{{#translate}}Text{{/translate}}</option>
|
||||
<option value="number" {{#if selectedNumber}} selected {{/if}}>{{#translate}}Number{{/translate}}</option>
|
||||
<option value="website" {{#if selectedWebsite}} selected {{/if}}>{{#translate}}Website{{/translate}}</option>
|
||||
<option value="gpg" {{#if selectedGpg}} selected {{/if}}>{{#translate}}GPG Public Key{{/translate}}</option>
|
||||
<option value="longtext" {{#if selectedLongtext}} selected {{/if}}>{{#translate}}Multi-line text{{/translate}}</option>
|
||||
<option value="json" {{#if selectedJson}} selected {{/if}}>{{#translate}}JSON{{/translate}}</option>
|
||||
<optgroup label="{{#translate}}Date{{/translate}}">
|
||||
<option value="date-us" {{#if selectedDateUs}} selected {{/if}}>{{#translate}}Date (MM/DD/YYYY){{/translate}}</option>
|
||||
<option value="date-eur" {{#if selectedDateEur}} selected {{/if}}>{{#translate}}Date (DD/MM/YYYY){{/translate}}</option>
|
||||
</optgroup>
|
||||
<optgroup label="Birthday">
|
||||
<option value="birthday-us" {{#if selectedBirthdayUs}} selected {{/if}}>Birthday (MM/DD)</option>
|
||||
<option value="birthday-eur" {{#if selectedBirthdayEur}} selected {{/if}}>Birthday (DD/MM)</option>
|
||||
<optgroup label="{{#translate}}Birthday{{/translate}}">
|
||||
<option value="birthday-us" {{#if selectedBirthdayUs}} selected {{/if}}>{{#translate}}Birthday (MM/DD){{/translate}}</option>
|
||||
<option value="birthday-eur" {{#if selectedBirthdayEur}} selected {{/if}}>{{#translate}}Birthday (DD/MM){{/translate}}</option>
|
||||
</optgroup>
|
||||
<optgroup label="Grouped">
|
||||
<option value="dropdown" {{#if selectedDropdown}} selected {{/if}}>Drop Downs</option>
|
||||
<option value="radio" {{#if selectedRadio}} selected {{/if}}>Radio Buttons</option>
|
||||
<option value="checkbox" {{#if selectedCheckbox}} selected {{/if}}>Checkboxes</option>
|
||||
<optgroup label="{{#translate}}Grouped{{/translate}}">
|
||||
<option value="dropdown" {{#if selectedDropdown}} selected {{/if}}>{{#translate}}Drop Downs{{/translate}}</option>
|
||||
<option value="radio" {{#if selectedRadio}} selected {{/if}}>{{#translate}}Radio Buttons{{/translate}}</option>
|
||||
<option value="checkbox" {{#if selectedCheckbox}} selected {{/if}}>{{#translate}}Checkboxes{{/translate}}</option>
|
||||
</optgroup>
|
||||
<option value="option" {{#if selectedOption}} selected {{/if}}>Option for a group value</option>
|
||||
<option value="option" {{#if selectedOption}} selected {{/if}}>{{#translate}}Option for a group value{{/translate}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -57,43 +57,43 @@
|
|||
{{#if groups}}
|
||||
|
||||
<div class="form-group">
|
||||
<label for="group" class="col-sm-2 control-label">Group</label>
|
||||
<label for="group" class="col-sm-2 control-label">{{#translate}}Group{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" name="group">
|
||||
<option value=""> –– Select ––</option>
|
||||
<option value=""> –– {{#translate}}Select{{/translate}} ––</option>
|
||||
{{#each groups}}
|
||||
<option value="{{id}}" {{#if selected}} selected {{/if}}>{{name}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
<span class="help-block">Required for group options</span>
|
||||
<span class="help-block">{{#translate}}Required for group options{{/translate}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{/if}}
|
||||
|
||||
<div class="form-group">
|
||||
<label for="key" class="col-sm-2 control-label">Merge tag</label>
|
||||
<label for="key" class="col-sm-2 control-label">{{#translate}}Merge tag{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control text-uppercase" name="key" id="key" value="{{field.key}}" placeholder="Merge Tag">
|
||||
<span class="help-block">Put this tag in your content: <strong>[{{#if field.key}}{{field.key}}{{else}}TAG_VALUE{{/if}}]</strong></span>
|
||||
<input type="text" class="form-control text-uppercase" name="key" id="key" value="{{field.key}}" placeholder="{{#translate}}Merge Tag{{/translate}}">
|
||||
<span class="help-block">{{#translate}}Put this tag in your content:{{/translate}} <strong>[{{#if field.key}}{{field.key}}{{else}}TAG_VALUE{{/if}}]</strong></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#if field.isGroup}}
|
||||
|
||||
<div class="form-group">
|
||||
<label for="group-template" class="col-sm-2 control-label">Template</label>
|
||||
<label for="group-template" class="col-sm-2 control-label">{{#translate}}Template{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea class="form-control gpg-text" rows="3" name="group-template" id="description">{{field.groupTemplate}}</textarea>
|
||||
<span class="help-block">For group elements like checkboxes you can control the appearance of the merge tag with an optional template. The template uses handlebars syntax and you can find all values from <code>\{{values}}</code> array, for example <code>\{{#each values}} \{{this}} \{{/each}}</code>. If template is not defined then multiple values are joined with commas. You can also use this template to render JSON values (if the JSON is an array then the array is exposed as <code>values</code>, otherwise you can access the JSON keys directly).</span>
|
||||
<span class="help-block">{{#translate}}For group elements like checkboxes you can control the appearance of the merge tag with an optional template. The template uses handlebars syntax and you can find all values from <code>\{{values}}</code> array, for example <code>\{{#each values}} \{{this}} \{{/each}}</code>. If template is not defined then multiple values are joined with commas. You can also use this template to render JSON values (if the JSON is an array then the array is exposed as <code>values</code>, otherwise you can access the JSON keys directly).{{/translate}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{else}}
|
||||
<div class="form-group">
|
||||
<label for="default-value" class="col-sm-2 control-label">Default merge tag value</label>
|
||||
<label for="default-value" class="col-sm-2 control-label">{{#translate}}Default merge tag value{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" name="default-value" id="default-value" value="{{field.defaultValue}}" placeholder="Default merge tag value">
|
||||
<input type="text" class="form-control" name="default-value" id="default-value" value="{{field.defaultValue}}" placeholder="{{#translate}}Default merge tag value{{/translate}}">
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
@ -102,7 +102,7 @@
|
|||
<div class="col-sm-offset-2 col-xs-4">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="visible" {{#if field.visible}} checked {{/if}}> Visible
|
||||
<input type="checkbox" name="visible" {{#if field.visible}} checked {{/if}}> {{#translate}}Visible{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -111,9 +111,9 @@
|
|||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<div class="pull-right">
|
||||
<button type="submit" form="fields-delete" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> Delete Field</button>
|
||||
<button type="submit" form="fields-delete" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> {{#translate}}Delete Field{{/translate}}</button>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> Update</button>
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> {{#translate}}Update{{/translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
|
||||
<li class="active">Custom Fields</li>
|
||||
<li class="active">{{#translate}}Custom Fields{{/translate}}</li>
|
||||
</ol>
|
||||
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-primary" href="/fields/{{list.id}}/create" role="button"><i class="glyphicon glyphicon-plus"></i> Create Custom Field</a>
|
||||
<a class="btn btn-primary" href="/fields/{{list.id}}/create" role="button"><i class="glyphicon glyphicon-plus"></i> {{#translate}}Create Custom Field{{/translate}}</a>
|
||||
</div>
|
||||
|
||||
<h2>{{list.name}} <small>Custom Fields</small></h2>
|
||||
<h2>{{list.name}} <small>{{#translate}}Custom Fields{{/translate}}</small></h2>
|
||||
|
||||
<hr>
|
||||
|
||||
|
@ -20,16 +20,16 @@
|
|||
#
|
||||
</th>
|
||||
<th>
|
||||
Name
|
||||
{{#translate}}Name{{/translate}}
|
||||
</th>
|
||||
<th class="col-md-2">
|
||||
Type
|
||||
{{#translate}}Type{{/translate}}
|
||||
</th>
|
||||
<th class="col-md-2">
|
||||
Merge tag
|
||||
{{#translate}}Merge tag{{/translate}}
|
||||
</th>
|
||||
<th class="col-md-2">
|
||||
Default merge tag value
|
||||
{{#translate}}Default merge tag value{{/translate}}
|
||||
</th>
|
||||
<th class="col-md-1">
|
||||
|
||||
|
@ -56,7 +56,7 @@
|
|||
<td>
|
||||
<span class="glyphicon glyphicon-wrench" aria-hidden="true"></span>
|
||||
<a href="/fields/{{../list.id}}/edit/{{id}}">
|
||||
Edit
|
||||
{{#translate}}Edit{{/translate}}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -77,7 +77,7 @@
|
|||
</td>
|
||||
<td>
|
||||
<span class="glyphicon glyphicon-wrench" aria-hidden="true"></span>
|
||||
<a href="/fields/{{../../list.id}}/edit/{{id}}">Edit</a>
|
||||
<a href="/fields/{{../../list.id}}/edit/{{id}}">{{#translate}}Edit{{/translate}}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
|
@ -86,7 +86,7 @@
|
|||
{{#unless rows}}
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
No data available in table
|
||||
{{#translate}}No data available in table{{/translate}}
|
||||
</td>
|
||||
</tr>
|
||||
{{/unless}}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li class="active">Lists</li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li class="active">{{#translate}}Lists{{/translate}}</li>
|
||||
</ol>
|
||||
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-primary" href="/lists/create" role="button"><i class="glyphicon glyphicon-plus"></i> Create List</a>
|
||||
<a class="btn btn-primary" href="/lists/create" role="button"><i class="glyphicon glyphicon-plus"></i> {{#translate}}Create List{{/translate}}</a>
|
||||
</div>
|
||||
|
||||
<h2>Lists</h2>
|
||||
<h2>{{#translate}}Lists{{/translate}}</h2>
|
||||
|
||||
<hr>
|
||||
|
||||
|
@ -18,16 +18,16 @@
|
|||
#
|
||||
</th>
|
||||
<th>
|
||||
Name
|
||||
{{#translate}}Name{{/translate}}
|
||||
</th>
|
||||
<th class="col-md-2">
|
||||
ID
|
||||
{{#translate}}ID{{/translate}}
|
||||
</th>
|
||||
<th class="col-md-1">
|
||||
Subscribers
|
||||
{{#translate}}Subscribers{{/translate}}
|
||||
</th>
|
||||
<th>
|
||||
Description
|
||||
{{#translate}}Description{{/translate}}
|
||||
</th>
|
||||
<th class="col-md-1">
|
||||
|
||||
|
@ -59,7 +59,7 @@
|
|||
<td>
|
||||
<span class="glyphicon glyphicon-wrench" aria-hidden="true"></span>
|
||||
<a href="/lists/edit/{{id}}">
|
||||
Edit
|
||||
{{#translate}}Edit{{/translate}}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -1,38 +1,38 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
|
||||
<li><a href="/segments/{{list.id}}">Segments</a></li>
|
||||
<li class="active">Create Segment</li>
|
||||
<li><a href="/segments/{{list.id}}">{{#translate}}Segments{{/translate}}</a></li>
|
||||
<li class="active">{{#translate}}Create Segment{{/translate}}</li>
|
||||
</ol>
|
||||
|
||||
<h2>{{list.name}} <small>Create Segment</small></h2>
|
||||
<h2>{{list.name}} <small>{{#translate}}Create Segment{{/translate}}</small></h2>
|
||||
|
||||
<hr>
|
||||
|
||||
<form class="form-horizontal" method="post" action="/segments/{{list.id}}/create">
|
||||
<input type="hidden" name="_csrf" value="{{csrfToken}}">
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-sm-2 control-label">Segment Name</label>
|
||||
<label for="name" class="col-sm-2 control-label">{{#translate}}Segment Name{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control input-lg" name="name" id="name" value="{{name}}" placeholder="Segment Name" required>
|
||||
<input type="text" class="form-control input-lg" name="name" id="name" value="{{name}}" placeholder="{{#translate}}Segment Name{{/translate}}" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="group" class="col-sm-2 control-label">Rule match</label>
|
||||
<label for="group" class="col-sm-2 control-label">{{#translate}}Rule match{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" name="type">
|
||||
<option value=""> –– Select ––</option>
|
||||
<option value="1" {{#if matchAll}} selected {{/if}}>All rules must match</option>
|
||||
<option value="2" {{#if matchAny}} selected {{/if}}>Any rule can match</option>
|
||||
<option value=""> –– {{#translate}}Select{{/translate}} ––</option>
|
||||
<option value="1" {{#if matchAll}} selected {{/if}}>{{#translate}}All rules must match{{/translate}}</option>
|
||||
<option value="2" {{#if matchAny}} selected {{/if}}>{{#translate}}Any rule can match{{/translate}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-plus"></i> Add Segment</button>
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-plus"></i> {{#translate}}Add Segment{{/translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
|
||||
<li><a href="/segments/{{list.id}}">Segments</a></li>
|
||||
<li class="active">Edit Segment</li>
|
||||
<li><a href="/segments/{{list.id}}">{{#translate}}Segments{{/translate}}</a></li>
|
||||
<li class="active">{{#translate}}Edit Segment{{/translate}}</li>
|
||||
</ol>
|
||||
|
||||
<h2>{{list.name}} <small>Edit Segment</small> <a class="btn btn-default btn-xs" href="/segments/{{list.id}}" role="button"><span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> Back to segments</a></h2>
|
||||
<h2>{{list.name}} <small>{{#translate}}Edit Segment{{/translate}}</small> <a class="btn btn-default btn-xs" href="/segments/{{list.id}}" role="button"><span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> {{#translate}}Back to segments{{/translate}}</a></h2>
|
||||
|
||||
<hr>
|
||||
|
||||
|
@ -20,19 +20,19 @@
|
|||
<input type="hidden" name="id" value="{{id}}" />
|
||||
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-sm-2 control-label">Segment Name</label>
|
||||
<label for="name" class="col-sm-2 control-label">{{#translate}}Segment Name{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control input-lg" name="name" id="name" value="{{name}}" placeholder="Segment Name" required>
|
||||
<input type="text" class="form-control input-lg" name="name" id="name" value="{{name}}" placeholder="{{#translate}}Segment Name{{/translate}}" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="group" class="col-sm-2 control-label">Rule match</label>
|
||||
<label for="group" class="col-sm-2 control-label">{{#translate}}Rule match{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" name="type">
|
||||
<option value=""> –– Select ––</option>
|
||||
<option value="1" {{#if matchAll}} selected {{/if}}>All rules must match</option>
|
||||
<option value="2" {{#if matchAny}} selected {{/if}}>Any rule can match</option>
|
||||
<option value=""> –– {{#translate}}Select{{/translate}} ––</option>
|
||||
<option value="1" {{#if matchAll}} selected {{/if}}>{{#translate}}All rules must match{{/translate}}</option>
|
||||
<option value="2" {{#if matchAny}} selected {{/if}}>{{#translate}}Any rule can match{{/translate}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -40,9 +40,9 @@
|
|||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<div class="pull-right">
|
||||
<button type="submit" form="segments-delete" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> Delete Segment</button>
|
||||
<button type="submit" form="segments-delete" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> {{#translate}}Delete Segment{{/translate}}</button>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> Update</button>
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> {{#translate}}Update{{/translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
|
||||
<li><a href="/segments/{{list.id}}">Segments</a></li>
|
||||
<li><a href="/segments/{{list.id}}">{{#translate}}Segments{{/translate}}</a></li>
|
||||
<li><a href="/segments/{{list.id}}/view/{{id}}">{{name}}</a></li>
|
||||
<li class="active">Create Segment</li>
|
||||
<li class="active">{{#translate}}Create Segment{{/translate}}</li>
|
||||
</ol>
|
||||
|
||||
<h2>{{list.name}} <small>Create Rule</small></h2>
|
||||
<h2>{{list.name}} <small>{{#translate}}Create Rule{{/translate}}</small></h2>
|
||||
|
||||
<hr>
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
|||
<input type="hidden" name="column" value="{{column.column}}">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="column" class="col-sm-2 control-label">Rule</label>
|
||||
<label for="column" class="col-sm-2 control-label">{{#translate}}Rule{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<p class="form-control-static"><strong>{{column.name}}</strong></p>
|
||||
</div>
|
||||
|
@ -24,20 +24,20 @@
|
|||
|
||||
{{#if columnTypeString}}
|
||||
<div class="form-group">
|
||||
<label for="value" class="col-sm-2 control-label">Value</label>
|
||||
<label for="value" class="col-sm-2 control-label">{{#translate}}Value{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" name="value" id="value" value="{{value.value}}" placeholder="Value">
|
||||
<span class="help-block">Use % for wildcard character, e.g. "%test" to match all values that end with "test"</span>
|
||||
<input type="text" class="form-control" name="value" id="value" value="{{value.value}}" placeholder="{{#translate}}Value{{/translate}}">
|
||||
<span class="help-block">{{#translate}}Use % for wildcard character, e.g. "%test" to match all values that end with "test"{{/translate}}</span>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if columnTypeNumber}}
|
||||
<div class="form-group">
|
||||
<label for="value" class="col-sm-2 control-label">Value</label>
|
||||
<label for="value" class="col-sm-2 control-label">{{#translate}}Value{{/translate}}</label>
|
||||
<div class="col-sm-10 radio">
|
||||
<label>
|
||||
<input type="radio" name="range" value="" {{#unless value.range}} checked {{/unless}}> Use exact match
|
||||
<input type="radio" name="range" value="" {{#unless value.range}} checked {{/unless}}> {{#translate}}Use exact match{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -50,7 +50,7 @@
|
|||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10 radio">
|
||||
<label>
|
||||
<input type="radio" name="range" value="yes" {{#if value.range}} checked {{/if}}> Use range match
|
||||
<input type="radio" name="range" value="yes" {{#if value.range}} checked {{/if}}> {{#translate}}Use range match{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -78,10 +78,10 @@
|
|||
|
||||
{{#if columnTypeDate}}
|
||||
<div class="form-group">
|
||||
<label for="value" class="col-sm-2 control-label">Value</label>
|
||||
<label for="value" class="col-sm-2 control-label">{{#translate}}Value{{/translate}}</label>
|
||||
<div class="col-sm-10 radio">
|
||||
<label>
|
||||
<input type="radio" name="range" value="" {{#unless value.range}} {{#unless value.relativeRange}} checked {{/unless}} {{/unless}}> Use exact match
|
||||
<input type="radio" name="range" value="" {{#unless value.range}} {{#unless value.relativeRange}} checked {{/unless}} {{/unless}}> {{#translate}}Use exact match{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -96,7 +96,7 @@
|
|||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10 radio">
|
||||
<label>
|
||||
<input type="radio" name="range" value="yes" {{#if value.range}} checked {{/if}}> Use range match
|
||||
<input type="radio" name="range" value="yes" {{#if value.range}} checked {{/if}}> {{#translate}}Use range match{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -127,7 +127,7 @@
|
|||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10 radio">
|
||||
<label>
|
||||
<input type="radio" name="range" value="relative" {{#if value.relativeRange}} checked {{/if}}> Use relative range match
|
||||
<input type="radio" name="range" value="relative" {{#if value.relativeRange}} checked {{/if}}> {{#translate}}Use relative range match{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -136,38 +136,38 @@
|
|||
<div class="col-sm-offset-2 col-sm-10 radio">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<p class="form-control-static">From</p>
|
||||
<p class="form-control-static">{{#translate}}From{{/translate}}</p>
|
||||
</div>
|
||||
<div class="col-md-4 form-inline">
|
||||
<div class="input-group">
|
||||
<input type="number" class="form-control" name="start-relative" placeholder="0" {{#if value.relativeRange}} value="{{value.start}}" {{/if}}>
|
||||
<div class="input-group-addon">
|
||||
days
|
||||
{{#translate}}days{{/translate}}
|
||||
<select name="start-direction">
|
||||
<option value="0">
|
||||
before today
|
||||
{{#translate}}before today{{/translate}}
|
||||
</option>
|
||||
<option value="1" {{#if value.startDirection}} selected {{/if}}>
|
||||
after today
|
||||
{{#translate}}after today{{/translate}}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
<p class="form-control-static text-center">to</p>
|
||||
<p class="form-control-static text-center">{{#translate}}to{{/translate}}</p>
|
||||
</div>
|
||||
<div class="col-md-4 form-inline">
|
||||
<div class="input-group">
|
||||
<input type="number" class="form-control" name="end-relative" placeholder="0" {{#if value.relativeRange}} value="{{value.end}}" {{/if}}>
|
||||
<div class="input-group-addon">
|
||||
days
|
||||
{{#translate}}days{{/translate}}
|
||||
<select name="end-direction">
|
||||
<option value="0">
|
||||
before today
|
||||
{{#translate}}before today{{/translate}}
|
||||
</option>
|
||||
<option value="1" {{#if value.endDirection}} selected {{/if}}>
|
||||
after today
|
||||
{{#translate}}after today{{/translate}}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
@ -180,10 +180,10 @@
|
|||
|
||||
{{#if columnTypeBirthday}}
|
||||
<div class="form-group">
|
||||
<label for="value" class="col-sm-2 control-label">Value</label>
|
||||
<label for="value" class="col-sm-2 control-label">{{#translate}}Value{{/translate}}</label>
|
||||
<div class="col-sm-10 radio">
|
||||
<label>
|
||||
<input type="radio" name="range" value="" {{#unless isRange}} checked {{/unless}}> Use exact match
|
||||
<input type="radio" name="range" value="" {{#unless isRange}} checked {{/unless}}> {{#translate}}Use exact match{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -198,7 +198,7 @@
|
|||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10 radio">
|
||||
<label>
|
||||
<input type="radio" name="range" value="yes" {{#if isRange}} checked {{/if}}> Use range match
|
||||
<input type="radio" name="range" value="yes" {{#if isRange}} checked {{/if}}> {{#translate}}Use range match{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -207,7 +207,7 @@
|
|||
<div class="col-sm-offset-2 col-sm-10 radio">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<p class="form-control-static">From</p>
|
||||
<p class="form-control-static">{{#translate}}From{{/translate}}</p>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="input-group date fm-birthday-generic">
|
||||
|
@ -215,7 +215,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
<p class="form-control-static text-center">to</p>
|
||||
<p class="form-control-static text-center">{{#translate}}to{{/translate}}</p>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="input-group date fm-birthday-generic">
|
||||
|
@ -229,16 +229,16 @@
|
|||
|
||||
{{#if columnTypeBoolean}}
|
||||
<div class="form-group">
|
||||
<label for="value" class="col-sm-2 control-label">Value</label>
|
||||
<label for="value" class="col-sm-2 control-label">{{#translate}}Value{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="value" value="yes" {{#if value.value}} checked {{/if}}> Selected
|
||||
<input type="radio" name="value" value="yes" {{#if value.value}} checked {{/if}}> {{#translate}}Selected{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="value" value="" {{#unless value.value}} checked {{/unless}}> Not selected
|
||||
<input type="radio" name="value" value="" {{#unless value.value}} checked {{/unless}}> {{#translate}}Not selected{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -248,7 +248,7 @@
|
|||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-plus"></i> Add Rule</button>
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-plus"></i> {{#translate}}Add Rule{{/translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
|
||||
<li><a href="/segments/{{list.id}}">Segments</a></li>
|
||||
<li><a href="/segments/{{list.id}}">{{#translate}}Segments{{/translate}}</a></li>
|
||||
<li><a href="/segments/{{list.id}}/view/{{id}}">{{name}}</a></li>
|
||||
<li class="active">Create Segment</li>
|
||||
<li class="active">{{#translate}}Create Segment{{/translate}}</li>
|
||||
</ol>
|
||||
|
||||
<h2>{{list.name}} <small>Create Rule</small></h2>
|
||||
<h2>{{list.name}} <small>{{#translate}}Create Rule{{/translate}}</small></h2>
|
||||
|
||||
<hr>
|
||||
|
||||
|
@ -15,10 +15,10 @@
|
|||
<input type="hidden" name="_csrf" value="{{csrfToken}}">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="column" class="col-sm-2 control-label">Rule</label>
|
||||
<label for="column" class="col-sm-2 control-label">{{#translate}}Rule{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<select id="column" class="form-control" name="column" required>
|
||||
<option value=""> –– Select ––</option>
|
||||
<option value=""> –– {{#translate}}Select{{/translate}} ––</option>
|
||||
{{#each columns}}
|
||||
<option value="{{column}}" {{#if selected}} selected {{/if}}>{{name}}</option>
|
||||
{{/each}}
|
||||
|
@ -28,7 +28,7 @@
|
|||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> Next</button>
|
||||
<button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> {{#translate}}Next{{/translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
|
||||
<li><a href="/segments/{{list.id}}">Segments</a></li>
|
||||
<li><a href="/segments/{{list.id}}">{{#translate}}Segments{{/translate}}</a></li>
|
||||
<li><a href="/segments/{{list.id}}/view/{{segment.id}}">{{name}}</a></li>
|
||||
<li class="active">Create Segment</li>
|
||||
<li class="active">{{#translate}}Create Segment{{/translate}}</li>
|
||||
</ol>
|
||||
|
||||
<h2>{{list.name}} <small>Create Rule</small></h2>
|
||||
<h2>{{list.name}} <small>{{#translate}}Create Rule{{/translate}}</small></h2>
|
||||
|
||||
<hr>
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
|||
<input type="hidden" name="id" value="{{id}}">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="column" class="col-sm-2 control-label">Rule</label>
|
||||
<label for="column" class="col-sm-2 control-label">{{#translate}}Rule{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<p class="form-control-static"><strong>{{column.name}}</strong></p>
|
||||
</div>
|
||||
|
@ -29,20 +29,20 @@
|
|||
|
||||
{{#if columnTypeString}}
|
||||
<div class="form-group">
|
||||
<label for="value" class="col-sm-2 control-label">Value</label>
|
||||
<label for="value" class="col-sm-2 control-label">{{#translate}}Value{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" name="value" id="value" value="{{value.value}}" placeholder="Value">
|
||||
<span class="help-block">Use % for wildcard character, e.g. "%test" to match all values that end with "test"</span>
|
||||
<input type="text" class="form-control" name="value" id="value" value="{{value.value}}" placeholder="{{#translate}}Value{{/translate}}">
|
||||
<span class="help-block">{{#translate}}Use % for wildcard character, e.g. "%test" to match all values that end with "test"{{/translate}}</span>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if columnTypeNumber}}
|
||||
<div class="form-group">
|
||||
<label for="value" class="col-sm-2 control-label">Value</label>
|
||||
<label for="value" class="col-sm-2 control-label">{{#translate}}Value{{/translate}}</label>
|
||||
<div class="col-sm-10 radio">
|
||||
<label>
|
||||
<input type="radio" name="range" value="" {{#unless value.range}} checked {{/unless}}> Use exact match
|
||||
<input type="radio" name="range" value="" {{#unless value.range}} checked {{/unless}}> {{#translate}}Use exact match{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -55,7 +55,7 @@
|
|||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10 radio">
|
||||
<label>
|
||||
<input type="radio" name="range" value="yes" {{#if value.range}} checked {{/if}}> Use range match
|
||||
<input type="radio" name="range" value="yes" {{#if value.range}} checked {{/if}}> {{#translate}}Use range match{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -64,13 +64,13 @@
|
|||
<div class="col-sm-offset-2 col-sm-10 radio">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<p class="form-control-static">From</p>
|
||||
<p class="form-control-static">{{#translate}}From{{/translate}}</p>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<input type="number" class="form-control" name="start" value="{{value.start}}" placeholder="0">
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
<p class="form-control-static text-center">to</p>
|
||||
<p class="form-control-static text-center">{{#translate}}to{{/translate}}</p>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<input type="number" class="form-control" name="end" value="{{value.end}}" placeholder="0">
|
||||
|
@ -83,10 +83,10 @@
|
|||
|
||||
{{#if columnTypeDate}}
|
||||
<div class="form-group">
|
||||
<label for="value" class="col-sm-2 control-label">Value</label>
|
||||
<label for="value" class="col-sm-2 control-label">{{#translate}}Value{{/translate}}</label>
|
||||
<div class="col-sm-10 radio">
|
||||
<label>
|
||||
<input type="radio" name="range" value="" {{#unless value.range}} {{#unless value.relativeRange}} checked {{/unless}} {{/unless}}> Use exact match
|
||||
<input type="radio" name="range" value="" {{#unless value.range}} {{#unless value.relativeRange}} checked {{/unless}} {{/unless}}> {{#translate}}Use exact match{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -101,7 +101,7 @@
|
|||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10 radio">
|
||||
<label>
|
||||
<input type="radio" name="range" value="yes" {{#if value.range}} checked {{/if}}> Use range match
|
||||
<input type="radio" name="range" value="yes" {{#if value.range}} checked {{/if}}> {{#translate}}Use range match{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -110,7 +110,7 @@
|
|||
<div class="col-sm-offset-2 col-sm-10 radio">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<p class="form-control-static">From</p>
|
||||
<p class="form-control-static">{{#translate}}From{{/translate}}</p>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="input-group date fm-date-generic">
|
||||
|
@ -118,7 +118,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
<p class="form-control-static text-center">to</p>
|
||||
<p class="form-control-static text-center">{{#translate}}to{{/translate}}</p>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="input-group date fm-date-generic">
|
||||
|
@ -132,7 +132,7 @@
|
|||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10 radio">
|
||||
<label>
|
||||
<input type="radio" name="range" value="relative" {{#if value.relativeRange}} checked {{/if}}> Use relative range match
|
||||
<input type="radio" name="range" value="relative" {{#if value.relativeRange}} checked {{/if}}> {{#translate}}Use relative range match{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -141,38 +141,38 @@
|
|||
<div class="col-sm-offset-2 col-sm-10 radio">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<p class="form-control-static">From</p>
|
||||
<p class="form-control-static">{{#translate}}From{{/translate}}</p>
|
||||
</div>
|
||||
<div class="col-md-4 form-inline">
|
||||
<div class="input-group">
|
||||
<input type="number" class="form-control" name="start-relative" placeholder="0" {{#if value.relativeRange}} value="{{value.start}}" {{/if}}>
|
||||
<div class="input-group-addon">
|
||||
days
|
||||
{{#translate}}days{{/translate}}
|
||||
<select name="start-direction">
|
||||
<option value="0">
|
||||
before today
|
||||
{{#translate}}before today{{/translate}}
|
||||
</option>
|
||||
<option value="1" {{#if value.startDirection}} selected {{/if}}>
|
||||
after today
|
||||
{{#translate}}after today{{/translate}}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
<p class="form-control-static text-center">to</p>
|
||||
<p class="form-control-static text-center">{{#translate}}to{{/translate}}</p>
|
||||
</div>
|
||||
<div class="col-md-4 form-inline">
|
||||
<div class="input-group">
|
||||
<input type="number" class="form-control" name="end-relative" placeholder="0" {{#if value.relativeRange}} value="{{value.end}}" {{/if}}>
|
||||
<div class="input-group-addon">
|
||||
days
|
||||
{{#translate}}days{{/translate}}
|
||||
<select name="end-direction">
|
||||
<option value="0">
|
||||
before today
|
||||
{{#translate}}before today{{/translate}}
|
||||
</option>
|
||||
<option value="1" {{#if value.endDirection}} selected {{/if}}>
|
||||
after today
|
||||
{{#translate}}after today{{/translate}}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
@ -185,10 +185,10 @@
|
|||
|
||||
{{#if columnTypeBirthday}}
|
||||
<div class="form-group">
|
||||
<label for="value" class="col-sm-2 control-label">Value</label>
|
||||
<label for="value" class="col-sm-2 control-label">{{#translate}}Value{{/translate}}</label>
|
||||
<div class="col-sm-10 radio">
|
||||
<label>
|
||||
<input type="radio" name="range" value="" {{#unless value.range}} checked {{/unless}}> Use exact match
|
||||
<input type="radio" name="range" value="" {{#unless value.range}} checked {{/unless}}> {{#translate}}Use exact match{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -203,7 +203,7 @@
|
|||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10 radio">
|
||||
<label>
|
||||
<input type="radio" name="range" value="yes" {{#if value.range}} checked {{/if}}> Use range match
|
||||
<input type="radio" name="range" value="yes" {{#if value.range}} checked {{/if}}> {{#translate}}Use range match{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -212,7 +212,7 @@
|
|||
<div class="col-sm-offset-2 col-sm-10 radio">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<p class="form-control-static">From</p>
|
||||
<p class="form-control-static">{{#translate}}From{{/translate}}</p>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="input-group date fm-birthday-generic">
|
||||
|
@ -220,7 +220,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
<p class="form-control-static text-center">To</p>
|
||||
<p class="form-control-static text-center">{{#translate}}to{{/translate}}</p>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="input-group date fm-birthday-generic">
|
||||
|
@ -234,16 +234,16 @@
|
|||
|
||||
{{#if columnTypeBoolean}}
|
||||
<div class="form-group">
|
||||
<label for="value" class="col-sm-2 control-label">Value</label>
|
||||
<label for="value" class="col-sm-2 control-label">{{#translate}}Value{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="value" value="yes" {{#if value.value}} checked {{/if}}> Selected
|
||||
<input type="radio" name="value" value="yes" {{#if value.value}} checked {{/if}}> {{#translate}}Selected{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="value" value="" {{#unless value.value}} checked {{/unless}}> Not selected
|
||||
<input type="radio" name="value" value="" {{#unless value.value}} checked {{/unless}}> {{#translate}}Not selected{{/translate}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -254,9 +254,9 @@
|
|||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<div class="pull-right">
|
||||
<button type="submit" form="rule-delete" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> Delete Rule</button>
|
||||
<button type="submit" form="rule-delete" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> {{#translate}}Delete Rule{{/translate}}</button>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> Update</button>
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> {{#translate}}Update{{/translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
|
||||
<li class="active">Segments</li>
|
||||
<li class="active">{{#translate}}Segments{{/translate}}</li>
|
||||
</ol>
|
||||
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-primary" href="/segments/{{list.id}}/create" role="button"><i class="glyphicon glyphicon-plus"></i> Create Segment</a>
|
||||
<a class="btn btn-primary" href="/segments/{{list.id}}/create" role="button"><i class="glyphicon glyphicon-plus"></i> {{#translate}}Create Segment{{/translate}}</a>
|
||||
</div>
|
||||
|
||||
<h2>{{list.name}} <small>Segments</small></h2>
|
||||
<h2>{{list.name}} <small>{{#translate}}Segments{{/translate}}</small></h2>
|
||||
|
||||
<hr>
|
||||
|
||||
|
@ -20,10 +20,10 @@
|
|||
#
|
||||
</th>
|
||||
<th>
|
||||
Name
|
||||
{{#translate}}Name{{/translate}}
|
||||
</th>
|
||||
<th class="col-md-2">
|
||||
Match
|
||||
{{#translate}}Match{{/translate}}
|
||||
</th>
|
||||
<th class="col-md-1">
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
|||
<td>
|
||||
<span class="glyphicon glyphicon-wrench" aria-hidden="true"></span>
|
||||
<a href="/segments/{{../list.id}}/edit/{{id}}">
|
||||
Edit
|
||||
{{#translate}}Edit{{/translate}}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -1,26 +1,26 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
|
||||
<li><a href="/segments/{{list.id}}">Segments</a></li>
|
||||
<li><a href="/segments/{{list.id}}">{{#translate}}Segments{{/translate}}</a></li>
|
||||
<li class="active">{{name}}</li>
|
||||
</ol>
|
||||
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-primary" href="/segments/{{list.id}}/rules/{{id}}/create" role="button"><i class="glyphicon glyphicon-plus"></i> Create Rule</a>
|
||||
<a class="btn btn-primary" href="/segments/{{list.id}}/rules/{{id}}/create" role="button"><i class="glyphicon glyphicon-plus"></i> {{#translate}}Create Rule{{/translate}}</a>
|
||||
</div>
|
||||
|
||||
<h2>{{list.name}} <small><span class="glyphicon glyphicon-filter" aria-hidden="true"></span> Segment {{name}}</small></h2>
|
||||
<h2>{{list.name}} <small><span class="glyphicon glyphicon-filter" aria-hidden="true"></span> {{#translate}}Segment{{/translate}} {{name}}</small></h2>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="well well-sm">
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-primary btn-sm" href="/segments/{{list.id}}/edit/{{id}}" role="button"><i class="glyphicon glyphicon-wrench"></i> Edit Segment</a>
|
||||
<a class="btn btn-primary btn-sm" href="/segments/{{list.id}}/edit/{{id}}" role="button"><i class="glyphicon glyphicon-wrench"></i> {{#translate}}Edit Segment{{/translate}}</a>
|
||||
</div>
|
||||
Match rules: <span class="label label-default">{{type}}</span>
|
||||
<br /> Matching subscribers: <span class="label label-default">{{subscribers}}</span> (
|
||||
<a href="/lists/view/{{list.id}}?segment={{id}}">show</a>)
|
||||
{{#translate}}Match rules{{/translate}}: <span class="label label-default">{{type}}</span>
|
||||
<br /> {{#translate}}Matching subscribers{{/translate}}: <span class="label label-default">{{subscribers}}</span> (
|
||||
<a href="/lists/view/{{list.id}}?segment={{id}}">{{#translate}}show{{/translate}}</a>)
|
||||
<br />
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
@ -32,10 +32,10 @@
|
|||
#
|
||||
</th>
|
||||
<th>
|
||||
Rule
|
||||
{{#translate}}Rule{{/translate}}
|
||||
</th>
|
||||
<th class="col-md-2">
|
||||
Value
|
||||
{{#translate}}Value{{/translate}}
|
||||
</th>
|
||||
<th class="col-md-1">
|
||||
|
||||
|
@ -57,7 +57,7 @@
|
|||
<td>
|
||||
<span class="glyphicon glyphicon-wrench" aria-hidden="true"></span>
|
||||
<a href="/segments/{{../list.id}}/rules/{{../id}}/edit/{{id}}">
|
||||
Edit
|
||||
{{#translate}}Edit{{/translate}}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
|
||||
<li class="active">Add subscriber</li>
|
||||
<li class="active">
|
||||
{{#translate}}Add subscriber{{/translate}}
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
<h2>{{list.name}} <small>Add subscriber</small></h2>
|
||||
<h2>{{list.name}} <small>{{#translate}}Add subscriber{{/translate}}</small></h2>
|
||||
|
||||
<hr>
|
||||
|
||||
|
@ -14,21 +16,21 @@
|
|||
<input type="hidden" name="list" value="{{list.id}}">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email" class="col-sm-2 control-label">Email Address</label>
|
||||
<label for="email" class="col-sm-2 control-label">{{#translate}}Email Address{{/translate}}</label>
|
||||
<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">
|
||||
<label for="first-name" class="col-sm-2 control-label">First Name</label>
|
||||
<label for="first-name" class="col-sm-2 control-label">{{#translate}}First Name{{/translate}}</label>
|
||||
<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">
|
||||
<label for="last-name" class="col-sm-2 control-label">Last Name</label>
|
||||
<label for="last-name" class="col-sm-2 control-label">{{#translate}}Last Name{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" name="last-name" id="last-name" placeholder="" value="{{lastName}}">
|
||||
</div>
|
||||
|
@ -59,8 +61,8 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if typeGpg}}
|
||||
<textarea class="form-control gpg-text" rows="3" name="{{column}}" placeholder="Begins with '-----BEGIN PGP PUBLIC KEY BLOCK-----'">{{value}}</textarea>
|
||||
<span class="help-block">Insert a GPG public key that will be used to encrypt messages sent this subscriber</span>
|
||||
<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>
|
||||
{{/if}}
|
||||
|
||||
{{#if typeDateUs}}
|
||||
|
@ -90,7 +92,7 @@
|
|||
{{#if typeDropdown}}
|
||||
<select name="{{key}}" class="form-control">
|
||||
<option value="">
|
||||
–– Select ––
|
||||
–– {{#translate}}Select{{/translate}} ––
|
||||
</option>
|
||||
{{#each options}}
|
||||
<option value="{{column}}" {{#if value}} selected {{/if}}>{{name}}</option>
|
||||
|
@ -122,11 +124,11 @@
|
|||
{{/each}}
|
||||
|
||||
<div class="form-group">
|
||||
<label for="tz" class="col-sm-2 control-label">Timezone</label>
|
||||
<label for="tz" class="col-sm-2 control-label">{{#translate}}Timezone{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<select name="tz" class="form-control">
|
||||
<option value="">
|
||||
–– Select ––
|
||||
–– {{#translate}}Select{{/translate}} ––
|
||||
</option>
|
||||
{{#each timezones}}
|
||||
<option value="{{key}}" {{#if selected}} selected {{/if}}>{{value}}</option>
|
||||
|
@ -139,8 +141,8 @@
|
|||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="is-test" {{#if isTest}} checked {{/if}}> Test user?
|
||||
<span class="help-block">If checked then this subscription can be used for previewing campaign messages</span>
|
||||
<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>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -151,10 +153,10 @@
|
|||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<p class="text-warning">
|
||||
This person will not receive a confirmation email so make sure that you have permission to email them.
|
||||
{{#translate}}This person will not receive a confirmation email so make sure that you have permission to email them.{{/translate}}
|
||||
</p>
|
||||
|
||||
<button type="submit" class="btn btn-primary">Subscribe</button>
|
||||
<button type="submit" class="btn btn-primary">{{#translate}}Subscribe{{/translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
|
||||
<li class="active">Edit subscriber</li>
|
||||
<li class="active">
|
||||
{{#translate}}Edit subscriber{{/translate}}
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
<h2>{{list.name}} <small>Edit subscriber</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> Back to list</a></h2>
|
||||
<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>
|
||||
|
||||
<hr>
|
||||
|
||||
|
@ -27,21 +29,21 @@
|
|||
<input type="hidden" name="cid" value="{{cid}}">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email" class="col-sm-2 control-label">Email address</label>
|
||||
<label for="email" class="col-sm-2 control-label">{{#translate}}Email address{{/translate}}</label>
|
||||
<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">
|
||||
<label for="first-name" class="col-sm-2 control-label">First Name</label>
|
||||
<label for="first-name" class="col-sm-2 control-label">{{#translate}}First Name{{/translate}}</label>
|
||||
<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">
|
||||
<label for="last-name" class="col-sm-2 control-label">Last Name</label>
|
||||
<label for="last-name" class="col-sm-2 control-label">{{#translate}}Last Name{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" name="last-name" id="last-name" placeholder="" value="{{lastName}}">
|
||||
</div>
|
||||
|
@ -72,8 +74,8 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if typeGpg}}
|
||||
<textarea class="form-control gpg-text" rows="3" name="{{column}}" placeholder="Begins with '-----BEGIN PGP PUBLIC KEY BLOCK-----'">{{value}}</textarea>
|
||||
<span class="help-block">Insert a GPG public key that will be used to encrypt messages sent this subscriber</span>
|
||||
<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>
|
||||
{{/if}}
|
||||
|
||||
{{#if typeDateUs}}
|
||||
|
@ -103,7 +105,7 @@
|
|||
{{#if typeDropdown}}
|
||||
<select name="{{key}}" class="form-control">
|
||||
<option value="">
|
||||
–– Select ––
|
||||
–– {{#translate}}Select{{/translate}} ––
|
||||
</option>
|
||||
{{#each options}}
|
||||
<option value="{{column}}" {{#if value}} selected {{/if}}>{{name}}</option>
|
||||
|
@ -135,7 +137,7 @@
|
|||
{{/each}}
|
||||
|
||||
<div class="form-group">
|
||||
<label for="tz" class="col-sm-2 control-label">Timezone</label>
|
||||
<label for="tz" class="col-sm-2 control-label">{{#translate}}Timezone{{/translate}}</label>
|
||||
<div class="col-sm-10">
|
||||
<select name="tz" class="form-control">
|
||||
<option value="">
|
||||
|
@ -152,8 +154,8 @@
|
|||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="is-test" {{#if isTest}} checked {{/if}}> Test user?
|
||||
<span class="help-block">If checked then this subscription can be used for previewing campaign messages</span>
|
||||
<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>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -165,12 +167,12 @@
|
|||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<div class="pull-right">
|
||||
{{#if isSubscribed}}
|
||||
<button type="submit" form="subscriber-unsubscribe" class="btn btn-default"><i class="glyphicon glyphicon-ban-circle"></i> Unsubscribe</button>
|
||||
<button type="submit" form="subscriber-unsubscribe" class="btn btn-default"><i class="glyphicon glyphicon-ban-circle"></i> {{#translate}}Unsubscribe{{/translate}}</button>
|
||||
{{/if}}
|
||||
<button type="submit" form="subscriber-delete" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> Delete Subscription</button>
|
||||
<button type="submit" form="subscriber-delete" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> {{#translate}}Delete Subscription{{/translate}}</button>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> Update</button>
|
||||
<button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> {{#translate}}Update{{/translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
|
||||
<li class="active">Import status</li>
|
||||
<li class="active">{{#translate}}Import status{{/translate}}</li>
|
||||
</ol>
|
||||
|
||||
<h2>{{list.name}} <small>Failed addresses</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> Back to list</a></h2>
|
||||
<h2>{{list.name}} <small>{{#translate}}Failed addresses{{/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>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="well">
|
||||
Role-based addresses like <em><strong>postmaster</strong>@example.com</em> are blocked when importing. Subscribers with role-based email addresses can join your list using the <a href="/subscription/{{list.cid}}">subscription form</a>.
|
||||
{{#translate}}Role-based addresses like postmaster@example.com are blocked when importing. Subscribers with role-based email addresses can join your list using the subscription form{{#translate}} (<a href="/subscription/{{list.cid}}">{{#translate}}see here{{/translate}}</a>).
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
|
@ -20,10 +20,10 @@
|
|||
#
|
||||
</th>
|
||||
<th>
|
||||
Address
|
||||
{{#translate}}Address{{/translate}}
|
||||
</th>
|
||||
<th>
|
||||
Fail reason
|
||||
{{#translate}}Fail reason{{/translate}}
|
||||
</th>
|
||||
</thead>
|
||||
{{#if rows}}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
|
||||
<li class="active">Import subscribers</li>
|
||||
<li class="active">{{#translate}}Import subscribers{{/translate}}</li>
|
||||
</ol>
|
||||
|
||||
<h2>{{list.name}} <small>Import subscribers</small></h2>
|
||||
<h2>{{list.name}} <small>{{#translate}}Import subscribers{{/translate}}</small></h2>
|
||||
|
||||
<hr>
|
||||
|
||||
|
@ -20,11 +20,11 @@
|
|||
<label for="column-{{@index}}" class="col-sm-2 control-label">{{this}}</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" id="column-{{@index}}" name="column-{{@index}}">
|
||||
<option value=""> –– Select –– </option>
|
||||
<option value="email">Email address</option>
|
||||
<option value="first_name">First Name</option>
|
||||
<option value="last_name">Last Name</option>
|
||||
<option value="tz">Timezone</option>
|
||||
<option value=""> –– {{#translate}}Select{{/translate}} –– </option>
|
||||
<option value="email">{{#translate}}Email address{{/translate}}</option>
|
||||
<option value="first_name">{{#translate}}First Name{{/translate}}</option>
|
||||
<option value="last_name">{{#translate}}Last Name{{/translate}}</option>
|
||||
<option value="tz">{{#translate}}Timezone{{/translate}}</option>
|
||||
{{#each ../customFields}}
|
||||
{{#if column}}
|
||||
<option value="{{column}}">{{name}}</option>
|
||||
|
@ -39,7 +39,7 @@
|
|||
{{/each}}
|
||||
</select>
|
||||
|
||||
<span id="helpBlock" class="help-block">Example: "{{lookup ../mapping.example @index}}"</span>
|
||||
<span id="helpBlock" class="help-block">{{#translate}}Example{{/translate}}: "{{lookup ../mapping.example @index}}"</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -49,7 +49,7 @@
|
|||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="submit" class="btn btn-primary">Start import</button>
|
||||
<button type="submit" class="btn btn-primary">{{#translate}}Start import{{/translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li><a href="/lists/view/{{list.id}}">{{list.name}}</a></li>
|
||||
<li class="active">Import subscribers</li>
|
||||
<li class="active">{{#translate}}Import subscribers{{/translate}}</li>
|
||||
</ol>
|
||||
|
||||
<h2>{{list.name}} <small>Import subscribers</small></h2>
|
||||
<h2>{{list.name}} <small>{{#translate}}Import subscribers{{/translate}}</small></h2>
|
||||
|
||||
<hr>
|
||||
|
||||
|
@ -14,30 +14,30 @@
|
|||
<input type="hidden" name="list" value="{{list.id}}">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="listimport" class="col-sm-2 control-label">CSV File</label>
|
||||
<label for="listimport" class="col-sm-2 control-label">{{#translate}}CSV File{{/translate}}</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="file" class="form-control" name="listimport" id="listimport" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="delimiter" class="col-sm-2 control-label">CSV delimiter</label>
|
||||
<label for="delimiter" class="col-sm-2 control-label">{{#translate}}CSV delimiter{{/translate}}</label>
|
||||
<div class="col-sm-1">
|
||||
<input type="text" class="form-control" name="delimiter" id="delimiter" placeholder="" value="{{delimiter}}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Categorize the imported subscribers as:</label>
|
||||
<label class="col-sm-2 control-label">{{#translate}}Categorize the imported subscribers as{{/translate}}:</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="type" id="type" value="subscribed" checked> Subscribed – <span class="text-muted">Regular subscriber addresses</span>
|
||||
<input type="radio" name="type" id="type" value="subscribed" checked> {{#translate}}Subscribed{{/translate}} – <span class="text-muted">{{#translate}}Regular subscriber addresses{{/translate}}</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="type" id="type" value="unsubscribed"> Unsubscribed – <span class="text-muted">Suppressed emails that will be unsubscribed from your list</span>
|
||||
<input type="radio" name="type" id="type" value="unsubscribed"> {{#translate}}Unsubscribed{{/translate}} – <span class="text-muted">{{#translate}}Suppressed emails that will be unsubscribed from your list{{/translate}}</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -47,7 +47,7 @@
|
|||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> Next</button>
|
||||
<button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> {{#translate}}Next{{/translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/lists/">Lists</a></li>
|
||||
<li><a href="/">{{#translate}}Home{{/translate}}</a></li>
|
||||
<li><a href="/lists/">{{#translate}}Lists{{/translate}}</a></li>
|
||||
<li class="active">{{name}}</li>
|
||||
</ol>
|
||||
|
||||
<div class="pull-right">
|
||||
|
||||
<a class="btn btn-default" href="/subscription/{{cid}}" target="_blank" role="button"><span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span> Subscription Form</a>
|
||||
<a class="btn btn-default" href="/subscription/{{cid}}" target="_blank" role="button"><span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span> {{#translate}}Subscription Form{{/translate}}</a>
|
||||
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
List Actions <span class="caret"></span>
|
||||
{{#translate}}List Actions{{/translate}} <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="/fields/{{id}}" role="button"><span class="glyphicon glyphicon-tasks" aria-hidden="true"></span> Custom Fields</a></li>
|
||||
<li><a href="/segments/{{id}}" role="button"><span class="glyphicon glyphicon-filter" aria-hidden="true"></span> Segments</a></li>
|
||||
<li><a href="/lists/edit/{{id}}" role="button"><span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> Edit List</a></li>
|
||||
<li><a href="/triggers/{{id}}/create" role="button"><span class="glyphicon glyphicon-console" aria-hidden="true"></span> Create Trigger</a></li>
|
||||
<li><a href="/fields/{{id}}" role="button"><span class="glyphicon glyphicon-tasks" aria-hidden="true"></span> {{#translate}}Custom Fields{{/translate}}</a></li>
|
||||
<li><a href="/segments/{{id}}" role="button"><span class="glyphicon glyphicon-filter" aria-hidden="true"></span> {{#translate}}Segments{{/translate}}</a></li>
|
||||
<li><a href="/lists/edit/{{id}}" role="button"><span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> {{#translate}}Edit List{{/translate}}</a></li>
|
||||
<li><a href="/triggers/{{id}}/create" role="button"><span class="glyphicon glyphicon-console" aria-hidden="true"></span> {{#translate}}Create Trigger{{/translate}}</a></li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li><a href="/lists/subscription/{{id}}/add" role="button"><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> Add Subscriber</a></li>
|
||||
<li><a href="/lists/subscription/{{id}}/import" role="button"><span class="glyphicon glyphicon-cloud-upload" aria-hidden="true"></span> Import Subscribers</a></li>
|
||||
<li><a href="/lists/subscription/{{id}}/add" role="button"><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> {{#translate}}Add Subscriber{{/translate}}</a></li>
|
||||
<li><a href="/lists/subscription/{{id}}/import" role="button"><span class="glyphicon glyphicon-cloud-upload" aria-hidden="true"></span> {{#translate}}Import Subscribers{{/translate}}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -35,35 +35,35 @@
|
|||
<div class="well well-sm">
|
||||
{{#if useSegment}}
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-primary btn-sm" href="/segments/{{id}}/edit/{{segment}}" role="button"><span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> Edit Segment</a>
|
||||
<a class="btn btn-primary btn-sm" href="/segments/{{id}}/edit/{{segment}}" role="button"><span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> {{#translate}}Edit Segment{{/translate}}</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
<form class="form-inline" method="get">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputName2">Segment</label>
|
||||
<label for="exampleInputName2">{{#translate}}Segment{{/translate}}</label>
|
||||
<select name="segment" class="form-control">
|
||||
<option value="0">All Subscriptions</option>
|
||||
{{#if segments}}
|
||||
<optgroup label="Segments">
|
||||
<optgroup label="{{#translate}}Segments{{/translate}}">
|
||||
{{#each segments}}
|
||||
<option value="{{id}}" {{#if selected}} selected {{/if}}>{{name}}</option>
|
||||
{{/each}}
|
||||
</optgroup>
|
||||
{{/if}}
|
||||
<optgroup label="Actions">
|
||||
<option value="-1">Create New Segment…</option>
|
||||
<option value="-1">{{#translate}}Create New Segment{{/translate}}…</option>
|
||||
</optgroup>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-filter" aria-hidden="true"></span> Filter</button>
|
||||
<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-filter" aria-hidden="true"></span> {{#translate}}Filter{{/translate}}</button>
|
||||
</form>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<!-- Nav tabs -->
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li role="presentation" class="{{#if showSubscriptions}}active{{/if}}"><a href="/lists/view/{{id}}" aria-controls="subscriptions" role="tab">Subscriptions</a></li>
|
||||
<li role="presentation" class="{{#if showImports}}active{{/if}}"><a href="/lists/view/{{id}}?tab=imports" aria-controls="imports" role="tab">Imports</a></li>
|
||||
<li role="presentation" class="{{#if showSubscriptions}}active{{/if}}"><a href="/lists/view/{{id}}" aria-controls="subscriptions" role="tab">{{#translate}}Subscriptions{{/translate}}</a></li>
|
||||
<li role="presentation" class="{{#if showImports}}active{{/if}}"><a href="/lists/view/{{id}}?tab=imports" aria-controls="imports" role="tab">{{#translate}}Imports{{/translate}}</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
|
@ -79,13 +79,13 @@
|
|||
#
|
||||
</th>
|
||||
<th>
|
||||
Address
|
||||
{{#translate}}Address{{/translate}}
|
||||
</th>
|
||||
<th>
|
||||
First Name
|
||||
{{#translate}}First Name{{/translate}}
|
||||
</th>
|
||||
<th>
|
||||
Last Name
|
||||
{{#translate}}Last Name{{/translate}}
|
||||
</th>
|
||||
{{#each customFields}}
|
||||
<th>
|
||||
|
@ -93,10 +93,10 @@
|
|||
</th>
|
||||
{{/each}}
|
||||
<th>
|
||||
Status
|
||||
{{#translate}}Status{{/translate}}
|
||||
</th>
|
||||
<th>
|
||||
Created
|
||||
{{#translate}}Created{{/translate}}
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
@ -117,25 +117,25 @@
|
|||
#
|
||||
</th>
|
||||
<th>
|
||||
Created
|
||||
{{#translate}}Created{{/translate}}
|
||||
</th>
|
||||
<th>
|
||||
Finished
|
||||
{{#translate}}Finished{{/translate}}
|
||||
</th>
|
||||
<th>
|
||||
Type
|
||||
{{#translate}}Type{{/translate}}
|
||||
</th>
|
||||
<th>
|
||||
Added
|
||||
{{#translate}}Added{{/translate}}
|
||||
</th>
|
||||
<th>
|
||||
Updated
|
||||
{{#translate}}Updated{{/translate}}
|
||||
</th>
|
||||
<th>
|
||||
Failed
|
||||
{{#translate}}Failed{{/translate}}
|
||||
</th>
|
||||
<th>
|
||||
Status
|
||||
{{#translate}}Status{{/translate}}
|
||||
</th>
|
||||
<th>
|
||||
|
||||
|
@ -181,11 +181,11 @@
|
|||
{{/if}}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<form method="post" class="confirm-submit" data-confirm-message="Are you sure? This action should only be called to resolve stalled imports" action="/lists/subscription/import-restart">
|
||||
<form method="post" class="confirm-submit" data-confirm-message="{{#translate}}Are you sure? This action should only be called to resolve stalled imports{{/translate}}" action="/lists/subscription/import-restart">
|
||||
<input type="hidden" name="_csrf" value="{{../csrfToken}}">
|
||||
<input type="hidden" name="list" value="{{list}}">
|
||||
<input type="hidden" name="import" value="{{id}}">
|
||||
<button type="submit" class="btn btn-info btn-xs"><span class="glyphicon glyphicon-repeat" aria-hidden="true"></span> Restart</button>
|
||||
<button type="submit" class="btn btn-info btn-xs"><span class="glyphicon glyphicon-repeat" aria-hidden="true"></span> {{#translate}}Restart{{/translate}}</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -193,7 +193,7 @@
|
|||
{{else}}
|
||||
<tr>
|
||||
<td colspan="9">
|
||||
No data available in table
|
||||
{{#translate}}No data available in table{{/translate}}
|
||||
</td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue