* added forums for guilds and groups

* (internal) new function: OTS_Guild::hasMember(OTS_Player $player)
* (internal) new function: Forum::hasAccess($board_id)
This commit is contained in:
slawkens
2017-10-20 16:59:14 +02:00
parent c2678aa91f
commit 762fa31c28
17 changed files with 280 additions and 136 deletions

View File

@@ -87,9 +87,8 @@
<td>Access:</td>
<td>
<select name="access">
<?php foreach($groups->getGroups() as $id => $group): ?>
{% for id, group in groups %}
<option value="{{ group.getAccess() }}"{% if access == group.getAccess() %} selected{% endif %}>{{ group.getName() }}</option>
<option value="{{ group.getId() }}"{% if access == group.getId() %} selected{% endif %}>{{ group.getName() }}</option>
{% endfor %}
</select>
</td>

View File

@@ -16,6 +16,27 @@
<td>Description:</td>
<td><textarea name="description" maxlength="300" cols="50" rows="5">{% if description is not null %}{{ description }}{% endif %}</textarea></td>
<tr/>
<tr>
<td>Access:</td>
<td>
<select name="access">
{% for id, group in groups %}
<option value="{{ group.getAccess() }}"{% if access == group.getId() %} selected{% endif %}>{{ group.getName() }}</option>
{% endfor %}
</select>
</td>
</tr>
<tr>
<td>Guild:</td>
<td>
<select name="guild">
<option value="0"{% if guild == 0 %} selected{% endif %}>----</option>
{% for guild_ in guilds %}
<option value="{{ guild_.id }}"{% if guild == guild_.id %} selected{% endif %}>{{ guild_.name }}</option>
{% endfor %}
</select>
</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="Submit"/>
</tr>

View File

@@ -18,8 +18,8 @@
<strong>BOARD:</strong> {{ board }}<br/><br/>
<strong>Select the new board:&nbsp;</strong>
<select name="section">
{% for section in sections %}
<option value="{{ section.id }}">{{ section.name }}</option>
{% for id, section in sections %}
<option value="{{ id }}">{{ section.name }}</option>
{% endfor %}
</select>
<input type="submit" value="Move Thread">