Merge pull request #776 from nextcloud/workflow-cleanup-stable10

[stable10] Workflow cleanup
This commit is contained in:
Björn Schießle 2016-08-09 12:36:03 +02:00 committed by GitHub
commit 25a72c8099
2 changed files with 14 additions and 3 deletions

View File

@ -1,5 +1,7 @@
.workflowengine .operation {
padding: 5px;
padding-bottom: 20px;
margin-bottom: 20px;
border-bottom: #eee 1px solid;
border-left: rgba(0,0,0,0) 1px solid;
}
@ -28,6 +30,10 @@
transition: opacity .5s;
}
.workflowengine .operation .check:hover {
background-color: #f8f8f8;
}
.workflowengine .operation .button-delete,
.workflowengine .operation .button-delete-check {
opacity: 0.5;

View File

@ -24,14 +24,19 @@
?>
<div id="<?php p($_['appid']); ?>" class="section workflowengine">
<h2 class="inlineblock"><?php p($_['heading']); ?></h2>
<?php if ($_['description']): ?>
<p><?php p($_['description']); ?></p>
<?php endif; ?>
<script type="text/template" id="operations-template">
<div class="operations"></div>
<button class="button-add-operation"><?php p($l->t('Add operation')); ?></button>
<button class="button-add-operation"><?php p($l->t('Add rule group')); ?></button>
</script>
<script type="text/template" id="operation-template">
<div class="operation{{#if hasChanged}} modified{{/if}}">
<input type="text" class="operation-name" value="{{operation.name}}">
<input type="text" class="operation-name" placeholder="<?php p($l->t('Short rule description')); ?>" value="{{operation.name}}">
{{! delete only makes sense if the operation is already saved }}
{{#if operation.id}}
<span class="button-delete pull-right icon-delete"></span>
@ -56,7 +61,7 @@
</div>
{{/each}}
</div>
<button class="button-add"><?php p($l->t('Add check')); ?></button>
<button class="button-add"><?php p($l->t('Add rule')); ?></button>
{{#if hasChanged}}
{{! reset only makes sense if the operation is already saved }}
{{#if operation.id}}