add add-ssh-key component
This commit is contained in:
parent
b32ce35a05
commit
fcfd634591
8
app/components/add-ssh-key.coffee
Normal file
8
app/components/add-ssh-key.coffee
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
`import Ember from 'ember'`
|
||||||
|
|
||||||
|
AddSshKeyComponent = Ember.Component.extend
|
||||||
|
|
||||||
|
classNames: ['form--sshkey']
|
||||||
|
|
||||||
|
|
||||||
|
`export default AddSshKeyComponent`
|
11
app/templates/components/add-ssh-key.hbs
Normal file
11
app/templates/components/add-ssh-key.hbs
Normal 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>
|
|
@ -35,19 +35,7 @@
|
||||||
{{ssh-key key=model.customSshKey}}
|
{{ssh-key key=model.customSshKey}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{ssh-key key=model.sshKey}}
|
{{ssh-key key=model.sshKey}}
|
||||||
<div class="form--sshkey">
|
{{add-ssh-key }}
|
||||||
<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>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
@ -60,8 +48,3 @@
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{!-- <div id="settings">
|
|
||||||
{{outlet}}
|
|
||||||
</div> --}}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user