Skip to content

Instantly share code, notes, and snippets.

@Aevin1387
Created February 14, 2017 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aevin1387/e01ac5da9f76c7d40d6fbf86b1ef3e8b to your computer and use it in GitHub Desktop.
Save Aevin1387/e01ac5da9f76c7d40d6fbf86b1ef3e8b to your computer and use it in GitHub Desktop.
input-test
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
<div class='level-item'>
<form {{action 'search' on='submit'}}>
{{ input id='query' autocomplete='off' type='search' value=query }}
</form>
</div>
{{outlet}}
<section class="photos">
<form enctype='multipart/form-data'>
<div class='columns is-multiline is-mobile'>
<div class='column is-one-quarter has-text-centered add-photo'>
<button type='button' {{action 'uploadPhotos'}}>
<svg role="img" class='icon'>
<use xlink:href="/assets/icons.svg#add-photos"></use>
</svg>
</button>
{{input type='file' class='image-upload2' id='upload_image' accept='image/*' }}
</div>
</div>
</form>
</section>
{
"version": "0.11.0",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.10.2",
"ember-data": "2.11.0",
"ember-template-compiler": "2.10.2",
"ember-testing": "2.10.2"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment