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><a href="/segments/{{list.id}}">{{#translate}}Segments{{/translate}}</a></li>
|
|
|
|
|
<li class="active">{{#translate}}Edit Segment{{/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 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>
|
2016-04-04 12:36:30 +00:00
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
|
|
<form method="post" class="delete-form" id="segments-delete" action="/segments/{{list.id}}/delete">
|
|
|
|
|
<input type="hidden" name="_csrf" value="{{csrfToken}}">
|
|
|
|
|
<input type="hidden" name="id" value="{{id}}" />
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<form class="form-horizontal" method="post" action="/segments/{{list.id}}/edit">
|
|
|
|
|
<input type="hidden" name="_csrf" value="{{csrfToken}}">
|
|
|
|
|
<input type="hidden" name="id" value="{{id}}" />
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-03-07 14:30:56 +00:00
|
|
|
|
<label for="name" class="col-sm-2 control-label">{{#translate}}Segment Name{{/translate}}</label>
|
2016-04-04 12:36:30 +00:00
|
|
|
|
<div class="col-sm-10">
|
2017-03-07 14:30:56 +00:00
|
|
|
|
<input type="text" class="form-control input-lg" name="name" id="name" value="{{name}}" placeholder="{{#translate}}Segment Name{{/translate}}" required>
|
2016-04-04 12:36:30 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-03-07 14:30:56 +00:00
|
|
|
|
<label for="group" class="col-sm-2 control-label">{{#translate}}Rule match{{/translate}}</label>
|
2016-04-04 12:36:30 +00:00
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<select class="form-control" name="type">
|
2017-03-07 14:30:56 +00:00
|
|
|
|
<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>
|
2016-04-04 12:36:30 +00:00
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
|
|
|
<div class="pull-right">
|
2017-03-07 14:30:56 +00:00
|
|
|
|
<button type="submit" form="segments-delete" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> {{#translate}}Delete Segment{{/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>
|