Skip to content

Commit

Permalink
add the possibility to request changes in seeAlso in term edition
Browse files Browse the repository at this point in the history
  • Loading branch information
hmenager committed Jul 5, 2024
1 parent 1fba02b commit 347ee87
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 10 additions & 0 deletions edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ <h1 id="pageTitle">Propose a <span class="change">change</span><span class="new"
</div>
</div>
<br/>
<div class="row">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-3 col-md-2 " for="id_seeAlso">seeAlso</label>
<div class=" col-xs-12 col-sm-9 col-md-10 ">
<textarea class=" form-control" cols="40" id="id_seeAlso" name="seeAlso"
rows="2" disabled="disabled"></textarea>
</div>
</div>
</div>
<br/>
<div class="row optional_rel operation_rel data_rel identifier_rel">
<div class="form-group">
<div class="col-xs-12 col-sm-3 col-md-2" style="font-weight: 700;">Has Topic</div>
Expand Down
6 changes: 4 additions & 2 deletions js/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ function build_form(target, parentOfNewTerm){
$("#id_exactSynonyms").attr('data-initial',v);
$("#id_narrowSynonyms").val(v=join_if_exists(target.narrow_synonyms));
$("#id_narrowSynonyms").attr('data-initial',v);
$("#id_seeAlso").val(v=join_if_exists(target.seeAlso));
$("#id_seeAlso").attr('data-initial',v);
/*v=[];
for(var i=0;i<target.parent.length;i++){
v.push(target.parents[i].data.uri);
Expand Down Expand Up @@ -152,7 +154,7 @@ window.onload = function() {
};

window.sendToGitHub=function sendToGitHub(){
var ids=["#id_parent", "#id_label", "#id_definition", "#id_exactSynonyms", "#id_narrowSynonyms"];
var ids=["#id_parent", "#id_label", "#id_definition", "#id_exactSynonyms", "#id_narrowSynonyms", "#id_seeAlso"];
var i;
$(".search-term").each(function(){
ids.push(".search-term[name="+this.getAttribute("name")+"]");
Expand Down Expand Up @@ -188,4 +190,4 @@ window.sendToGitHub=function sendToGitHub(){
$("#sender").submit();
}

export {typeDict}
export {typeDict}

0 comments on commit 347ee87

Please sign in to comment.