Don't display input boxes for disabled/readonly fields

This commit is contained in:
Yingtong Li 2019-01-26 12:42:10 +11:00
parent b03d7457a7
commit 3b99aa2d73
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -26,11 +26,11 @@
<form class="ui form" method="POST" enctype="multipart/form-data"> <form class="ui form" method="POST" enctype="multipart/form-data">
<div class="ui disabled inline grid field"> <div class="ui disabled inline grid field">
<label class="three wide column">ID</label> <label class="three wide column">ID</label>
<input class="eleven wide column" type="text" name="id" value="{{ item.id if item.id != None else '' }}"> <div class="eleven wide column">{{ item.id if item.id != None else '' }}</div>
</div> </div>
<div class="ui disabled inline grid field"> <div class="ui disabled inline grid field">
<label class="three wide column">Author</label> <label class="three wide column">Author</label>
<input class="eleven wide column" type="text" name="author" value="{{ item.author.email }}"> <div class="eleven wide column">{{ item.author.email }}</div>
</div> </div>
<div class="ui required inline grid field"> <div class="ui required inline grid field">
<label class="three wide column">Title</label> <label class="three wide column">Title</label>