mailtrain/views/lists/segments/create.hbs
2017-03-07 16:30:56 +02:00

38 lines
1.8 KiB
Handlebars
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<ol class="breadcrumb">
<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}}">{{#translate}}Segments{{/translate}}</a></li>
<li class="active">{{#translate}}Create Segment{{/translate}}</li>
</ol>
<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">{{#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="{{#translate}}Segment Name{{/translate}}" required>
</div>
</div>
<div class="form-group">
<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=""> {{#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> {{#translate}}Add Segment{{/translate}}</button>
</div>
</div>
</form>