mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
More changes to news admin
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="content" class="col-sm-2 control-label">Content</label>
|
||||
<label for="body" class="col-sm-2 control-label">Content</label>
|
||||
|
||||
<div class="col-sm-10" id="body-parent">
|
||||
<textarea class="form-control" id="body" name="body" maxlength="65000" cols="50" rows="5">{{ body|raw }}</textarea>
|
||||
@@ -28,7 +28,7 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="type" class="col-sm-2 control-label">Type</label>
|
||||
<label for="select-type" class="col-sm-2 control-label">Type</label>
|
||||
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" name="type" id="select-type">
|
||||
@@ -61,7 +61,7 @@
|
||||
<label for="author" class="col-sm-2 control-label">Author</label>
|
||||
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" name="original_id" disabled="disabled">
|
||||
<select class="form-control" id="author" name="original_id" disabled="disabled">
|
||||
<option value="{{ player.getId() }}">{{ player.getName() }}</option>
|
||||
</select>
|
||||
</div>
|
||||
@@ -70,7 +70,7 @@
|
||||
{% endif %}
|
||||
|
||||
<div class="form-group">
|
||||
<label for="modifiedby" class="col-sm-2 control-label">{% if action == 'edit' %}Modified by{% else %}Author{% endif %}</label>
|
||||
<label for="player_id" class="col-sm-2 control-label">{% if action == 'edit' %}Modified by{% else %}Author{% endif %}</label>
|
||||
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" name="player_id" id="player_id">
|
||||
@@ -84,6 +84,7 @@
|
||||
{% if action != 'edit' %}
|
||||
<div class="form-group">
|
||||
<label for="forum_section" class="col-sm-2 control-label">Create forum thread in section:</label>
|
||||
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" name="forum_section" id="forum_section">
|
||||
<option value="-1">None</option>
|
||||
@@ -99,9 +100,10 @@
|
||||
|
||||
<div class="form-group">
|
||||
<label for="category" class="col-sm-2 control-label">Category</label>
|
||||
|
||||
<div class="col-sm-10">
|
||||
{% for id, cat in categories %}
|
||||
<input type="radio" name="category" value="{{ id }}" {% if (category == 0 and id == 1) or (category == id) %}checked="yes"{% endif %}/>
|
||||
<input type="radio" name="category" id="category" value="{{ id }}" {% if (category == 0 and id == 1) or (category == id) %}checked="yes"{% endif %}/>
|
||||
<img src="{{ constant('BASE_URL') }}/images/news/icon_{{ cat.icon_id }}_small.gif" />
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
@@ -24,7 +24,7 @@
|
||||
<td>{{ news.id|raw }}</td>
|
||||
<td><i><a href="?p=news&action=edit&id={{ news.id }}">{{ news.title }}</a></i></td>
|
||||
<td>{{ news.date|date(config.news_date_format) }}</td>
|
||||
<td><a href="{{ news.player_link }}">{{ news.player_name }}</a></td>
|
||||
<td><a target="_blank" rel="noopener noreferrer" href="{{ news.player_link }}">{{ news.player_name }}</a></td>
|
||||
<td>
|
||||
<a href="?p=news&action=edit&id={{ news.id }}" class="ico" title="Edit">
|
||||
<span class="btn btn-success btn-sm edit btn-flat">
|
||||
@@ -85,7 +85,7 @@
|
||||
<td>{{ ticker.id|raw }}</td>
|
||||
<td><i><a href="?p=news&action=edit&id={{ ticker.id }}">{{ ticker.title }}</a></i></td>
|
||||
<td>{{ ticker.date|date(config.news_date_format) }}</td>
|
||||
<td><a href="{{ ticker.player_link }}">{{ ticker.player_name }}</a></td>
|
||||
<td><a target="_blank" rel="noopener noreferrer" href="{{ ticker.player_link }}">{{ ticker.player_name }}</a></td>
|
||||
<td>
|
||||
<a href="?p=news&action=edit&id={{ ticker.id }}" class="ico" title="Edit">
|
||||
<span class="btn btn-success btn-sm edit btn-flat">
|
||||
@@ -146,7 +146,7 @@
|
||||
<td>{{ article.id|raw }}</td>
|
||||
<td><i><a href="?p=news&action=edit&id={{ article.id }}">{{ article.title }}</a></i></td>
|
||||
<td>{{ article.date|date(config.news_date_format) }}</td>
|
||||
<td><a href="{{ article.player_link }}">{{ article.player_name }}</a></td>
|
||||
<td><a target="_blank" rel="noopener noreferrer" href="{{ article.player_link }}">{{ article.player_name }}</a></td>
|
||||
<td>
|
||||
<a href="?p=news&action=edit&id={{ article.id }}" class="ico" title="Edit">
|
||||
<span class="btn btn-success btn-sm edit btn-flat">
|
||||
|
Reference in New Issue
Block a user