diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache index 5f49bb62..de663d9d 100644 --- a/docs/templates/layout.mustache +++ b/docs/templates/layout.mustache @@ -108,6 +108,7 @@ + {{#production}} diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 38dd5587..f451074b 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -1215,6 +1215,15 @@ +
{{_i}}It's possible to use a button to upload files, instead of showing the native browser element.{{/i}}
+ Upload a file +{{_i}}There is also an interactive file and image upload widgets available. View the Javascript docs for that.{{/i}}
+{{_i}}Initializes an input with a typahead.{{/i}}
- \ No newline at end of file + + + + + +{{_i}}The file upload plugin allows you to create a visually appealing file or image upload element.{{/i}}
+ {{_i}}Download file{{/i}} +{{_i}}Using the given elements, you can layout the upload widget the way you want, either with a fixed width and height or with max-width
+ and max-height.{{/i}}
{{_i}}Use the data-fileupload attribute to register the file upload widget. The main container should either have the .fileupload-new class for a new record or if the record
+ does not have file or .fileupload-exists if an existing file is present. Elements inside the container with the .fileupload-new and fileupload-exists
+ class will be shown or hidden based on the current state. The content of .fileupload-preview is replaced when a file is selected. Implement a button to clear
+ the file with data-dismiss="fileupload".{{/i}}
+<div class="fileupload fileupload-new" data-fileupload="file">
+ <div class="fileupload-preview fileupload-exists uneditable-input"></div>
+ <span class="btn btn-file"><span class="fileupload-new">{{_i}}Select file{{/i}}</span><span class="fileupload-exists">{{_i}}Change{{/i}}</span><input type="file" /></span>
+ <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">{{_i}}Remove{{/i}}</a>
+</div>
+
+
+
+<div class="fileupload fileupload-new" data-fileupload="image">
+ <div class="fileupload-preview fileupload-new thumbnail"><img src="" /></div>
+ <div class="fileupload-preview fileupload-exists thumbnail"></div>
+ <div>
+ <span class="btn btn-file"><span class="fileupload-new">{{_i}}Select image{{/i}}</span><span class="fileupload-exists">{{_i}}Change{{/i}}</span><input type="file" /></span>
+ <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">{{_i}}Remove{{/i}}</a>
+ </div>
+</div>
+
+