Move contributor-creation form for separate view

closes #74
This commit is contained in:
2019-05-23 14:17:33 +02:00
parent 4efd6f8f88
commit 16ee3b6b6b
7 changed files with 53 additions and 31 deletions
+13
View File
@@ -0,0 +1,13 @@
<main class="center-column">
<section id="add-contributor">
<header>
<h2>Add contributor profile</h2>
</header>
<div class="content">
{{add-contributor contributors=contributors save=(action "save")}}
</div>
</section>
</main>
+6 -17
View File
@@ -2,8 +2,13 @@
<div id="stats">
<section id="people">
<header>
<header class="with-nav">
<h2>Contributors</h2>
{{#if kredits.hasAccounts}}
<nav>
{{link-to "add" "contributors.new" title="Add contributor profile" class="button small green"}}
</nav>
{{/if}}
</header>
<div class="content">
{{contributor-list contributorList=kreditsToplist
@@ -61,20 +66,4 @@
</section>
</div>
{{#if kredits.hasAccounts}}
<section id="add-contributor">
<header>
<h2>Add Contributor</h2>
</header>
<div class="content">
{{#if kredits.currentUser.isCore}}
{{add-contributor contributors=contributors save=(action "save")}}
{{else}}
Only core team members can add new contributors. Please ask someone to set you up.
{{/if}}
</div>
</section>
{{/if}}
</main>