Commit baaf83e8 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

vidjil.less, file/form.html hide set input

Makes it look as though the tokens are inside some kind of textarea
rather than a separate div from the input.
parent 0ac11877
......@@ -2253,6 +2253,16 @@ label.highlight_label {
background-color: #adffae;
}
.token_div {
border-radius: 2px;
border: 1px solid #eee;
}
#token_input {
border: 0;
box-shadow: none;
}
/* atwho css */
.atwho-view {
......
......@@ -62,29 +62,31 @@
<tr>
<td><label for="set_ids" id="set_ids__label">sets: </label></td>
<td>
<div id="set_div" style="width:100%;">
<div class="token_div" style="width:100%;" onclick="$('#token_input').focus()">
<input
hidden
id="set_list"
name="set_ids"
type="text"
size="80">
<div id="set_div">
{{ for set in sets: }}
<span class="set_token {{=set['type']}}_token" data-set-id="{{=set['id']}}">
<i class="icon-cancel" onclick="this.parentNode.parentNode.removeChild(this.parentNode);"></i>
{{=set['id'][3:]}}
</span>
{{pass}}
</div>
<input
id="token_input"
onfocus="new VidjilAutoComplete().setupSamples(this); new Tokeniser().setup(this, this.parentNode);"
autocomplete="off"
onfocus="new VidjilAutoComplete().setupSamples(this); new Tokeniser().setup(this, document.getElementById('set_div'));"
data-needs-atwho="true"
data-needs-tokeniser="true"
data-group-ids="{{=group_ids}}"
data-keys='["generic", "patient", "run"]'
type="text"
size="80">
<input
hidden
id="set_list"
name="set_ids"
type="text"
size="80">
<br>
{{ for set in sets: }}
<span class="set_token {{=set['type']}}_token" data-set-id="{{=set['id']}}">
<i class="icon-cancel" onclick="this.parentNode.parentNode.removeChild(this.parentNode);"></i>
{{=set['id'][3:]}}
</span>
{{pass}}
</div>
</td>
</tr>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment