* 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

@@ -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>