Safety list in /upload is resolved automatically
This commit is contained in:
parent
70f931b921
commit
ce302c438d
1 changed files with 8 additions and 3 deletions
|
@ -62,9 +62,14 @@
|
|||
|
||||
<div class="safety">
|
||||
<label class="left">Safety:</label>
|
||||
<label><input type="radio" name="safety" value="<?php echo PostSafety::Safe ?>" checked="checked"/> Safe for work</label>
|
||||
<label><input type="radio" name="safety" value="<?php echo PostSafety::Sketchy ?>"/> Sketchy</label>
|
||||
<label><input type="radio" name="safety" value="<?php echo PostSafety::Unsafe ?>"/> Not safe for work</label>
|
||||
<?php $checked = false ?>
|
||||
<?php foreach (PostSafety::getAll() as $safety): ?>
|
||||
<label>
|
||||
<input type="radio" name="safety" value="<?php echo PostSafety::Safe ?>"<?php if (!$checked) echo ' checked="checked"' ?>/>
|
||||
<?php echo TextHelper::camelCaseToHumanCase(PostSafety::toString($safety), true) ?>
|
||||
<?php $checked = true ?>
|
||||
</label>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
|
||||
<div class="tags">
|
||||
|
|
Loading…
Reference in a new issue