mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
Better view of guilds (new buttons, table look and feel)
This commit is contained in:
parent
8bae67d9ef
commit
8115cc5ecc
2
system/templates/buttons.view.html.twig
Normal file
2
system/templates/buttons.view.html.twig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{% set button_name = 'View' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
@ -13,7 +13,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="Table3" cellpadding="0" cellspacing="0">
|
<table class="Table3">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
@ -22,11 +22,15 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
<div class="TableShadowContainerRightTop">
|
||||||
|
<div class="TableShadowRightTop" style="background-image:url({{ template_path }}/images/content/table-shadow-rt.gif);"></div>
|
||||||
|
</div>
|
||||||
|
<div class="TableContentAndRightShadow" style="background-image:url({{ template_path }}/images/content/table-shadow-rm.gif);">
|
||||||
<div class="TableContentContainer">
|
<div class="TableContentContainer">
|
||||||
<table class="TableContent" width="100%">
|
<table class="TableContent" width="100%">
|
||||||
<tbody>
|
<tbody>
|
||||||
{% if guilds|length > 0 %}
|
{% if guilds|length > 0 %}
|
||||||
<tr bgcolor="{{ config.vdarkborder }}">
|
<tr bgcolor="{{ config.darkborder }}">
|
||||||
<td width="64"><b>Logo</b></td>
|
<td width="64"><b>Logo</b></td>
|
||||||
<td><b>Description</b></td>
|
<td><b>Description</b></td>
|
||||||
<td width="12%"><b> </b></td>
|
<td width="12%"><b> </b></td>
|
||||||
@ -55,11 +59,9 @@
|
|||||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0;">
|
||||||
<form action="{{ guild.link }}" method="post">
|
<form action="{{ guild.link }}" method="post">
|
||||||
<button name="View" alt="View" class="btn btn-secondary" src="{{ template_path }}/images/global/buttons/sbutton_view.gif" style="width: 100%; height: 20px;">
|
{{ include('buttons.view.html.twig') }}
|
||||||
View
|
|
||||||
</button>
|
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -69,7 +71,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<tr bgcolor="{{ config.lightborder }}">
|
<tr bgcolor="{{ config.darkborder }}">
|
||||||
<td valign="top">
|
<td valign="top">
|
||||||
<b>Create Guild</b>
|
<b>Create Guild</b>
|
||||||
<br/>
|
<br/>
|
||||||
@ -79,12 +81,12 @@
|
|||||||
{% if logged %}
|
{% if logged %}
|
||||||
<td>
|
<td>
|
||||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||||
<form action="?subtopic=guilds&action=create" method=post>
|
<form action="?subtopic=guilds&action=create" method="post">
|
||||||
<tr>
|
<form action="?subtopic=guilds&action=create" method="post">
|
||||||
<td>
|
{% set button_name = 'Found Guild' %}
|
||||||
<button name="Create Guild" alt="Create Guild" class="btn btn-secondary" style="width: 100%; height: 20px;">Create Guild</button>
|
{% set button_image = '_sbutton_foundguild' %}
|
||||||
</td>
|
{% include('buttons.base.html.twig') %}
|
||||||
</tr>
|
</form>
|
||||||
</form>
|
</form>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
@ -94,6 +96,13 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="TableShadowContainer">
|
||||||
|
<div class="TableBottomShadow" style="background-image:url(https://static.tibia.com/images/global/content/table-shadow-bm.gif);">
|
||||||
|
<div class="TableBottomLeftShadow" style="background-image:url({{ template_path }}/images/content/table-shadow-bl.gif);"></div>
|
||||||
|
<div class="TableBottomRightShadow" style="background-image:url({{ template_path }}/images/content/table-shadow-br.gif);"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -117,22 +126,17 @@
|
|||||||
<table border="0" cellspacing="0" cellpadding="0">
|
<table border="0" cellspacing="0" cellpadding="0">
|
||||||
<tbody>
|
<tbody>
|
||||||
{% if logged %}
|
{% if logged %}
|
||||||
<form action="?subtopic=guilds&action=create" method=post>
|
No guild found that suits your needs?
|
||||||
<tr>
|
<form action="?subtopic=guilds&action=create" method="post">
|
||||||
<td>
|
{% set button_name = 'Found Guild' %}
|
||||||
<input type="image" name="Create Guild" alt="Create Guild" src="{{ template_path }}/images/global/buttons/sbutton_createguild.png" border=0 style="width: 120px; height: 18px;">
|
{% set button_image = '_sbutton_foundguild' %}
|
||||||
</td>
|
{% include('buttons.base.html.twig') %}
|
||||||
</tr>
|
|
||||||
</form>
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
<b>Before you can create guild you must login.</b>
|
<b>Before you can create guild you must login.</b>
|
||||||
<br/>
|
<br/>
|
||||||
<form action="?subtopic=accountmanagement&redirect={{ getLink('guilds') }}" method=post>
|
<form action="?subtopic=accountmanagement&redirect={{ getLink('guilds') }}" method="post">
|
||||||
<tr>
|
{% include('buttons.login.html.twig') %}
|
||||||
<td>
|
|
||||||
<input type="image" name="Login" alt="Login" src="{{ template_path }}/images/global/buttons/sbutton_login.gif" border=0 style="width: 120px; height: 18px;">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -142,9 +146,9 @@
|
|||||||
<br/>
|
<br/>
|
||||||
If you have any problem with guilds try:
|
If you have any problem with guilds try:
|
||||||
<br/>
|
<br/>
|
||||||
<a href="?subtopic=guilds&action=cleanup_players">Cleanup players</a> - can\'t join guild/be invited? Can\'t create guild? Try cleanup players.
|
<a href="?subtopic=guilds&action=cleanup_players">Cleanup players</a> - can't join guild/be invited? Can't create guild? Try cleanup players.
|
||||||
<br/>
|
<br/>
|
||||||
<a href="?subtopic=guilds&action=cleanup_guilds">Cleanup guilds</a> - made guild, you are a leader, but you are not on players list? Cleanup guilds!';
|
<a href="?subtopic=guilds&action=cleanup_guilds">Cleanup guilds</a> - made guild, you are a leader, but you are not on players list? Cleanup guilds!
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
@ -297,13 +297,17 @@
|
|||||||
{% if isVice %}
|
{% if isVice %}
|
||||||
<form action="?subtopic=guilds&action=invite&guild={{ guild_name|url_encode }}" method="post">
|
<form action="?subtopic=guilds&action=invite&guild={{ guild_name|url_encode }}" method="post">
|
||||||
<td>
|
<td>
|
||||||
<input type="image" name="Invite Player" alt="Invite Player" src="{{ template_path }}/images/global/buttons/sbutton_inviteplayer.png" style="width: 120px; height: 20px;">
|
{% set button_name = 'Invite Character' %}
|
||||||
|
{% set button_image = '_sbutton_invitecharacter' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
||||||
</td>
|
</td>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form action="?subtopic=guilds&action=change_rank&guild={{ guild_name|url_encode }}" method="post">
|
<form action="?subtopic=guilds&action=change_rank&guild={{ guild_name|url_encode }}" method="post">
|
||||||
<td>
|
<td>
|
||||||
<input type="image" name="Change Rank" alt="Change Rank" src="{{ template_path }}/images/global/buttons/sbutton_changerank.png" style="width: 120px; height: 20px;">
|
{% set button_name = 'Edit Ranks' %}
|
||||||
|
{% set button_image = '_sbutton_editranks' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
||||||
</td>
|
</td>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -311,7 +315,9 @@
|
|||||||
{% if players_from_account_in_guild|length > 0 %}
|
{% if players_from_account_in_guild|length > 0 %}
|
||||||
<form action="?subtopic=guilds&action=leave_guild&guild={{ guild_name|url_encode }}" method="post">
|
<form action="?subtopic=guilds&action=leave_guild&guild={{ guild_name|url_encode }}" method="post">
|
||||||
<td>
|
<td>
|
||||||
<input type="image" name="Leave Guild" alt="Leave Guild" src="{{ template_path }}/images/global/buttons/sbutton_leaveguild.png" style="width: 120px; height: 20px;">
|
{% set button_name = 'Leave Guild' %}
|
||||||
|
{% set button_image = '_sbutton_leaveguild' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
||||||
</td>
|
</td>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
3
templates/tibiacom/buttons.view.html.twig
Normal file
3
templates/tibiacom/buttons.view.html.twig
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{% set button_name = 'View' %}
|
||||||
|
{% set button_image = '_sbutton_view' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
Loading…
x
Reference in New Issue
Block a user