prevent editing label after thread was locked

This commit is contained in:
jomo
2015-01-25 17:10:15 +01:00
parent 0050d6285b
commit 31dcf02083
2 changed files with 4 additions and 3 deletions

View File

@@ -29,7 +29,7 @@
<% end %>
</table>
<div class="table-cell">
<%= f.select :label_id, labels, {}, class: "auto-width" %>
<%= f.select :label_id, labels, {}, class: "auto-width", disabled: (@thread.locked? && !mod?) %>
</div>
<div class="table-cell full-width">
<%= f.text_field :title, placeholder: "Title" %>