<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}ajaxuploader/css/fileuploader.css">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
<!-- include Font Awesome -->
- <link href="//netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css" rel="stylesheet">
+ <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
{% include 'footer.html' %}
<!-- end include footer-->
+{% block opentip %}
+<!-- Conditionally include opentip -->
+{% endblock opentip %}
+
</body>
</html>
{% load url from future %}
+{% include 'partial/opentip.html' %}
<section id=add-note-form class="extend-form">
<script>
var ajax_upload_url = "{% url 'ajax_upload' %}";
//var csrf_token = "{{ csrf_token }}";
</script>
-
- <form id=add-note method="POST">
+ <form id=add-note class="dropzone" method="POST">
{% csrf_token %}
<div class="row">
</div>
<div id=file-uploader class="small-8 small-offset-1 columns large-4 large-offset-1">
<!-- the upload button gets attached here -->
- </div>
- <div class="small-2 columns large-1 end">
+ </div>
+
+ <div class="small-2 columns large-1">
+ <!-- TODO: only show after file selected-->
<i class="icon-remove-sign awesome-action"></i>
</div>
+
+ <div id="drpbx-btn" class="small-2 columns large-1 end"
+ data-ot="Upload directly from Dropbox"
+ data-ot-target="true"
+ data-ot-tip-joint="top center"
+ data-ot-target-joint="bottom center"
+ data-ot-background="white"
+ data-ot-border-color="black" >
+ <i class="icon-dropbox icon-2x"></i>
+
+ <input type="text" class="hidden" id="id_drpbxURL" name="dropbxURL" style="display: none"/>
+ </div>
+
+
</div>
<div class="row">
<div class="small-10 small-offset-1 columns large-8 large-offset-1">
</form> <!-- #upload_form -->
+ {% include 'partial/dropbox_support.html' %}
</section>
--- /dev/null
+{% comment %}
+
+{% endcomment %}
+<!-- TODO: add to head-->
+<script type="text/javascript" src="https://www.dropbox.com/static/api/1/dropins.js" id="dropboxjs" data-app-key="n1wj0fd5nszev45"></script>
+<!-- log what file was chosen by dropbox -->
+<script type="text/javascript">
+ var options = {
+ linkType: "direct",
+ success: function(file) {
+ console.log("Here is the file selected " + file[0].link);
+ console.log(file);
+ },
+ }
+
+ $('#drpbx-btn').on('click', function(ev){
+ Dropbox.choose(options);
+ });
+</script>