lemma_status.html 2.25 KB
<div style="display:flex;">
	<div>
		<div id="lemma-status">
		  <table class='StatusTable'>
			<tr> 
			  <td class='ColumnHeader'>Hasło:</td> 
			  <td>{{lemma.entry}}</td>
			</tr>
			<tr> 
			  <td class='ColumnHeader'>Właściciel:</td> 
			  <td>
			    {% if lemma.owner %}
		          {{lemma.owner.username}}
		        {% else %}
		          brak
		        {% endif %}
		      </td>
			</tr>
			<tr> 
			  <td class='ColumnHeader'>Frazeolog:</td> 
			  <td>
			    {% if lemma.phraseologist %}
		          {{lemma.phraseologist.username}}
		        {% else %}
		          brak
		        {% endif %}
		      </td>
			</tr>
			<tr> 
			  <td class='ColumnHeader'>Semantyk:</td> 
			  <td>
			    {% if lemma.semanticist %}
		          {{lemma.semanticist.username}}
		        {% else %}
		          brak
		        {% endif %}
		      </td>
			</tr>
			<tr> 
			  <td class='ColumnHeader'>Słownik:</td> 
			  <td>{{lemma.vocabulary.name}}</td>
			</tr>
		    <tr> 
			  <td class='ColumnHeader'>Status:</td> 
			  <td>{{lemma.status.status}}</td>
			</tr>
			<tr> 
			  <td class='ColumnHeader'>Część mowy:</td> 
			  <td>{{pos.name}}</td>
			</tr>
		  </table>
		</div>
		<div id="lemma-status-change">
		  {% if abort_status %}
		    <button type="button" id="{{ abort_status.id }}" style="width:120px">Zmień na "{{ abort_status.status }}"</button>
		  {% endif %}
		  {% for next_status in next_statuses %}
		    <button type="button" id="{{ next_status.id }}" style="width:120px">Zmień na "{{ next_status.status }}"</button>
		  {% endfor %}
		</div>
	</div>
	{% if perms.dictionary.view_status_changes and status_changes %}
	<div class="status-changes">
	  <table class='ChangeControlTable' style="margin:15px;">
		<tr> 
		  <td class='ColumnHeader'>Czas zmiany:</td> 
		  <td class='ColumnHeader'>Docelowy status:</td>
		  <td class='ColumnHeader'>Osoba dokonująca zmiany:</td>
		</tr>
		{% for change in status_changes %}
		  <tr class='ChangeControlTableRow' id="change_{{version.id}}"> 
			<td>{{ change.date }}</td> 
			<td>{{ change.status.status }}</td>
			<td>{{ change.changer.username }}</td>
		  </tr>
		{% endfor %}
	  </table>	
	</div>
	{% endif %}
</div>
<div id="ready-note-dialog">
</div>