lemma_examples.html 1.63 KB
<script type="text/javascript">

  $("button#delete_lemma_example").click(function(){
    delete_lemma_example(selected_lemma_example_id)
   });
   
  $("button#modify_lemma_example").click(function(){
    modify_lemma_example(selected_lemma_example_id)
  });
   
  $("button#assign_lemma_example").click(function(){
    assign_lemma_example(selected_lemma_example_id)
  });
  
  $("button#confirm_lemma_example").click(function(){
    confirm_lemma_example(selected_lemma_example_id)
  });
  
</script>

<strong>Przykłady niepasujące do żadnego schematu:</strong>
{% if can_modify and perms.dictionary.modify_lemma_examples %}
<form class="lemma-example-form" method="post"> {% csrf_token %}
  {{ add_nkjp_form.as_p }}
  <p class="lexeme-save">
    <button type="submit" id="lemma-example-form-submit">
      Zapisz
    </button>
    <button type="button" id="lemma-example-form-cancel">
      Wyczyść
    </button>
  </p>
</form>
{% endif %}

<div id='lemma_example_show'>
</div>

{% if can_modify %}
<div id='modify_lemma_example_buttons'>
  {% if perms.dictionary.add_syntactic_frames or perms.dictionary.add_phraseologic_frames %}
  	  <button type="button" id="assign_lemma_example" style="width:140px">Przypisz</button>
  {% endif %}
  {% if perms.dictionary.modify_lemma_examples %}
	  <button type="button" id="delete_lemma_example" style="width:140px">Usuń</button>
	  <button type="button" id="modify_lemma_example" style="width:140px">Modyfikuj</button>
	  <button type="button" id="confirm_lemma_example" style="width:140px; visibility:hidden;">Potwierdź</button>
  {% endif %}
</div>
{% endif %}