Hide the rating editor outside of edit mode
This commit is contained in:
parent
7efff25dcc
commit
e110b558b8
@ -10,13 +10,17 @@ class RatingsTheme extends Themelet {
|
||||
$s_checked = $rating == 's' ? " checked" : "";
|
||||
$q_checked = $rating == 'q' ? " checked" : "";
|
||||
$e_checked = $rating == 'e' ? " checked" : "";
|
||||
$human_rating = Ratings::rating_to_human($rating);
|
||||
$html = "
|
||||
<tr>
|
||||
<th>Rating</th>
|
||||
<td>
|
||||
<span class='view'>$human_rating</span>
|
||||
<span class='edit'>
|
||||
<input type='radio' name='rating' value='s' id='s'$s_checked><label for='s'>Safe</label>
|
||||
<input type='radio' name='rating' value='q' id='q'$q_checked><label for='q'>Questionable</label>
|
||||
<input type='radio' name='rating' value='e' id='e'$e_checked><label for='e'>Explicit</label>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
";
|
||||
|
Loading…
x
Reference in New Issue
Block a user