A lot of things.
This commit is contained in:
72
_output/templates/public/club_edit_form.html
Normal file
72
_output/templates/public/club_edit_form.html
Normal file
@@ -0,0 +1,72 @@
|
||||
<div class="block">
|
||||
<xf:form action="{{ link('clubs/save', $club ) }}" upload="true" ajax="true" class="block-container">
|
||||
<div class="block-body">
|
||||
<xf:textboxrow name="title" value="{$club.title}" label="Title" required="true" maxlength="100" />
|
||||
<xf:textarearow name="description" value="{$club.description}" label="Description" required="true" rows="4" />
|
||||
|
||||
<xf:if is="$club.banner_date">
|
||||
<xf:formrow label="Current Banner">
|
||||
<img src="{$club.getBannerUrl()}" style="max-width: 300px; border-radius: 4px;" />
|
||||
</xf:formrow>
|
||||
</xf:if>
|
||||
|
||||
<xf:uploadrow name="upload_banner" accept=".jpg,.jpeg,.png" label="Banner" />
|
||||
</div>
|
||||
<xf:submitrow icon="save" submit="Submit Changes" />
|
||||
</xf:form>
|
||||
</div>
|
||||
|
||||
<xf:if is="$club.club_id && $club.node_id">
|
||||
|
||||
<div class="block u-marginTop">
|
||||
<div class="block-container">
|
||||
<h2 class="block-header">Club Moderators ({$subModCount}/5)</h2>
|
||||
<div class="block-body">
|
||||
<xf:if is="$moderators is not empty">
|
||||
<div class="dataList">
|
||||
<xf:foreach loop="$moderators" value="$mod">
|
||||
<div class="dataList-row">
|
||||
<div class="dataList-cell dataList-cell--main">
|
||||
<strong>{$mod.User.username}</strong>
|
||||
<xf:if is="$mod.user_id == $club.user_id">
|
||||
<span class="label label--accent u-marginLeft">Owner</span>
|
||||
</xf:if>
|
||||
</div>
|
||||
<div class="dataList-cell dataList-cell--action">
|
||||
<xf:if is="$mod.user_id != $club.user_id">
|
||||
<xf:form action="{{ link('clubs/remove-moderator', $club) }}" ajax="true" class="u-inline">
|
||||
<input type="hidden" name="user_id" value="{$mod.user_id}" />
|
||||
<xf:button type="submit" class="button--small button--warn" icon="delete">Remove</xf:button>
|
||||
</xf:form>
|
||||
<xf:else />
|
||||
<span class="u-muted">-</span>
|
||||
</xf:if>
|
||||
</div>
|
||||
</div>
|
||||
</xf:foreach>
|
||||
</div>
|
||||
<xf:else />
|
||||
<div class="block-row">No moderators for this club.</div>
|
||||
</xf:if>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="block u-marginTop">
|
||||
<xf:if is="$subModCount < 5">
|
||||
<xf:form action="{{ link('clubs/add-moderator', $club) }}" ajax="true" class="block-container">
|
||||
<h2 class="block-header">Add a moderator</h2>
|
||||
<div class="block-body">
|
||||
<xf:textboxrow name="username" label="Username" class="namePredictor" required="true" />
|
||||
</div>
|
||||
<xf:submitrow icon="add" submit="Promote Moderator" />
|
||||
</xf:form>
|
||||
<xf:else />
|
||||
<div class="block-container">
|
||||
<div class="block-row block-row--warning">
|
||||
<strong>Limit reached:</strong> You have reached the maximum number of 5 moderators for your club. You must remove one before you can add a new one.
|
||||
</div>
|
||||
</div>
|
||||
</xf:if>
|
||||
</div>
|
||||
</xf:if>
|
||||
Reference in New Issue
Block a user