mirror of https://github.com/Squidex/squidex.git
11 changed files with 188 additions and 220 deletions
@ -1,34 +1,33 @@ |
|||||
<div [formGroup]="triggerForm" class="form-horizontal"> |
<div [formGroup]="triggerForm" class="form-horizontal"> |
||||
<div class="form-group"> |
<div class="form-group"> |
||||
<div class="form-check"> |
<label for="condition">Condition</label> |
||||
<input class="form-check-input" type="checkbox" id="sendCreate" formControlName="sendCreate" /> |
|
||||
<label class="form-check-label" for="sendCreate"> |
<sqx-control-errors for="condition" [submitted]="triggerFormSubmitted"></sqx-control-errors> |
||||
created |
|
||||
</label> |
<textarea class="form-control code" id="condition" formControlName="condition"></textarea> |
||||
</div> |
|
||||
</div> |
</div> |
||||
<div class="form-group"> |
|
||||
<div class="form-check"> |
<div class="help"> |
||||
<input class="form-check-input" type="checkbox" id="sendUpdate" formControlName="sendUpdate" /> |
<h4>Conditions</h4> |
||||
<label class="form-check-label" for="sendUpdate"> |
|
||||
updated |
<p>Conditions are javascript expressions that define when to trigger, for example:</p> |
||||
</label> |
|
||||
</div> |
<ul class="help-examples"> |
||||
</div> |
<li class="help-example"> |
||||
<div class="form-group"> |
Specific events: |
||||
<div class="form-check"> |
|
||||
<input class="form-check-input" type="checkbox" id="sendRename" formControlName="sendRename" /> |
<pre>event.type == 'Created' || event.type == 'Updated'</pre> |
||||
<label class="form-check-label" for="sendRename"> |
</li> |
||||
renamed |
<li class="help-example"> |
||||
</label> |
Large assets: |
||||
</div> |
|
||||
</div> |
<pre>event.fileSize > 100000000</pre> |
||||
<div class="form-group"> |
</li> |
||||
<div class="form-check"> |
<li class="help-example"> |
||||
<input class="form-check-input" type="checkbox" id="sendDelete" formControlName="sendDelete" /> |
Images only: |
||||
<label class="form-check-label" for="sendDelete"> |
|
||||
deleted |
<pre>event.isImage</pre> |
||||
</label> |
</li> |
||||
</div> |
</ul> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
@ -1,2 +1,33 @@ |
|||||
@import '_vars'; |
@import '_vars'; |
||||
@import '_mixins'; |
@import '_mixins'; |
||||
|
|
||||
|
.code { |
||||
|
font-family: monospace; |
||||
|
} |
||||
|
|
||||
|
textarea { |
||||
|
height: 100px; |
||||
|
} |
||||
|
|
||||
|
pre { |
||||
|
background: $color-border; |
||||
|
border: 0; |
||||
|
padding: .25rem .5rem; |
||||
|
margin: 0; |
||||
|
} |
||||
|
|
||||
|
.help { |
||||
|
& { |
||||
|
font-size: .9rem; |
||||
|
} |
||||
|
|
||||
|
&-example { |
||||
|
margin-top: .375rem; |
||||
|
} |
||||
|
|
||||
|
&-examples { |
||||
|
margin-top: 0; |
||||
|
margin-bottom: 0; |
||||
|
padding-left: 1.5rem; |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue