Update by ialbert on Mon Jul 16 10:00:25 EDT 2018 from yolo.local
<div class="field segment">
- <label>Name</label>
- {{ form.data_name }}
- <p class="muted">Name of the data. Not required when uploading a file.</p>
-
- <div class="ui small horizontal divider header">
- <i class="ui upload icon"></i>Add Data
- </div>
-
- <div class="ui small center aligned vertical basic segment">
- <p>Upload a file <b>or</b> write into the text box</p>
+ <div class="ui center aligned vertical basic segment">
+ <p class="ui header"><i class="ui upload icon"></i>Upload a file</p>
</div>
<label>File</label>
{{ form.file }}
<p class="muted">File or collection of files you want to analyze.</p>
- <div class="ui horizontal divider">
- Or
+ <button type="submit" class="ui submit green button">
+ <i class="write icon"></i>Upload File
+ </button>
+ <a class="ui right floated button" href="{% url 'data_list' project.uid %}">
+ <i class="undo icon"></i>Cancel
+ </a>
+
+ <div class="ui divider">
+
+ </div>
+
+ <div class="ui center aligned vertical basic segment">
+ <p class="ui header"><i class="edit icon"></i>Create Data</p>
</div>
+ <label>Name</label>
+ {{ form.data_name }}
+ <p class="muted">Name of the data.</p>
+
<label>Input Text</label>
<textarea rows="10" cols="55" name="{{form.input_text.name}}" id="id_{{form.input_text.name}}"
maxlength="{{ form.input_text.field.max_length }}">{% if form.input_text.value %}{{ form.input_text.value }}{% endif %}</textarea>
</div>
- <div class="ui small horizontal divider header">
- <i class="ui pen square icon"></i>Extra Information
+ <button type="submit" class="ui submit green button">
+ <i class="write icon"></i>Create Data
+ </button>
+ <a class="ui right floated button" href="{% url 'data_list' project.uid %}">
+ <i class="undo icon"></i>Cancel
+ </a>
+
+ <div class="ui divider">
+
</div>
+
+ <div class="ui center aligned header">
+ <i class="ui pen square icon"></i>Extra Information
+ </div>
+ <p>
+ This information may be added later as well.
+ </p>
<div class="field">
<label>Data Type</label>
{{ form.type }}
</div>
<button type="submit" class="ui submit green button">
- <i class="write icon"></i>Upload
+ <i class="write icon"></i>Submit
</button>
<a class="ui right floated button" href="{% url 'data_list' project.uid %}">
<i class="undo icon"></i>Cancel
