| 1 | <div class="section"> |
| 2 | <dl> |
| 3 | <dt>{lang}wcf.moderation.assignedUser{/lang}</dt> |
| 4 | <dd> |
| 5 | <ul> |
| 6 | {if $assignedUser && $assignedUser->userID != $__wcf->getUser()->userID} |
| 7 | <li><label><input type="radio" name="assignedUserID" value="{@$assignedUser->userID}" checked="checked" /> {$assignedUser->username}</label></li> |
| 8 | {/if} |
| 9 | <li><label><input type="radio" name="assignedUserID" value="{@$__wcf->getUser()->userID}"{if $assignedUser && $assignedUser->userID == $__wcf->getUser()->userID} checked="checked"{/if} /> {$__wcf->getUser()->username}</label></li> |
| 10 | <li><label><input type="radio" name="assignedUserID" value="0"{if !$assignedUser} checked="checked"{/if} /> {lang}wcf.moderation.assignedUser.nobody{/lang}</label></li> |
| 11 | <li> |
| 12 | <input type="radio" name="assignedUserID" value="-1"{if !$assignedUser} checked="checked"{/if} /> |
| 13 | <input type="text" id="assignedUsername" name="assignedUsername" value="{if $assignedUser}{$assignedUser->username}{/if}" /> |
| 14 | {*if $errorField == 'assignedUsername'} |
| 15 | <small class="innerError"> |
| 16 | {if $errorType == 'empty'} |
| 17 | {lang}wcf.global.form.error.empty{/lang} |
| 18 | {elseif $errorType == 'notAffected'} |
| 19 | {lang}wcf.moderation.assignedUser.error.{@$errorType}{/lang} |
| 20 | {else} |
| 21 | {lang username=$assignedUsername}wcf.user.username.error.{@$errorType}{/lang} |
| 22 | {/if} |
| 23 | </small> |
| 24 | {/if*} |
| 25 | </li> |
| 26 | </ul> |
| 27 | </dd> |
| 28 | </dl> |
| 29 | |
| 30 | <div class="formSubmit"> |
| 31 | <button data-type="submit">{lang}wcf.global.button.submit{/lang}</button> |
| 32 | </div> |
| 33 | </div> |
| 34 | <script> |
| 35 | $(function() { |
| 36 | new WCF.Search.User('#assignedUsername'); |
| 37 | $('#assignedUsername').click(function() { |
| 38 | $(this).parents('li').find('input[type=radio]').click(); |
| 39 | }); |
| 40 | }); |
| 41 | </script> |