Skip to content
Snippets Groups Projects
Commit c04b0364 authored by Lukas Reschke's avatar Lukas Reschke Committed by GitHub
Browse files

Merge pull request #750 from nextcloud/workflow-cleanup

Workflow cleanup
parents b4ed4e15 94ac627c
No related branches found
No related tags found
No related merge requests found
.workflowengine .operation { .workflowengine .operation {
padding: 5px; padding: 5px;
padding-bottom: 20px;
margin-bottom: 20px;
border-bottom: #eee 1px solid; border-bottom: #eee 1px solid;
border-left: rgba(0,0,0,0) 1px solid; border-left: rgba(0,0,0,0) 1px solid;
} }
...@@ -28,6 +30,10 @@ ...@@ -28,6 +30,10 @@
transition: opacity .5s; transition: opacity .5s;
} }
.workflowengine .operation .check:hover {
background-color: #f8f8f8;
}
.workflowengine .operation .button-delete, .workflowengine .operation .button-delete,
.workflowengine .operation .button-delete-check { .workflowengine .operation .button-delete-check {
opacity: 0.5; opacity: 0.5;
......
...@@ -24,14 +24,19 @@ ...@@ -24,14 +24,19 @@
?> ?>
<div id="<?php p($_['appid']); ?>" class="section workflowengine"> <div id="<?php p($_['appid']); ?>" class="section workflowengine">
<h2 class="inlineblock"><?php p($_['heading']); ?></h2> <h2 class="inlineblock"><?php p($_['heading']); ?></h2>
<?php if ($_['description']): ?>
<p><?php p($_['description']); ?></p>
<?php endif; ?>
<script type="text/template" id="operations-template"> <script type="text/template" id="operations-template">
<div class="operations"></div> <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>
<script type="text/template" id="operation-template"> <script type="text/template" id="operation-template">
<div class="operation{{#if hasChanged}} modified{{/if}}"> <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 }} {{! delete only makes sense if the operation is already saved }}
{{#if operation.id}} {{#if operation.id}}
<span class="button-delete pull-right icon-delete"></span> <span class="button-delete pull-right icon-delete"></span>
...@@ -56,7 +61,7 @@ ...@@ -56,7 +61,7 @@
</div> </div>
{{/each}} {{/each}}
</div> </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}} {{#if hasChanged}}
{{! reset only makes sense if the operation is already saved }} {{! reset only makes sense if the operation is already saved }}
{{#if operation.id}} {{#if operation.id}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment