add add-ssh-key component

This commit is contained in:
Lisa Passing 2015-07-20 17:19:34 +02:00
parent b32ce35a05
commit fcfd634591
3 changed files with 20 additions and 18 deletions

View File

@ -0,0 +1,8 @@
`import Ember from 'ember'`
AddSshKeyComponent = Ember.Component.extend
classNames: ['form--sshkey']
`export default AddSshKeyComponent`

View File

@ -0,0 +1,11 @@
<form action="">
<div class="form-elem">
<input type="text" placeholder="Description">
</div>
<div class="form-elem">
<textarea name="" id="" cols="30" rows="10" placeholder="SSH key"></textarea>
</div>
<div class="form-elem">
<input type="submit" class="form-submit" value="Add">
</div>
</form>

View File

@ -35,19 +35,7 @@
{{ssh-key key=model.customSshKey}}
{{else}}
{{ssh-key key=model.sshKey}}
<div class="form--sshkey">
<form action="">
<div class="form-elem">
<input type="text" placeholder="Description">
</div>
<div class="form-elem">
<textarea name="" id="" cols="30" rows="10" placeholder="SSH key"></textarea>
</div>
<div class="form-elem">
<input type="submit" class="form-submit" value="Add">
</div>
</form>
</div>
{{add-ssh-key }}
{{/if}}
@ -60,8 +48,3 @@
</section>
</div>
{{!-- <div id="settings">
{{outlet}}
</div> --}}