Skip to content

Commit

Permalink
bug: user core
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslabbe committed Nov 24, 2016
1 parent d2da713 commit 059ae3d
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions src/server/views/partials/toolbar.html
Expand Up @@ -36,24 +36,22 @@

{{#each @root.config.users.workflow}}

{{#if @root.config.users.enable}}
{{#ifCond @root.statusFound "true"}}

{{#isAuthorized (concat "/abe/save/" this "/submit") @root.user.role.workflow}}
<button class='btn btn-info btn-save' data-action="{{this}}">
<span class="before">
{{this}}
</span>
<span class="loading">
{{@root.text.saving}}
</span>
<span class="after">
{{@root.text.done}}
</span>
</button>
{{/isAuthorized}}
{{/ifCond}}
{{/if}}
{{#ifCond @root.statusFound "true"}}

{{#isAuthorized (concat "/abe/save/" this "/submit") @root.user.role.workflow}}
<button class='btn btn-info btn-save' data-action="{{this}}">
<span class="before">
{{this}}
</span>
<span class="loading">
{{@root.text.saving}}
</span>
<span class="after">
{{@root.text.done}}
</span>
</button>
{{/isAuthorized}}
{{/ifCond}}

{{#ifCond @root.json.abe_meta.status this}}
{{&setVariable "statusFound" "true"}}
Expand Down

0 comments on commit 059ae3d

Please sign in to comment.